diff options
author | Tony Lindgren <tony@atomide.com> | 2011-10-04 21:17:41 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2011-10-19 19:34:11 -0400 |
commit | 4c3cf90117f1f4906d5975aeccc5ffd414807fd2 (patch) | |
tree | 97ffb9d131b69b694229bd8c2f7f27303ee6d4d0 /arch/arm/mach-omap2/prcm.c | |
parent | a66cb3454f220f49f900646ebdc76cb943319eb7 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-omap2/prcm.c')
-rw-r--r-- | arch/arm/mach-omap2/prcm.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c index 2e40a5cf0163..8db5f035eb0a 100644 --- a/arch/arm/mach-omap2/prcm.c +++ b/arch/arm/mach-omap2/prcm.c | |||
@@ -151,17 +151,10 @@ int omap2_cm_wait_idlest(void __iomem *reg, u32 mask, u8 idlest, | |||
151 | 151 | ||
152 | void __init omap2_set_globals_prcm(struct omap_globals *omap2_globals) | 152 | void __init omap2_set_globals_prcm(struct omap_globals *omap2_globals) |
153 | { | 153 | { |
154 | /* Static mapping, never released */ | 154 | if (omap2_globals->prm) |
155 | if (omap2_globals->prm) { | 155 | prm_base = omap2_globals->prm; |
156 | prm_base = ioremap(omap2_globals->prm, SZ_8K); | 156 | if (omap2_globals->cm) |
157 | WARN_ON(!prm_base); | 157 | cm_base = omap2_globals->cm; |
158 | } | 158 | if (omap2_globals->cm2) |
159 | if (omap2_globals->cm) { | 159 | cm2_base = omap2_globals->cm2; |
160 | cm_base = ioremap(omap2_globals->cm, SZ_8K); | ||
161 | WARN_ON(!cm_base); | ||
162 | } | ||
163 | if (omap2_globals->cm2) { | ||
164 | cm2_base = ioremap(omap2_globals->cm2, SZ_8K); | ||
165 | WARN_ON(!cm2_base); | ||
166 | } | ||
167 | } | 160 | } |