diff options
Diffstat (limited to 'arch/arm/mach-omap2/common.c')
-rw-r--r-- | arch/arm/mach-omap2/common.c | 62 |
1 files changed, 38 insertions, 24 deletions
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index 3f20cbb9967b..110e5b9db145 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -45,17 +45,22 @@ static void __init __omap2_set_globals(struct omap_globals *omap2_globals) | |||
45 | static struct omap_globals omap242x_globals = { | 45 | static struct omap_globals omap242x_globals = { |
46 | .class = OMAP242X_CLASS, | 46 | .class = OMAP242X_CLASS, |
47 | .tap = OMAP2_L4_IO_ADDRESS(0x48014000), | 47 | .tap = OMAP2_L4_IO_ADDRESS(0x48014000), |
48 | .sdrc = OMAP2420_SDRC_BASE, | 48 | .sdrc = OMAP2_L3_IO_ADDRESS(OMAP2420_SDRC_BASE), |
49 | .sms = OMAP2420_SMS_BASE, | 49 | .sms = OMAP2_L3_IO_ADDRESS(OMAP2420_SMS_BASE), |
50 | .ctrl = OMAP242X_CTRL_BASE, | 50 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP242X_CTRL_BASE), |
51 | .prm = OMAP2420_PRM_BASE, | 51 | .prm = OMAP2_L4_IO_ADDRESS(OMAP2420_PRM_BASE), |
52 | .cm = OMAP2420_CM_BASE, | 52 | .cm = OMAP2_L4_IO_ADDRESS(OMAP2420_CM_BASE), |
53 | }; | 53 | }; |
54 | 54 | ||
55 | void __init omap2_set_globals_242x(void) | 55 | void __init omap2_set_globals_242x(void) |
56 | { | 56 | { |
57 | __omap2_set_globals(&omap242x_globals); | 57 | __omap2_set_globals(&omap242x_globals); |
58 | } | 58 | } |
59 | |||
60 | void __init omap242x_map_io(void) | ||
61 | { | ||
62 | omap242x_map_common_io(); | ||
63 | } | ||
59 | #endif | 64 | #endif |
60 | 65 | ||
61 | #if defined(CONFIG_SOC_OMAP2430) | 66 | #if defined(CONFIG_SOC_OMAP2430) |
@@ -63,17 +68,22 @@ void __init omap2_set_globals_242x(void) | |||
63 | static struct omap_globals omap243x_globals = { | 68 | static struct omap_globals omap243x_globals = { |
64 | .class = OMAP243X_CLASS, | 69 | .class = OMAP243X_CLASS, |
65 | .tap = OMAP2_L4_IO_ADDRESS(0x4900a000), | 70 | .tap = OMAP2_L4_IO_ADDRESS(0x4900a000), |
66 | .sdrc = OMAP243X_SDRC_BASE, | 71 | .sdrc = OMAP2_L3_IO_ADDRESS(OMAP243X_SDRC_BASE), |
67 | .sms = OMAP243X_SMS_BASE, | 72 | .sms = OMAP2_L3_IO_ADDRESS(OMAP243X_SMS_BASE), |
68 | .ctrl = OMAP243X_CTRL_BASE, | 73 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP243X_CTRL_BASE), |
69 | .prm = OMAP2430_PRM_BASE, | 74 | .prm = OMAP2_L4_IO_ADDRESS(OMAP2430_PRM_BASE), |
70 | .cm = OMAP2430_CM_BASE, | 75 | .cm = OMAP2_L4_IO_ADDRESS(OMAP2430_CM_BASE), |
71 | }; | 76 | }; |
72 | 77 | ||
73 | void __init omap2_set_globals_243x(void) | 78 | void __init omap2_set_globals_243x(void) |
74 | { | 79 | { |
75 | __omap2_set_globals(&omap243x_globals); | 80 | __omap2_set_globals(&omap243x_globals); |
76 | } | 81 | } |
82 | |||
83 | void __init omap243x_map_io(void) | ||
84 | { | ||
85 | omap243x_map_common_io(); | ||
86 | } | ||
77 | #endif | 87 | #endif |
78 | 88 | ||
79 | #if defined(CONFIG_ARCH_OMAP3) | 89 | #if defined(CONFIG_ARCH_OMAP3) |
@@ -81,11 +91,11 @@ void __init omap2_set_globals_243x(void) | |||
81 | static struct omap_globals omap3_globals = { | 91 | static struct omap_globals omap3_globals = { |
82 | .class = OMAP343X_CLASS, | 92 | .class = OMAP343X_CLASS, |
83 | .tap = OMAP2_L4_IO_ADDRESS(0x4830A000), | 93 | .tap = OMAP2_L4_IO_ADDRESS(0x4830A000), |
84 | .sdrc = OMAP343X_SDRC_BASE, | 94 | .sdrc = OMAP2_L3_IO_ADDRESS(OMAP343X_SDRC_BASE), |
85 | .sms = OMAP343X_SMS_BASE, | 95 | .sms = OMAP2_L3_IO_ADDRESS(OMAP343X_SMS_BASE), |
86 | .ctrl = OMAP343X_CTRL_BASE, | 96 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP343X_CTRL_BASE), |
87 | .prm = OMAP3430_PRM_BASE, | 97 | .prm = OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE), |
88 | .cm = OMAP3430_CM_BASE, | 98 | .cm = OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE), |
89 | }; | 99 | }; |
90 | 100 | ||
91 | void __init omap2_set_globals_3xxx(void) | 101 | void __init omap2_set_globals_3xxx(void) |
@@ -95,7 +105,6 @@ void __init omap2_set_globals_3xxx(void) | |||
95 | 105 | ||
96 | void __init omap3_map_io(void) | 106 | void __init omap3_map_io(void) |
97 | { | 107 | { |
98 | omap2_set_globals_3xxx(); | ||
99 | omap34xx_map_common_io(); | 108 | omap34xx_map_common_io(); |
100 | } | 109 | } |
101 | 110 | ||
@@ -110,9 +119,9 @@ void __init omap3_map_io(void) | |||
110 | static struct omap_globals ti816x_globals = { | 119 | static struct omap_globals ti816x_globals = { |
111 | .class = OMAP343X_CLASS, | 120 | .class = OMAP343X_CLASS, |
112 | .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), | 121 | .tap = OMAP2_L4_IO_ADDRESS(TI816X_TAP_BASE), |
113 | .ctrl = TI816X_CTRL_BASE, | 122 | .ctrl = OMAP2_L4_IO_ADDRESS(TI816X_CTRL_BASE), |
114 | .prm = TI816X_PRCM_BASE, | 123 | .prm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE), |
115 | .cm = TI816X_PRCM_BASE, | 124 | .cm = OMAP2_L4_IO_ADDRESS(TI816X_PRCM_BASE), |
116 | }; | 125 | }; |
117 | 126 | ||
118 | void __init omap2_set_globals_ti816x(void) | 127 | void __init omap2_set_globals_ti816x(void) |
@@ -125,11 +134,11 @@ void __init omap2_set_globals_ti816x(void) | |||
125 | static struct omap_globals omap4_globals = { | 134 | static struct omap_globals omap4_globals = { |
126 | .class = OMAP443X_CLASS, | 135 | .class = OMAP443X_CLASS, |
127 | .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), | 136 | .tap = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), |
128 | .ctrl = OMAP443X_SCM_BASE, | 137 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP443X_SCM_BASE), |
129 | .ctrl_pad = OMAP443X_CTRL_BASE, | 138 | .ctrl_pad = OMAP2_L4_IO_ADDRESS(OMAP443X_CTRL_BASE), |
130 | .prm = OMAP4430_PRM_BASE, | 139 | .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE), |
131 | .cm = OMAP4430_CM_BASE, | 140 | .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE), |
132 | .cm2 = OMAP4430_CM2_BASE, | 141 | .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE), |
133 | }; | 142 | }; |
134 | 143 | ||
135 | void __init omap2_set_globals_443x(void) | 144 | void __init omap2_set_globals_443x(void) |
@@ -138,5 +147,10 @@ void __init omap2_set_globals_443x(void) | |||
138 | omap2_set_globals_control(&omap4_globals); | 147 | omap2_set_globals_control(&omap4_globals); |
139 | omap2_set_globals_prcm(&omap4_globals); | 148 | omap2_set_globals_prcm(&omap4_globals); |
140 | } | 149 | } |
150 | |||
151 | void __init omap4_map_io(void) | ||
152 | { | ||
153 | omap44xx_map_common_io(); | ||
154 | } | ||
141 | #endif | 155 | #endif |
142 | 156 | ||