diff options
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/entry-macro.S | 4 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/include/mach/uncompress.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/mach-nuc910evb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/mach-nuc950evb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/mach-nuc960evb.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/nuc9xx.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-w90x900/time.c | 16 |
7 files changed, 9 insertions, 22 deletions
diff --git a/arch/arm/mach-w90x900/include/mach/entry-macro.S b/arch/arm/mach-w90x900/include/mach/entry-macro.S index e286daca6827..0ff612ac95ba 100644 --- a/arch/arm/mach-w90x900/include/mach/entry-macro.S +++ b/arch/arm/mach-w90x900/include/mach/entry-macro.S | |||
@@ -19,8 +19,8 @@ | |||
19 | 19 | ||
20 | mov \base, #AIC_BA | 20 | mov \base, #AIC_BA |
21 | 21 | ||
22 | ldr \irqnr, [ \base, #AIC_IPER] | 22 | ldr \irqnr, [\base, #AIC_IPER] |
23 | ldr \irqnr, [ \base, #AIC_ISNR] | 23 | ldr \irqnr, [\base, #AIC_ISNR] |
24 | cmp \irqnr, #0 | 24 | cmp \irqnr, #0 |
25 | 25 | ||
26 | .endm | 26 | .endm |
diff --git a/arch/arm/mach-w90x900/include/mach/uncompress.h b/arch/arm/mach-w90x900/include/mach/uncompress.h index 03130212ace2..4b7c324ff664 100644 --- a/arch/arm/mach-w90x900/include/mach/uncompress.h +++ b/arch/arm/mach-w90x900/include/mach/uncompress.h | |||
@@ -24,8 +24,6 @@ | |||
24 | #include <mach/map.h> | 24 | #include <mach/map.h> |
25 | #include <linux/serial_reg.h> | 25 | #include <linux/serial_reg.h> |
26 | 26 | ||
27 | #define arch_decomp_wdog() | ||
28 | |||
29 | #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE) | 27 | #define TX_DONE (UART_LSR_TEMT | UART_LSR_THRE) |
30 | static volatile u32 * const uart_base = (u32 *)UART0_PA; | 28 | static volatile u32 * const uart_base = (u32 *)UART0_PA; |
31 | 29 | ||
diff --git a/arch/arm/mach-w90x900/mach-nuc910evb.c b/arch/arm/mach-w90x900/mach-nuc910evb.c index b4243e4f1565..92f1c978f35e 100644 --- a/arch/arm/mach-w90x900/mach-nuc910evb.c +++ b/arch/arm/mach-w90x900/mach-nuc910evb.c | |||
@@ -37,6 +37,6 @@ MACHINE_START(W90P910EVB, "W90P910EVB") | |||
37 | .map_io = nuc910evb_map_io, | 37 | .map_io = nuc910evb_map_io, |
38 | .init_irq = nuc900_init_irq, | 38 | .init_irq = nuc900_init_irq, |
39 | .init_machine = nuc910evb_init, | 39 | .init_machine = nuc910evb_init, |
40 | .timer = &nuc900_timer, | 40 | .init_time = nuc900_timer_init, |
41 | .restart = nuc9xx_restart, | 41 | .restart = nuc9xx_restart, |
42 | MACHINE_END | 42 | MACHINE_END |
diff --git a/arch/arm/mach-w90x900/mach-nuc950evb.c b/arch/arm/mach-w90x900/mach-nuc950evb.c index 500fe5932ce9..26f7189056e3 100644 --- a/arch/arm/mach-w90x900/mach-nuc950evb.c +++ b/arch/arm/mach-w90x900/mach-nuc950evb.c | |||
@@ -40,6 +40,6 @@ MACHINE_START(W90P950EVB, "W90P950EVB") | |||
40 | .map_io = nuc950evb_map_io, | 40 | .map_io = nuc950evb_map_io, |
41 | .init_irq = nuc900_init_irq, | 41 | .init_irq = nuc900_init_irq, |
42 | .init_machine = nuc950evb_init, | 42 | .init_machine = nuc950evb_init, |
43 | .timer = &nuc900_timer, | 43 | .init_time = nuc900_timer_init, |
44 | .restart = nuc9xx_restart, | 44 | .restart = nuc9xx_restart, |
45 | MACHINE_END | 45 | MACHINE_END |
diff --git a/arch/arm/mach-w90x900/mach-nuc960evb.c b/arch/arm/mach-w90x900/mach-nuc960evb.c index cbb3adc3db10..9b4e73fe10e5 100644 --- a/arch/arm/mach-w90x900/mach-nuc960evb.c +++ b/arch/arm/mach-w90x900/mach-nuc960evb.c | |||
@@ -37,6 +37,6 @@ MACHINE_START(W90N960EVB, "W90N960EVB") | |||
37 | .map_io = nuc960evb_map_io, | 37 | .map_io = nuc960evb_map_io, |
38 | .init_irq = nuc900_init_irq, | 38 | .init_irq = nuc900_init_irq, |
39 | .init_machine = nuc960evb_init, | 39 | .init_machine = nuc960evb_init, |
40 | .timer = &nuc900_timer, | 40 | .init_time = nuc900_timer_init, |
41 | .restart = nuc9xx_restart, | 41 | .restart = nuc9xx_restart, |
42 | MACHINE_END | 42 | MACHINE_END |
diff --git a/arch/arm/mach-w90x900/nuc9xx.h b/arch/arm/mach-w90x900/nuc9xx.h index 91acb4047793..88ef4b267089 100644 --- a/arch/arm/mach-w90x900/nuc9xx.h +++ b/arch/arm/mach-w90x900/nuc9xx.h | |||
@@ -15,10 +15,9 @@ | |||
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | struct map_desc; | 17 | struct map_desc; |
18 | struct sys_timer; | ||
19 | 18 | ||
20 | /* core initialisation functions */ | 19 | /* core initialisation functions */ |
21 | 20 | ||
22 | extern void nuc900_init_irq(void); | 21 | extern void nuc900_init_irq(void); |
23 | extern struct sys_timer nuc900_timer; | 22 | extern void nuc900_timer_init(void); |
24 | extern void nuc9xx_restart(char, const char *); | 23 | extern void nuc9xx_restart(char, const char *); |
diff --git a/arch/arm/mach-w90x900/time.c b/arch/arm/mach-w90x900/time.c index fa27c498ac09..30fbca844575 100644 --- a/arch/arm/mach-w90x900/time.c +++ b/arch/arm/mach-w90x900/time.c | |||
@@ -91,7 +91,6 @@ static int nuc900_clockevent_setnextevent(unsigned long evt, | |||
91 | 91 | ||
92 | static struct clock_event_device nuc900_clockevent_device = { | 92 | static struct clock_event_device nuc900_clockevent_device = { |
93 | .name = "nuc900-timer0", | 93 | .name = "nuc900-timer0", |
94 | .shift = 32, | ||
95 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, | 94 | .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, |
96 | .set_mode = nuc900_clockevent_setmode, | 95 | .set_mode = nuc900_clockevent_setmode, |
97 | .set_next_event = nuc900_clockevent_setnextevent, | 96 | .set_next_event = nuc900_clockevent_setnextevent, |
@@ -133,15 +132,10 @@ static void __init nuc900_clockevents_init(void) | |||
133 | __raw_writel(RESETINT, REG_TISR); | 132 | __raw_writel(RESETINT, REG_TISR); |
134 | setup_irq(IRQ_TIMER0, &nuc900_timer0_irq); | 133 | setup_irq(IRQ_TIMER0, &nuc900_timer0_irq); |
135 | 134 | ||
136 | nuc900_clockevent_device.mult = div_sc(rate, NSEC_PER_SEC, | ||
137 | nuc900_clockevent_device.shift); | ||
138 | nuc900_clockevent_device.max_delta_ns = clockevent_delta2ns(0xffffffff, | ||
139 | &nuc900_clockevent_device); | ||
140 | nuc900_clockevent_device.min_delta_ns = clockevent_delta2ns(0xf, | ||
141 | &nuc900_clockevent_device); | ||
142 | nuc900_clockevent_device.cpumask = cpumask_of(0); | 135 | nuc900_clockevent_device.cpumask = cpumask_of(0); |
143 | 136 | ||
144 | clockevents_register_device(&nuc900_clockevent_device); | 137 | clockevents_config_and_register(&nuc900_clockevent_device, rate, |
138 | 0xf, 0xffffffff); | ||
145 | } | 139 | } |
146 | 140 | ||
147 | static void __init nuc900_clocksource_init(void) | 141 | static void __init nuc900_clocksource_init(void) |
@@ -167,12 +161,8 @@ static void __init nuc900_clocksource_init(void) | |||
167 | TDR_SHIFT, clocksource_mmio_readl_down); | 161 | TDR_SHIFT, clocksource_mmio_readl_down); |
168 | } | 162 | } |
169 | 163 | ||
170 | static void __init nuc900_timer_init(void) | 164 | void __init nuc900_timer_init(void) |
171 | { | 165 | { |
172 | nuc900_clocksource_init(); | 166 | nuc900_clocksource_init(); |
173 | nuc900_clockevents_init(); | 167 | nuc900_clockevents_init(); |
174 | } | 168 | } |
175 | |||
176 | struct sys_timer nuc900_timer = { | ||
177 | .init = nuc900_timer_init, | ||
178 | }; | ||