]> git.baikalelectronics.ru Git - uboot.git/commit
mips: mtmips: fix dram size detection in dram_init
authorWeijie Gao <weijie.gao@mediatek.com>
Thu, 12 Nov 2020 08:35:33 +0000 (16:35 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Sun, 24 Jan 2021 20:39:26 +0000 (21:39 +0100)
commit3ac90958ac04b0a31f3eecb430fcb647775f0fb6
tree3227e2a520fd625bed09cf2ab7eff23b5648a9ec
parentc29e9714becc416937c783c29bfa481f24796e26
mips: mtmips: fix dram size detection in dram_init

CONFIG_SYS_SDRAM_BASE points to cached memory, i.e. KSEG0, which is not
suitable for detecting memory size.

Replace CONFIG_SYS_SDRAM_BASE with KSEG1, and make dram_init() always do
memory size detection in any stage.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/mips/mach-mtmips/cpu.c