commit | af2c754453a9324a06b9fb6490ffc57398c344db | [log] [tgz] |
---|---|---|
author | developer <developer@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 | 93f74006de5031b9a796a161a63c49ba3bd8c7c1 [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>