diff options
Diffstat (limited to 'arch/arm/plat-omap/common.c')
-rw-r--r-- | arch/arm/plat-omap/common.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c index 219c01e82bc5..3008e7104487 100644 --- a/arch/arm/plat-omap/common.c +++ b/arch/arm/plat-omap/common.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/serial_reg.h> | 22 | #include <linux/serial_reg.h> |
23 | #include <linux/clk.h> | 23 | #include <linux/clk.h> |
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <linux/omapfb.h> | ||
25 | 26 | ||
26 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
27 | #include <asm/system.h> | 28 | #include <asm/system.h> |
@@ -35,6 +36,7 @@ | |||
35 | #include <plat/mux.h> | 36 | #include <plat/mux.h> |
36 | #include <plat/fpga.h> | 37 | #include <plat/fpga.h> |
37 | #include <plat/serial.h> | 38 | #include <plat/serial.h> |
39 | #include <plat/vram.h> | ||
38 | 40 | ||
39 | #include <plat/clock.h> | 41 | #include <plat/clock.h> |
40 | 42 | ||
@@ -81,6 +83,12 @@ const void *omap_get_var_config(u16 tag, size_t *len) | |||
81 | } | 83 | } |
82 | EXPORT_SYMBOL(omap_get_var_config); | 84 | EXPORT_SYMBOL(omap_get_var_config); |
83 | 85 | ||
86 | void __init omap_reserve(void) | ||
87 | { | ||
88 | omapfb_reserve_sdram_memblock(); | ||
89 | omap_vram_reserve_sdram_memblock(); | ||
90 | } | ||
91 | |||
84 | /* | 92 | /* |
85 | * 32KHz clocksource ... always available, on pretty most chips except | 93 | * 32KHz clocksource ... always available, on pretty most chips except |
86 | * OMAP 730 and 1510. Other timers could be used as clocksources, with | 94 | * OMAP 730 and 1510. Other timers could be used as clocksources, with |
@@ -309,18 +317,18 @@ static struct omap_globals omap3_globals = { | |||
309 | .uart1_phys = OMAP3_UART1_BASE, | 317 | .uart1_phys = OMAP3_UART1_BASE, |
310 | .uart2_phys = OMAP3_UART2_BASE, | 318 | .uart2_phys = OMAP3_UART2_BASE, |
311 | .uart3_phys = OMAP3_UART3_BASE, | 319 | .uart3_phys = OMAP3_UART3_BASE, |
320 | .uart4_phys = OMAP3_UART4_BASE, /* Only on 3630 */ | ||
312 | }; | 321 | }; |
313 | 322 | ||
314 | void __init omap2_set_globals_343x(void) | 323 | void __init omap2_set_globals_3xxx(void) |
315 | { | 324 | { |
316 | __omap2_set_globals(&omap3_globals); | 325 | __omap2_set_globals(&omap3_globals); |
317 | } | 326 | } |
318 | 327 | ||
319 | void __init omap2_set_globals_36xx(void) | 328 | void __init omap3_map_io(void) |
320 | { | 329 | { |
321 | omap3_globals.uart4_phys = OMAP3_UART4_BASE; | 330 | omap2_set_globals_3xxx(); |
322 | 331 | omap34xx_map_common_io(); | |
323 | __omap2_set_globals(&omap3_globals); | ||
324 | } | 332 | } |
325 | #endif | 333 | #endif |
326 | 334 | ||