Skip to content
Snippets Groups Projects
Commit e1b078e0 authored by Kevin Smith's avatar Kevin Smith Committed by Luka Perkov
Browse files

arm: mvebu: Update CBAR with SOC regs base


SMP-enabled Linux kernels read the CBAR register in CP15 to find
the address of the SCU registers.  After remapping internal
registers, also update the CBAR so the kernel can find them.

Signed-off-by: default avatarKevin Smith <kevin.smith@elecsyscorp.com>
Acked-by: default avatarStefan Roese <sr@denx.de>
parent 5730360e
No related branches found
No related tags found
No related merge requests found
......@@ -161,10 +161,17 @@ static void update_sdram_window_sizes(void)
}
#ifdef CONFIG_ARCH_CPU_INIT
static void set_cbar(u32 addr)
{
asm("mcr p15, 4, %0, c15, c0" : : "r" (addr));
}
int arch_cpu_init(void)
{
/* Linux expects the internal registers to be at 0xf1000000 */
writel(SOC_REGS_PHY_BASE, INTREG_BASE_ADDR_REG);
set_cbar(SOC_REGS_PHY_BASE + 0xC000);
/*
* We need to call mvebu_mbus_probe() before calling
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment