aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/sdrc.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2012-10-29 22:50:21 -0400
committerPaul Walmsley <paul@pwsan.com>2012-11-08 14:33:07 -0500
commitb6a4226c14001b0aa20b11c69190cb89d2237d3d (patch)
treee7c0f4b571cc010767c01d8b402762e49540c563 /arch/arm/mach-omap2/sdrc.c
parent76e0e16d91af22dd6313000ff8018069123f8ed0 (diff)
ARM: OMAP2+: common: remove mach-omap2/common.c globals and map_common_io code
Get rid of the mach-omap2/common.c globals by moving the global initialization for IP block addresses that must occur early into mach-omap2/io.c. In the process, remove the *_map_common_io*() and SoC-specific *set_globals* functions. Signed-off-by: Paul Walmsley <paul@pwsan.com> Tested-by: Vaibhav Hiremath <hvaibhav@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/sdrc.c')
-rw-r--r--arch/arm/mach-omap2/sdrc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/sdrc.c b/arch/arm/mach-omap2/sdrc.c
index 94d4082f87ed..3ed0d62333c5 100644
--- a/arch/arm/mach-omap2/sdrc.c
+++ b/arch/arm/mach-omap2/sdrc.c
@@ -114,12 +114,10 @@ int omap2_sdrc_get_params(unsigned long r,
114} 114}
115 115
116 116
117void __init omap2_set_globals_sdrc(struct omap_globals *omap2_globals) 117void __init omap2_set_globals_sdrc(void __iomem *sdrc, void __iomem *sms)
118{ 118{
119 if (omap2_globals->sdrc) 119 omap2_sdrc_base = sdrc;
120 omap2_sdrc_base = omap2_globals->sdrc; 120 omap2_sms_base = sms;
121 if (omap2_globals->sms)
122 omap2_sms_base = omap2_globals->sms;
123} 121}
124 122
125/** 123/**