aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/common.c
diff options
context:
space:
mode:
authorSantosh Shilimkar <santosh.shilimkar@ti.com>2010-02-15 07:33:37 -0500
committerTony Lindgren <tony@atomide.com>2010-02-23 13:57:40 -0500
commitb7ebb10b0a9793effa4a74a3c29049b44c6b8176 (patch)
tree3559425a0c9b4759b25cc95b2690d139cfdfcc96 /arch/arm/plat-omap/common.c
parente03d37d85909fd9b09e78087c57b45972a7664ad (diff)
omap2/3/4: ioremap omap_globals module
This is a clean-up patch towards dynamic allocation of IO space instead of using harcoded macros to calculate virtual addresses. Also update the sdrc, prcm and control module to allocate iospace dynamically Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com> Reviewed-by: Paul Walmsley <paul@pwsan.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/common.c')
-rw-r--r--arch/arm/plat-omap/common.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c
index 4f29e8c0f539..088c1a03b946 100644
--- a/arch/arm/plat-omap/common.c
+++ b/arch/arm/plat-omap/common.c
@@ -256,11 +256,11 @@ static void __init __omap2_set_globals(struct omap_globals *omap2_globals)
256static struct omap_globals omap242x_globals = { 256static struct omap_globals omap242x_globals = {
257 .class = OMAP242X_CLASS, 257 .class = OMAP242X_CLASS,
258 .tap = OMAP2_L4_IO_ADDRESS(0x48014000), 258 .tap = OMAP2_L4_IO_ADDRESS(0x48014000),
259 .sdrc = OMAP2_L3_IO_ADDRESS(OMAP2420_SDRC_BASE), 259 .sdrc = OMAP2420_SDRC_BASE,
260 .sms = OMAP2_L3_IO_ADDRESS(OMAP2420_SMS_BASE), 260 .sms = OMAP2420_SMS_BASE,
261 .ctrl = OMAP2_L4_IO_ADDRESS(OMAP2420_CTRL_BASE), 261 .ctrl = OMAP2420_CTRL_BASE,
262 .prm = OMAP2_L4_IO_ADDRESS(OMAP2420_PRM_BASE), 262 .prm = OMAP2420_PRM_BASE,
263 .cm = OMAP2_L4_IO_ADDRESS(OMAP2420_CM_BASE), 263 .cm = OMAP2420_CM_BASE,
264 .uart1_phys = OMAP2_UART1_BASE, 264 .uart1_phys = OMAP2_UART1_BASE,
265 .uart2_phys = OMAP2_UART2_BASE, 265 .uart2_phys = OMAP2_UART2_BASE,
266 .uart3_phys = OMAP2_UART3_BASE, 266 .uart3_phys = OMAP2_UART3_BASE,
@@ -277,11 +277,11 @@ void __init omap2_set_globals_242x(void)
277static struct omap_globals omap243x_globals = { 277static struct omap_globals omap243x_globals = {
278 .class = OMAP243X_CLASS, 278 .class = OMAP243X_CLASS,
279 .tap = OMAP2_L4_IO_ADDRESS(0x4900a000), 279 .tap = OMAP2_L4_IO_ADDRESS(0x4900a000),
280 .sdrc = OMAP2_L3_IO_ADDRESS(OMAP243X_SDRC_BASE), 280 .sdrc = OMAP243X_SDRC_BASE,
281 .sms = OMAP2_L3_IO_ADDRESS(OMAP243X_SMS_BASE), 281 .sms = OMAP243X_SMS_BASE,
282 .ctrl = OMAP2_L4_IO_ADDRESS(OMAP243X_CTRL_BASE), 282 .ctrl = OMAP243X_CTRL_BASE,
283 .prm = OMAP2_L4_IO_ADDRESS(OMAP2430_PRM_BASE), 283 .prm = OMAP2430_PRM_BASE,
284 .cm = OMAP2_L4_IO_ADDRESS(OMAP2430_CM_BASE), 284 .cm = OMAP2430_CM_BASE,
285 .uart1_phys = OMAP2_UART1_BASE, 285 .uart1_phys = OMAP2_UART1_BASE,
286 .uart2_phys = OMAP2_UART2_BASE, 286 .uart2_phys = OMAP2_UART2_BASE,
287 .uart3_phys = OMAP2_UART3_BASE, 287 .uart3_phys = OMAP2_UART3_BASE,
@@ -298,11 +298,11 @@ void __init omap2_set_globals_243x(void)
298static struct omap_globals omap3_globals = { 298static struct omap_globals omap3_globals = {
299 .class = OMAP343X_CLASS, 299 .class = OMAP343X_CLASS,
300 .tap = OMAP2_L4_IO_ADDRESS(0x4830A000), 300 .tap = OMAP2_L4_IO_ADDRESS(0x4830A000),
301 .sdrc = OMAP2_L3_IO_ADDRESS(OMAP343X_SDRC_BASE), 301 .sdrc = OMAP343X_SDRC_BASE,
302 .sms = OMAP2_L3_IO_ADDRESS(OMAP343X_SMS_BASE), 302 .sms = OMAP343X_SMS_BASE,
303 .ctrl = OMAP2_L4_IO_ADDRESS(OMAP343X_CTRL_BASE), 303 .ctrl = OMAP343X_CTRL_BASE,
304 .prm = OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE), 304 .prm = OMAP3430_PRM_BASE,
305 .cm = OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE), 305 .cm = OMAP3430_CM_BASE,
306 .uart1_phys = OMAP3_UART1_BASE, 306 .uart1_phys = OMAP3_UART1_BASE,
307 .uart2_phys = OMAP3_UART2_BASE, 307 .uart2_phys = OMAP3_UART2_BASE,
308 .uart3_phys = OMAP3_UART3_BASE, 308 .uart3_phys = OMAP3_UART3_BASE,
@@ -325,10 +325,10 @@ void __init omap2_set_globals_36xx(void)
325static struct omap_globals omap4_globals = { 325static struct omap_globals omap4_globals = {
326 .class = OMAP443X_CLASS, 326 .class = OMAP443X_CLASS,
327 .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), 327 .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE),
328 .ctrl = OMAP2_L4_IO_ADDRESS(OMAP443X_CTRL_BASE), 328 .ctrl = OMAP443X_CTRL_BASE,
329 .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE), 329 .prm = OMAP4430_PRM_BASE,
330 .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE), 330 .cm = OMAP4430_CM_BASE,
331 .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE), 331 .cm2 = OMAP4430_CM2_BASE,
332 .uart1_phys = OMAP4_UART1_BASE, 332 .uart1_phys = OMAP4_UART1_BASE,
333 .uart2_phys = OMAP4_UART2_BASE, 333 .uart2_phys = OMAP4_UART2_BASE,
334 .uart3_phys = OMAP4_UART3_BASE, 334 .uart3_phys = OMAP4_UART3_BASE,