summaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorSashka Nochkin2016-04-20 05:44:45 +0200
committerRalf Baechle2016-05-13 15:39:43 +0200
commit86ce9a340e38bcba664fb11c7ab9ba03fcf5e55e (patch)
tree8d684c0d73575e19f1e5a93721af2c513c142d0e /arch/mips/include
parentMIPS: Prevent "restoration" of MSA context in non-MSA kernels (diff)
downloadkernel-qcow2-linux-86ce9a340e38bcba664fb11c7ab9ba03fcf5e55e.tar.gz
kernel-qcow2-linux-86ce9a340e38bcba664fb11c7ab9ba03fcf5e55e.tar.xz
kernel-qcow2-linux-86ce9a340e38bcba664fb11c7ab9ba03fcf5e55e.zip
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>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/mach-ralink/mt7620.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ralink/mt7620.h b/arch/mips/include/asm/mach-ralink/mt7620.h
index ece7420f6562..a73350b07fdf 100644
--- a/arch/mips/include/asm/mach-ralink/mt7620.h
+++ b/arch/mips/include/asm/mach-ralink/mt7620.h
@@ -72,6 +72,7 @@
#define SYSCFG0_DRAM_TYPE_SDRAM 0
#define SYSCFG0_DRAM_TYPE_DDR1 1
#define SYSCFG0_DRAM_TYPE_DDR2 2
+#define SYSCFG0_DRAM_TYPE_UNKNOWN 3
#define SYSCFG0_DRAM_TYPE_DDR2_MT7628 0
#define SYSCFG0_DRAM_TYPE_DDR1_MT7628 1