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/control.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/control.c')
-rw-r--r-- | arch/arm/mach-omap2/control.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index aab884fecc55..e34d27f8c49c 100644 --- a/arch/arm/mach-omap2/control.c +++ b/arch/arm/mach-omap2/control.c | |||
@@ -149,17 +149,11 @@ static struct omap3_control_regs control_context; | |||
149 | 149 | ||
150 | void __init omap2_set_globals_control(struct omap_globals *omap2_globals) | 150 | void __init omap2_set_globals_control(struct omap_globals *omap2_globals) |
151 | { | 151 | { |
152 | /* Static mapping, never released */ | 152 | if (omap2_globals->ctrl) |
153 | if (omap2_globals->ctrl) { | 153 | omap2_ctrl_base = omap2_globals->ctrl; |
154 | omap2_ctrl_base = ioremap(omap2_globals->ctrl, SZ_4K); | ||
155 | WARN_ON(!omap2_ctrl_base); | ||
156 | } | ||
157 | 154 | ||
158 | /* Static mapping, never released */ | 155 | if (omap2_globals->ctrl_pad) |
159 | if (omap2_globals->ctrl_pad) { | 156 | omap4_ctrl_pad_base = omap2_globals->ctrl_pad; |
160 | omap4_ctrl_pad_base = ioremap(omap2_globals->ctrl_pad, SZ_4K); | ||
161 | WARN_ON(!omap4_ctrl_pad_base); | ||
162 | } | ||
163 | } | 157 | } |
164 | 158 | ||
165 | void __iomem *omap_ctrl_base_get(void) | 159 | void __iomem *omap_ctrl_base_get(void) |