Message ID | 20220216101845.18638-2-pali@kernel.org |
---|---|
State | Accepted |
Commit | 2fb7426cf027a9efcd05975b6f4b2968a4d54834 |
Delegated to: | Stefan Roese |
Headers | show |
Series | arm: mvebu: a37xx: Fix and extend building memory map | expand |
diff --git a/arch/arm/mach-mvebu/armada3700/cpu.c b/arch/arm/mach-mvebu/armada3700/cpu.c index 7702028ba19b..57a811b36ac6 100644 --- a/arch/arm/mach-mvebu/armada3700/cpu.c +++ b/arch/arm/mach-mvebu/armada3700/cpu.c @@ -142,8 +142,6 @@ static void build_mem_map(void) void enable_caches(void) { - build_mem_map(); - icache_enable(); dcache_enable(); } @@ -152,6 +150,8 @@ int a3700_dram_init(void) { int win; + build_mem_map(); + gd->ram_size = 0; for (win = 0; win < MVEBU_CPU_DEC_WINS; ++win) { u32 base, tgt, size;