diff options
author | Tony Lindgren <tony@atomide.com> | 2010-02-15 12:26:07 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 12:26:07 -0500 |
commit | be26a3df0b80307bf8f73cea535c112210151bb9 (patch) | |
tree | 8e3d90563b6d689ad37500929c05c211153295be /arch/arm/plat-omap/common.c | |
parent | 918cae14872c56446415299fc17cf98704c9a537 (diff) | |
parent | 61b603b4ee0c70708539e2fa5c3d47f17b7c7849 (diff) |
Merge branch 'debug-ll' into omap-for-linus
Diffstat (limited to 'arch/arm/plat-omap/common.c')
-rw-r--r-- | arch/arm/plat-omap/common.c | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index dddc0273bc8b..7cbc0a214aab 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <plat/control.h> | 34 | #include <plat/control.h> |
35 | #include <plat/mux.h> | 35 | #include <plat/mux.h> |
36 | #include <plat/fpga.h> | 36 | #include <plat/fpga.h> |
37 | #include <plat/serial.h> | ||
37 | 38 | ||
38 | #include <plat/clock.h> | 39 | #include <plat/clock.h> |
39 | 40 | ||
@@ -245,6 +246,7 @@ static void __init __omap2_set_globals(struct omap_globals *omap2_globals) | |||
245 | omap2_set_globals_sdrc(omap2_globals); | 246 | omap2_set_globals_sdrc(omap2_globals); |
246 | omap2_set_globals_control(omap2_globals); | 247 | omap2_set_globals_control(omap2_globals); |
247 | omap2_set_globals_prcm(omap2_globals); | 248 | omap2_set_globals_prcm(omap2_globals); |
249 | omap2_set_globals_uart(omap2_globals); | ||
248 | } | 250 | } |
249 | 251 | ||
250 | #endif | 252 | #endif |
@@ -259,6 +261,9 @@ static struct omap_globals omap242x_globals = { | |||
259 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP2420_CTRL_BASE), | 261 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP2420_CTRL_BASE), |
260 | .prm = OMAP2_L4_IO_ADDRESS(OMAP2420_PRM_BASE), | 262 | .prm = OMAP2_L4_IO_ADDRESS(OMAP2420_PRM_BASE), |
261 | .cm = OMAP2_L4_IO_ADDRESS(OMAP2420_CM_BASE), | 263 | .cm = OMAP2_L4_IO_ADDRESS(OMAP2420_CM_BASE), |
264 | .uart1_phys = OMAP2_UART1_BASE, | ||
265 | .uart2_phys = OMAP2_UART2_BASE, | ||
266 | .uart3_phys = OMAP2_UART3_BASE, | ||
262 | }; | 267 | }; |
263 | 268 | ||
264 | void __init omap2_set_globals_242x(void) | 269 | void __init omap2_set_globals_242x(void) |
@@ -277,6 +282,9 @@ static struct omap_globals omap243x_globals = { | |||
277 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP243X_CTRL_BASE), | 282 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP243X_CTRL_BASE), |
278 | .prm = OMAP2_L4_IO_ADDRESS(OMAP2430_PRM_BASE), | 283 | .prm = OMAP2_L4_IO_ADDRESS(OMAP2430_PRM_BASE), |
279 | .cm = OMAP2_L4_IO_ADDRESS(OMAP2430_CM_BASE), | 284 | .cm = OMAP2_L4_IO_ADDRESS(OMAP2430_CM_BASE), |
285 | .uart1_phys = OMAP2_UART1_BASE, | ||
286 | .uart2_phys = OMAP2_UART2_BASE, | ||
287 | .uart3_phys = OMAP2_UART3_BASE, | ||
280 | }; | 288 | }; |
281 | 289 | ||
282 | void __init omap2_set_globals_243x(void) | 290 | void __init omap2_set_globals_243x(void) |
@@ -285,9 +293,9 @@ void __init omap2_set_globals_243x(void) | |||
285 | } | 293 | } |
286 | #endif | 294 | #endif |
287 | 295 | ||
288 | #if defined(CONFIG_ARCH_OMAP3430) | 296 | #if defined(CONFIG_ARCH_OMAP3) |
289 | 297 | ||
290 | static struct omap_globals omap343x_globals = { | 298 | static struct omap_globals omap3_globals = { |
291 | .class = OMAP343X_CLASS, | 299 | .class = OMAP343X_CLASS, |
292 | .tap = OMAP2_L4_IO_ADDRESS(0x4830A000), | 300 | .tap = OMAP2_L4_IO_ADDRESS(0x4830A000), |
293 | .sdrc = OMAP2_L3_IO_ADDRESS(OMAP343X_SDRC_BASE), | 301 | .sdrc = OMAP2_L3_IO_ADDRESS(OMAP343X_SDRC_BASE), |
@@ -295,11 +303,21 @@ static struct omap_globals omap343x_globals = { | |||
295 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP343X_CTRL_BASE), | 303 | .ctrl = OMAP2_L4_IO_ADDRESS(OMAP343X_CTRL_BASE), |
296 | .prm = OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE), | 304 | .prm = OMAP2_L4_IO_ADDRESS(OMAP3430_PRM_BASE), |
297 | .cm = OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE), | 305 | .cm = OMAP2_L4_IO_ADDRESS(OMAP3430_CM_BASE), |
306 | .uart1_phys = OMAP3_UART1_BASE, | ||
307 | .uart2_phys = OMAP3_UART2_BASE, | ||
308 | .uart3_phys = OMAP3_UART3_BASE, | ||
298 | }; | 309 | }; |
299 | 310 | ||
300 | void __init omap2_set_globals_343x(void) | 311 | void __init omap2_set_globals_343x(void) |
301 | { | 312 | { |
302 | __omap2_set_globals(&omap343x_globals); | 313 | __omap2_set_globals(&omap3_globals); |
314 | } | ||
315 | |||
316 | void __init omap2_set_globals_36xx(void) | ||
317 | { | ||
318 | omap3_globals.uart4_phys = OMAP3_UART4_BASE; | ||
319 | |||
320 | __omap2_set_globals(&omap3_globals); | ||
303 | } | 321 | } |
304 | #endif | 322 | #endif |
305 | 323 | ||
@@ -311,6 +329,10 @@ static struct omap_globals omap4_globals = { | |||
311 | .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE), | 329 | .prm = OMAP2_L4_IO_ADDRESS(OMAP4430_PRM_BASE), |
312 | .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE), | 330 | .cm = OMAP2_L4_IO_ADDRESS(OMAP4430_CM_BASE), |
313 | .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE), | 331 | .cm2 = OMAP2_L4_IO_ADDRESS(OMAP4430_CM2_BASE), |
332 | .uart1_phys = OMAP4_UART1_BASE, | ||
333 | .uart2_phys = OMAP4_UART2_BASE, | ||
334 | .uart3_phys = OMAP4_UART3_BASE, | ||
335 | .uart4_phys = OMAP4_UART4_BASE, | ||
314 | }; | 336 | }; |
315 | 337 | ||
316 | void __init omap2_set_globals_443x(void) | 338 | void __init omap2_set_globals_443x(void) |
@@ -318,6 +340,7 @@ void __init omap2_set_globals_443x(void) | |||
318 | omap2_set_globals_tap(&omap4_globals); | 340 | omap2_set_globals_tap(&omap4_globals); |
319 | omap2_set_globals_control(&omap4_globals); | 341 | omap2_set_globals_control(&omap4_globals); |
320 | omap2_set_globals_prcm(&omap4_globals); | 342 | omap2_set_globals_prcm(&omap4_globals); |
343 | omap2_set_globals_uart(&omap4_globals); | ||
321 | } | 344 | } |
322 | #endif | 345 | #endif |
323 | 346 | ||