commit | 9bf72ba6f68f7c96b0913bfc35ae423e9b1895d5 | [log] [tgz] |
---|---|---|
author | Weijie Gao <weijie.gao@mediatek.com> | Thu Nov 12 16:35:33 2020 +0800 |
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | Sun Jan 24 21:39:26 2021 +0100 |
tree | 3227e2a520fd625bed09cf2ab7eff23b5648a9ec | |
parent | 7fcc740ffefbf41c71147313ef6993368fd8ae84 [diff] |
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>