]> git.dujemihanovic.xyz Git - u-boot.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)
commit9bf72ba6f68f7c96b0913bfc35ae423e9b1895d5
tree3227e2a520fd625bed09cf2ab7eff23b5648a9ec
parent7fcc740ffefbf41c71147313ef6993368fd8ae84
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