Skip to content
Commit 9bf72ba6 authored by Weijie Gao's avatar Weijie Gao Committed by Daniel Schwierzeck
Browse files

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: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarWeijie Gao <weijie.gao@mediatek.com>
parent 7fcc740f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment