Commit 97f8a27a authored by Sebastian Andrzej Siewior's avatar Sebastian Andrzej Siewior Committed by Nicolas Pitre

[ARM] orion5x: increment window counter after adding sram mapping

Without incrementing the counter the next window setup will overwrite
the SRAM mapping.
Signed-off-by: default avatarSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
parent 45e3e193
...@@ -200,6 +200,6 @@ void __init orion5x_setup_pcie_wa_win(u32 base, u32 size) ...@@ -200,6 +200,6 @@ void __init orion5x_setup_pcie_wa_win(u32 base, u32 size)
int __init orion5x_setup_sram_win(void) int __init orion5x_setup_sram_win(void)
{ {
return setup_cpu_win(win_alloc_count, ORION5X_SRAM_PHYS_BASE, return setup_cpu_win(win_alloc_count++, ORION5X_SRAM_PHYS_BASE,
ORION5X_SRAM_SIZE, TARGET_SRAM, ATTR_SRAM, -1); ORION5X_SRAM_SIZE, TARGET_SRAM, ATTR_SRAM, -1);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment