diff options
-rw-r--r-- | arch/arm/mach-omap2/board-4430sdp.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-devkit8000.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3beagle.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3logic.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3stalker.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-omap4panda.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/timer-gp.c | 26 | ||||
-rw-r--r-- | arch/arm/mach-omap2/timer-gp.h | 16 |
9 files changed, 0 insertions, 64 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 128efb50215c..f88505a4f21a 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c | |||
@@ -40,7 +40,6 @@ | |||
40 | 40 | ||
41 | #include "mux.h" | 41 | #include "mux.h" |
42 | #include "hsmmc.h" | 42 | #include "hsmmc.h" |
43 | #include "timer-gp.h" | ||
44 | #include "control.h" | 43 | #include "control.h" |
45 | #include "common-board-devices.h" | 44 | #include "common-board-devices.h" |
46 | 45 | ||
@@ -295,9 +294,6 @@ static void __init omap_4430sdp_init_early(void) | |||
295 | { | 294 | { |
296 | omap2_init_common_infrastructure(); | 295 | omap2_init_common_infrastructure(); |
297 | omap2_init_common_devices(NULL, NULL); | 296 | omap2_init_common_devices(NULL, NULL); |
298 | #ifdef CONFIG_OMAP_32K_TIMER | ||
299 | omap2_gp_clockevent_set_gptimer(1); | ||
300 | #endif | ||
301 | } | 297 | } |
302 | 298 | ||
303 | static struct omap_musb_board_data musb_board_data = { | 299 | static struct omap_musb_board_data musb_board_data = { |
diff --git a/arch/arm/mach-omap2/board-devkit8000.c b/arch/arm/mach-omap2/board-devkit8000.c index 671aaeade116..360ba7bba687 100644 --- a/arch/arm/mach-omap2/board-devkit8000.c +++ b/arch/arm/mach-omap2/board-devkit8000.c | |||
@@ -58,7 +58,6 @@ | |||
58 | 58 | ||
59 | #include "mux.h" | 59 | #include "mux.h" |
60 | #include "hsmmc.h" | 60 | #include "hsmmc.h" |
61 | #include "timer-gp.h" | ||
62 | #include "common-board-devices.h" | 61 | #include "common-board-devices.h" |
63 | 62 | ||
64 | #define OMAP_DM9000_GPIO_IRQ 25 | 63 | #define OMAP_DM9000_GPIO_IRQ 25 |
@@ -439,9 +438,6 @@ static void __init devkit8000_init_early(void) | |||
439 | static void __init devkit8000_init_irq(void) | 438 | static void __init devkit8000_init_irq(void) |
440 | { | 439 | { |
441 | omap3_init_irq(); | 440 | omap3_init_irq(); |
442 | #ifdef CONFIG_OMAP_32K_TIMER | ||
443 | omap2_gp_clockevent_set_gptimer(12); | ||
444 | #endif | ||
445 | } | 441 | } |
446 | 442 | ||
447 | #define OMAP_DM9000_BASE 0x2c000000 | 443 | #define OMAP_DM9000_BASE 0x2c000000 |
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 3d416549936a..5a830dfe2ad9 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c | |||
@@ -50,7 +50,6 @@ | |||
50 | 50 | ||
51 | #include "mux.h" | 51 | #include "mux.h" |
52 | #include "hsmmc.h" | 52 | #include "hsmmc.h" |
53 | #include "timer-gp.h" | ||
54 | #include "pm.h" | 53 | #include "pm.h" |
55 | #include "common-board-devices.h" | 54 | #include "common-board-devices.h" |
56 | 55 | ||
@@ -487,9 +486,6 @@ static void __init omap3_beagle_init_early(void) | |||
487 | static void __init omap3_beagle_init_irq(void) | 486 | static void __init omap3_beagle_init_irq(void) |
488 | { | 487 | { |
489 | omap3_init_irq(); | 488 | omap3_init_irq(); |
490 | #ifdef CONFIG_OMAP_32K_TIMER | ||
491 | omap2_gp_clockevent_set_gptimer(12); | ||
492 | #endif | ||
493 | } | 489 | } |
494 | 490 | ||
495 | static struct platform_device *omap3_beagle_devices[] __initdata = { | 491 | static struct platform_device *omap3_beagle_devices[] __initdata = { |
diff --git a/arch/arm/mach-omap2/board-omap3logic.c b/arch/arm/mach-omap2/board-omap3logic.c index 693eba1d4f7d..8e67567ad10f 100644 --- a/arch/arm/mach-omap2/board-omap3logic.c +++ b/arch/arm/mach-omap2/board-omap3logic.c | |||
@@ -35,7 +35,6 @@ | |||
35 | 35 | ||
36 | #include "mux.h" | 36 | #include "mux.h" |
37 | #include "hsmmc.h" | 37 | #include "hsmmc.h" |
38 | #include "timer-gp.h" | ||
39 | #include "control.h" | 38 | #include "control.h" |
40 | #include "common-board-devices.h" | 39 | #include "common-board-devices.h" |
41 | 40 | ||
diff --git a/arch/arm/mach-omap2/board-omap3stalker.c b/arch/arm/mach-omap2/board-omap3stalker.c index 96fec1f8fca1..c8e53d0b6b45 100644 --- a/arch/arm/mach-omap2/board-omap3stalker.c +++ b/arch/arm/mach-omap2/board-omap3stalker.c | |||
@@ -52,7 +52,6 @@ | |||
52 | #include "sdram-micron-mt46h32m32lf-6.h" | 52 | #include "sdram-micron-mt46h32m32lf-6.h" |
53 | #include "mux.h" | 53 | #include "mux.h" |
54 | #include "hsmmc.h" | 54 | #include "hsmmc.h" |
55 | #include "timer-gp.h" | ||
56 | #include "common-board-devices.h" | 55 | #include "common-board-devices.h" |
57 | 56 | ||
58 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) | 57 | #if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE) |
@@ -495,9 +494,6 @@ static void __init omap3_stalker_init_early(void) | |||
495 | static void __init omap3_stalker_init_irq(void) | 494 | static void __init omap3_stalker_init_irq(void) |
496 | { | 495 | { |
497 | omap3_init_irq(); | 496 | omap3_init_irq(); |
498 | #ifdef CONFIG_OMAP_32K_TIMER | ||
499 | omap2_gp_clockevent_set_gptimer(12); | ||
500 | #endif | ||
501 | } | 497 | } |
502 | 498 | ||
503 | static struct platform_device *omap3_stalker_devices[] __initdata = { | 499 | static struct platform_device *omap3_stalker_devices[] __initdata = { |
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 9447bc06d0d0..729565c0feac 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -51,7 +51,6 @@ | |||
51 | 51 | ||
52 | #include "mux.h" | 52 | #include "mux.h" |
53 | #include "hsmmc.h" | 53 | #include "hsmmc.h" |
54 | #include "timer-gp.h" | ||
55 | #include "common-board-devices.h" | 54 | #include "common-board-devices.h" |
56 | 55 | ||
57 | #include <asm/setup.h> | 56 | #include <asm/setup.h> |
@@ -372,9 +371,6 @@ static void __init omap3_touchbook_init_early(void) | |||
372 | static void __init omap3_touchbook_init_irq(void) | 371 | static void __init omap3_touchbook_init_irq(void) |
373 | { | 372 | { |
374 | omap3_init_irq(); | 373 | omap3_init_irq(); |
375 | #ifdef CONFIG_OMAP_32K_TIMER | ||
376 | omap2_gp_clockevent_set_gptimer(12); | ||
377 | #endif | ||
378 | } | 374 | } |
379 | 375 | ||
380 | static struct platform_device *omap3_touchbook_devices[] __initdata = { | 376 | static struct platform_device *omap3_touchbook_devices[] __initdata = { |
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index e76fe98a0bbe..f106489bb76f 100644 --- a/arch/arm/mach-omap2/board-omap4panda.c +++ b/arch/arm/mach-omap2/board-omap4panda.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <plat/usb.h> | 41 | #include <plat/usb.h> |
42 | #include <plat/mmc.h> | 42 | #include <plat/mmc.h> |
43 | #include <video/omap-panel-generic-dpi.h> | 43 | #include <video/omap-panel-generic-dpi.h> |
44 | #include "timer-gp.h" | ||
45 | 44 | ||
46 | #include "hsmmc.h" | 45 | #include "hsmmc.h" |
47 | #include "control.h" | 46 | #include "control.h" |
diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c index 2b8cb701c89f..ab1931c6f350 100644 --- a/arch/arm/mach-omap2/timer-gp.c +++ b/arch/arm/mach-omap2/timer-gp.c | |||
@@ -43,8 +43,6 @@ | |||
43 | #include <plat/common.h> | 43 | #include <plat/common.h> |
44 | #include <plat/omap_hwmod.h> | 44 | #include <plat/omap_hwmod.h> |
45 | 45 | ||
46 | #include "timer-gp.h" | ||
47 | |||
48 | /* Parent clocks, eventually these will come from the clock framework */ | 46 | /* Parent clocks, eventually these will come from the clock framework */ |
49 | 47 | ||
50 | #define OMAP2_MPU_SOURCE "sys_ck" | 48 | #define OMAP2_MPU_SOURCE "sys_ck" |
@@ -75,8 +73,6 @@ u32 sys_timer_reserved; | |||
75 | 73 | ||
76 | static struct omap_dm_timer clkev; | 74 | static struct omap_dm_timer clkev; |
77 | static struct clock_event_device clockevent_gpt; | 75 | static struct clock_event_device clockevent_gpt; |
78 | static u8 __initdata gptimer_id = 1; | ||
79 | static u8 __initdata inited; | ||
80 | 76 | ||
81 | static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id) | 77 | static irqreturn_t omap2_gp_timer_interrupt(int irq, void *dev_id) |
82 | { | 78 | { |
@@ -138,26 +134,6 @@ static struct clock_event_device clockevent_gpt = { | |||
138 | .set_mode = omap2_gp_timer_set_mode, | 134 | .set_mode = omap2_gp_timer_set_mode, |
139 | }; | 135 | }; |
140 | 136 | ||
141 | /** | ||
142 | * omap2_gp_clockevent_set_gptimer - set which GPTIMER is used for clockevents | ||
143 | * @id: GPTIMER to use (1..MAX_GPTIMER_ID) | ||
144 | * | ||
145 | * Define the GPTIMER that the system should use for the tick timer. | ||
146 | * Meant to be called from board-*.c files in the event that GPTIMER1, the | ||
147 | * default, is unsuitable. Returns -EINVAL on error or 0 on success. | ||
148 | */ | ||
149 | int __init omap2_gp_clockevent_set_gptimer(u8 id) | ||
150 | { | ||
151 | if (id < 1 || id > MAX_GPTIMER_ID) | ||
152 | return -EINVAL; | ||
153 | |||
154 | BUG_ON(inited); | ||
155 | |||
156 | gptimer_id = id; | ||
157 | |||
158 | return 0; | ||
159 | } | ||
160 | |||
161 | static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer, | 137 | static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer, |
162 | int gptimer_id, | 138 | int gptimer_id, |
163 | const char *fck_source) | 139 | const char *fck_source) |
@@ -228,8 +204,6 @@ static void __init omap2_gp_clockevent_init(int gptimer_id, | |||
228 | { | 204 | { |
229 | int res; | 205 | int res; |
230 | 206 | ||
231 | inited = 1; | ||
232 | |||
233 | res = omap_dm_timer_init_one(&clkev, gptimer_id, fck_source); | 207 | res = omap_dm_timer_init_one(&clkev, gptimer_id, fck_source); |
234 | BUG_ON(res); | 208 | BUG_ON(res); |
235 | 209 | ||
diff --git a/arch/arm/mach-omap2/timer-gp.h b/arch/arm/mach-omap2/timer-gp.h deleted file mode 100644 index 5c1072c6783b..000000000000 --- a/arch/arm/mach-omap2/timer-gp.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | /* | ||
2 | * OMAP2/3 GPTIMER support.headers | ||
3 | * | ||
4 | * Copyright (C) 2009 Nokia Corporation | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_TIMER_GP_H | ||
12 | #define __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_TIMER_GP_H | ||
13 | |||
14 | extern int __init omap2_gp_clockevent_set_gptimer(u8 id); | ||
15 | |||
16 | #endif | ||