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)
commit86ce9a340e38bcba664fb11c7ab9ba03fcf5e55e
tree8d684c0d73575e19f1e5a93721af2c513c142d0e
parent6533af4d4831c421cd9aa4dce7cfc19a3514cc09
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