diff options
-rw-r--r-- | arch/arm/mach-omap1/io.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/io.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-omap/Makefile | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/common.c | 26 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat-omap/dma-omap.h | 1 |
5 files changed, 1 insertions, 41 deletions
diff --git a/arch/arm/mach-omap1/io.c b/arch/arm/mach-omap1/io.c index 44389d7cd255..5a3b80617a11 100644 --- a/arch/arm/mach-omap1/io.c +++ b/arch/arm/mach-omap1/io.c | |||
@@ -134,7 +134,6 @@ void __init omap1_init_early(void) | |||
134 | */ | 134 | */ |
135 | omap1_clk_init(); | 135 | omap1_clk_init(); |
136 | omap1_mux_init(); | 136 | omap1_mux_init(); |
137 | omap_init_consistent_dma_size(); | ||
138 | } | 137 | } |
139 | 138 | ||
140 | void __init omap1_init_late(void) | 139 | void __init omap1_init_late(void) |
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 814f69955d72..807b8d919f81 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c | |||
@@ -353,11 +353,6 @@ static int _set_hwmod_postsetup_state(struct omap_hwmod *oh, void *data) | |||
353 | return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); | 353 | return omap_hwmod_set_postsetup_state(oh, *(u8 *)data); |
354 | } | 354 | } |
355 | 355 | ||
356 | static void __init omap_common_init_early(void) | ||
357 | { | ||
358 | omap_init_consistent_dma_size(); | ||
359 | } | ||
360 | |||
361 | static void __init omap_hwmod_init_postsetup(void) | 356 | static void __init omap_hwmod_init_postsetup(void) |
362 | { | 357 | { |
363 | u8 postsetup_state; | 358 | u8 postsetup_state; |
@@ -378,7 +373,6 @@ void __init omap2420_init_early(void) | |||
378 | { | 373 | { |
379 | omap2_set_globals_242x(); | 374 | omap2_set_globals_242x(); |
380 | omap2xxx_check_revision(); | 375 | omap2xxx_check_revision(); |
381 | omap_common_init_early(); | ||
382 | omap2xxx_voltagedomains_init(); | 376 | omap2xxx_voltagedomains_init(); |
383 | omap242x_powerdomains_init(); | 377 | omap242x_powerdomains_init(); |
384 | omap242x_clockdomains_init(); | 378 | omap242x_clockdomains_init(); |
@@ -400,7 +394,6 @@ void __init omap2430_init_early(void) | |||
400 | { | 394 | { |
401 | omap2_set_globals_243x(); | 395 | omap2_set_globals_243x(); |
402 | omap2xxx_check_revision(); | 396 | omap2xxx_check_revision(); |
403 | omap_common_init_early(); | ||
404 | omap2xxx_voltagedomains_init(); | 397 | omap2xxx_voltagedomains_init(); |
405 | omap243x_powerdomains_init(); | 398 | omap243x_powerdomains_init(); |
406 | omap243x_clockdomains_init(); | 399 | omap243x_clockdomains_init(); |
@@ -427,7 +420,6 @@ void __init omap3_init_early(void) | |||
427 | omap2_set_globals_3xxx(); | 420 | omap2_set_globals_3xxx(); |
428 | omap3xxx_check_revision(); | 421 | omap3xxx_check_revision(); |
429 | omap3xxx_check_features(); | 422 | omap3xxx_check_features(); |
430 | omap_common_init_early(); | ||
431 | omap3xxx_voltagedomains_init(); | 423 | omap3xxx_voltagedomains_init(); |
432 | omap3xxx_powerdomains_init(); | 424 | omap3xxx_powerdomains_init(); |
433 | omap3xxx_clockdomains_init(); | 425 | omap3xxx_clockdomains_init(); |
@@ -461,7 +453,6 @@ void __init ti81xx_init_early(void) | |||
461 | omap2_set_globals_ti81xx(); | 453 | omap2_set_globals_ti81xx(); |
462 | omap3xxx_check_revision(); | 454 | omap3xxx_check_revision(); |
463 | ti81xx_check_features(); | 455 | ti81xx_check_features(); |
464 | omap_common_init_early(); | ||
465 | omap3xxx_voltagedomains_init(); | 456 | omap3xxx_voltagedomains_init(); |
466 | omap3xxx_powerdomains_init(); | 457 | omap3xxx_powerdomains_init(); |
467 | omap3xxx_clockdomains_init(); | 458 | omap3xxx_clockdomains_init(); |
@@ -519,7 +510,6 @@ void __init am33xx_init_early(void) | |||
519 | omap2_set_globals_am33xx(); | 510 | omap2_set_globals_am33xx(); |
520 | omap3xxx_check_revision(); | 511 | omap3xxx_check_revision(); |
521 | ti81xx_check_features(); | 512 | ti81xx_check_features(); |
522 | omap_common_init_early(); | ||
523 | am33xx_voltagedomains_init(); | 513 | am33xx_voltagedomains_init(); |
524 | am33xx_powerdomains_init(); | 514 | am33xx_powerdomains_init(); |
525 | am33xx_clockdomains_init(); | 515 | am33xx_clockdomains_init(); |
@@ -535,7 +525,6 @@ void __init omap4430_init_early(void) | |||
535 | omap2_set_globals_443x(); | 525 | omap2_set_globals_443x(); |
536 | omap4xxx_check_revision(); | 526 | omap4xxx_check_revision(); |
537 | omap4xxx_check_features(); | 527 | omap4xxx_check_features(); |
538 | omap_common_init_early(); | ||
539 | omap44xx_voltagedomains_init(); | 528 | omap44xx_voltagedomains_init(); |
540 | omap44xx_powerdomains_init(); | 529 | omap44xx_powerdomains_init(); |
541 | omap44xx_clockdomains_init(); | 530 | omap44xx_clockdomains_init(); |
@@ -557,7 +546,6 @@ void __init omap5_init_early(void) | |||
557 | { | 546 | { |
558 | omap2_set_globals_5xxx(); | 547 | omap2_set_globals_5xxx(); |
559 | omap5xxx_check_revision(); | 548 | omap5xxx_check_revision(); |
560 | omap_common_init_early(); | ||
561 | } | 549 | } |
562 | #endif | 550 | #endif |
563 | 551 | ||
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 50da9bf5d95c..8d885848600a 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
@@ -3,7 +3,7 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := common.o sram.o dma.o fb.o counter_32k.o | 6 | obj-y := sram.o dma.o fb.o counter_32k.o |
7 | obj-m := | 7 | obj-m := |
8 | obj-n := | 8 | obj-n := |
9 | obj- := | 9 | obj- := |
diff --git a/arch/arm/plat-omap/common.c b/arch/arm/plat-omap/common.c deleted file mode 100644 index bf6cd80a30e1..000000000000 --- a/arch/arm/plat-omap/common.c +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/plat-omap/common.c | ||
3 | * | ||
4 | * Code common to all OMAP machines. | ||
5 | * The file is created by Tony Lindgren <tony@atomide.com> | ||
6 | * | ||
7 | * Copyright (C) 2009 Texas Instruments | ||
8 | * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License version 2 as | ||
12 | * published by the Free Software Foundation. | ||
13 | */ | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/init.h> | ||
16 | #include <linux/io.h> | ||
17 | #include <linux/dma-mapping.h> | ||
18 | |||
19 | #include <plat-omap/dma-omap.h> | ||
20 | |||
21 | void __init omap_init_consistent_dma_size(void) | ||
22 | { | ||
23 | #ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE | ||
24 | init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20); | ||
25 | #endif | ||
26 | } | ||
diff --git a/arch/arm/plat-omap/include/plat-omap/dma-omap.h b/arch/arm/plat-omap/include/plat-omap/dma-omap.h index f89886d5fda3..6f506ba9e453 100644 --- a/arch/arm/plat-omap/include/plat-omap/dma-omap.h +++ b/arch/arm/plat-omap/include/plat-omap/dma-omap.h | |||
@@ -281,7 +281,6 @@ struct omap_system_dma_plat_info { | |||
281 | #define dma_omap15xx() ((dma_omap1() && (d->dev_caps & ENABLE_1510_MODE))) | 281 | #define dma_omap15xx() ((dma_omap1() && (d->dev_caps & ENABLE_1510_MODE))) |
282 | #define dma_omap16xx() ((dma_omap1() && (d->dev_caps & ENABLE_16XX_MODE))) | 282 | #define dma_omap16xx() ((dma_omap1() && (d->dev_caps & ENABLE_16XX_MODE))) |
283 | 283 | ||
284 | extern void __init omap_init_consistent_dma_size(void); | ||
285 | extern void omap_set_dma_priority(int lch, int dst_port, int priority); | 284 | extern void omap_set_dma_priority(int lch, int dst_port, int priority); |
286 | extern int omap_request_dma(int dev_id, const char *dev_name, | 285 | extern int omap_request_dma(int dev_id, const char *dev_name, |
287 | void (*callback)(int lch, u16 ch_status, void *data), | 286 | void (*callback)(int lch, u16 ch_status, void *data), |