ARM: OMAP: Move set_globals initialization to happen in init_early
Otherwise we can't do generic map_io as we currently rely on static mappings that work only because of arch_ioremap. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
@@ -102,8 +102,11 @@ void __init smp_init_cpus(void)
|
||||
{
|
||||
unsigned int i, ncores;
|
||||
|
||||
/* Never released */
|
||||
scu_base = ioremap(OMAP44XX_SCU_BASE, SZ_256);
|
||||
/*
|
||||
* Currently we can't call ioremap here because
|
||||
* SoC detection won't work until after init_early.
|
||||
*/
|
||||
scu_base = OMAP2_L4_IO_ADDRESS(OMAP44XX_SCU_BASE);
|
||||
BUG_ON(!scu_base);
|
||||
|
||||
ncores = scu_get_core_count(scu_base);
|
||||
|
Reference in New Issue
Block a user