]> git.baikalelectronics.ru Git - kernel.git/commit
mips: mt7620: fallback to SDRAM when syscfg0 does not have a valid value for the...
authorSashka Nochkin <linux-mips@durdom.com>
Wed, 20 Apr 2016 03:44:45 +0000 (23:44 -0400)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 13:39:43 +0000 (15:39 +0200)
commitdff9b833484764749a6e3e466b91009838145fff
tree8d684c0d73575e19f1e5a93721af2c513c142d0e
parentb180ec1bbc229cf0134734b48bb3671336837cdf
mips: mt7620: fallback to SDRAM when syscfg0 does not have a valid value for the memory type

Mediatek MT7620 SoC has syscfg0 bits where it sets the type of memory being used.
However, sometimes those bits are not set properly (reading "11"). In this case, the SoC assumes SDRAM.
The patch below reflects that.

Signed-off-by: Sashka Nochkin <linux-mips@durdom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/13135/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-ralink/mt7620.h
arch/mips/ralink/mt7620.c