diff options
author | Sergio Aguirre <saaguirre@ti.com> | 2010-08-04 07:43:18 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-08-04 07:43:18 -0400 |
commit | c573bcf96a427923d09de0b247691165d9a96023 (patch) | |
tree | afeb0c26640e282af9aab08aa169e92cd73b8d38 /arch/arm/plat-omap/common.c | |
parent | be82ae0238b0453afcf4a76f0512b7dde34ba500 (diff) |
omap3: Unify omap2_set_globals_3[43,6x]x functions
The only difference between them is the physical address of the
uart4 port, which is only present in 36xx chips.
We don't really need to care about keeping these 2 functions, since
the decision to use uart4 is more cleanly done later when we do have
access to omap_revision variable.
Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
[tony@atomide.com: added comment for the uart4_phys]
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.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index ebed82699eb2..8932350abfd2 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -317,19 +317,13 @@ static struct omap_globals omap3_globals = { | |||
317 | .uart1_phys = OMAP3_UART1_BASE, | 317 | .uart1_phys = OMAP3_UART1_BASE, |
318 | .uart2_phys = OMAP3_UART2_BASE, | 318 | .uart2_phys = OMAP3_UART2_BASE, |
319 | .uart3_phys = OMAP3_UART3_BASE, | 319 | .uart3_phys = OMAP3_UART3_BASE, |
320 | .uart4_phys = OMAP3_UART4_BASE, /* Only on 3630 */ | ||
320 | }; | 321 | }; |
321 | 322 | ||
322 | void __init omap2_set_globals_343x(void) | 323 | void __init omap2_set_globals_3xxx(void) |
323 | { | 324 | { |
324 | __omap2_set_globals(&omap3_globals); | 325 | __omap2_set_globals(&omap3_globals); |
325 | } | 326 | } |
326 | |||
327 | void __init omap2_set_globals_36xx(void) | ||
328 | { | ||
329 | omap3_globals.uart4_phys = OMAP3_UART4_BASE; | ||
330 | |||
331 | __omap2_set_globals(&omap3_globals); | ||
332 | } | ||
333 | #endif | 327 | #endif |
334 | 328 | ||
335 | #if defined(CONFIG_ARCH_OMAP4) | 329 | #if defined(CONFIG_ARCH_OMAP4) |