]> 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)
commit6bfc598876b151926aacdb1fb2d9bc215d6a673b
tree8d684c0d73575e19f1e5a93721af2c513c142d0e
parentff4b7e1234b22992ed646d0419822bd5805b62ab
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