diff options
author | Simon Guinot <sguinot@lacie.com> | 2010-10-21 05:42:29 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2010-10-21 14:13:58 -0400 |
commit | d3491820e8a65c4a51c8e2a165c6a13f864101ba (patch) | |
tree | 415ae0b82ad039231be9b3a5f366072ef28e2498 /arch/arm | |
parent | 2fa0f93915eacf758da800e2c67b3b9adef1c5c5 (diff) |
[ARM] Kirkwood: fix timer initialization for LaCie boards
Signed-off-by: Simon Guinot <sguinot@lacie.com>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-kirkwood/d2net_v2-setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/lacie_v2-common.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/lacie_v2-common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/netspace_v2-setup.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/netxbig_v2-setup.c | 4 |
5 files changed, 6 insertions, 22 deletions
diff --git a/arch/arm/mach-kirkwood/d2net_v2-setup.c b/arch/arm/mach-kirkwood/d2net_v2-setup.c index cd62d0f82a73..b8078aeebef9 100644 --- a/arch/arm/mach-kirkwood/d2net_v2-setup.c +++ b/arch/arm/mach-kirkwood/d2net_v2-setup.c | |||
@@ -227,5 +227,5 @@ MACHINE_START(D2NET_V2, "LaCie d2 Network v2") | |||
227 | .init_machine = d2net_v2_init, | 227 | .init_machine = d2net_v2_init, |
228 | .map_io = kirkwood_map_io, | 228 | .map_io = kirkwood_map_io, |
229 | .init_irq = kirkwood_init_irq, | 229 | .init_irq = kirkwood_init_irq, |
230 | .timer = &lacie_v2_timer, | 230 | .timer = &kirkwood_timer, |
231 | MACHINE_END | 231 | MACHINE_END |
diff --git a/arch/arm/mach-kirkwood/lacie_v2-common.c b/arch/arm/mach-kirkwood/lacie_v2-common.c index d3ea1b6c8a02..285edab776e9 100644 --- a/arch/arm/mach-kirkwood/lacie_v2-common.c +++ b/arch/arm/mach-kirkwood/lacie_v2-common.c | |||
@@ -111,17 +111,3 @@ void __init lacie_v2_hdd_power_init(int hdd_num) | |||
111 | pr_err("Failed to power up HDD%d\n", i + 1); | 111 | pr_err("Failed to power up HDD%d\n", i + 1); |
112 | } | 112 | } |
113 | } | 113 | } |
114 | |||
115 | /***************************************************************************** | ||
116 | * Timer | ||
117 | ****************************************************************************/ | ||
118 | |||
119 | static void lacie_v2_timer_init(void) | ||
120 | { | ||
121 | kirkwood_tclk = 166666667; | ||
122 | orion_time_init(IRQ_KIRKWOOD_BRIDGE, kirkwood_tclk); | ||
123 | } | ||
124 | |||
125 | struct sys_timer lacie_v2_timer = { | ||
126 | .init = lacie_v2_timer_init, | ||
127 | }; | ||
diff --git a/arch/arm/mach-kirkwood/lacie_v2-common.h b/arch/arm/mach-kirkwood/lacie_v2-common.h index af521315b87b..fc64f578536e 100644 --- a/arch/arm/mach-kirkwood/lacie_v2-common.h +++ b/arch/arm/mach-kirkwood/lacie_v2-common.h | |||
@@ -13,6 +13,4 @@ void lacie_v2_register_flash(void); | |||
13 | void lacie_v2_register_i2c_devices(void); | 13 | void lacie_v2_register_i2c_devices(void); |
14 | void lacie_v2_hdd_power_init(int hdd_num); | 14 | void lacie_v2_hdd_power_init(int hdd_num); |
15 | 15 | ||
16 | extern struct sys_timer lacie_v2_timer; | ||
17 | |||
18 | #endif | 16 | #endif |
diff --git a/arch/arm/mach-kirkwood/netspace_v2-setup.c b/arch/arm/mach-kirkwood/netspace_v2-setup.c index fed264d28f4a..fc934e5a9ed0 100644 --- a/arch/arm/mach-kirkwood/netspace_v2-setup.c +++ b/arch/arm/mach-kirkwood/netspace_v2-setup.c | |||
@@ -221,7 +221,7 @@ MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") | |||
221 | .init_machine = netspace_v2_init, | 221 | .init_machine = netspace_v2_init, |
222 | .map_io = kirkwood_map_io, | 222 | .map_io = kirkwood_map_io, |
223 | .init_irq = kirkwood_init_irq, | 223 | .init_irq = kirkwood_init_irq, |
224 | .timer = &lacie_v2_timer, | 224 | .timer = &kirkwood_timer, |
225 | MACHINE_END | 225 | MACHINE_END |
226 | #endif | 226 | #endif |
227 | 227 | ||
@@ -233,7 +233,7 @@ MACHINE_START(INETSPACE_V2, "LaCie Internet Space v2") | |||
233 | .init_machine = netspace_v2_init, | 233 | .init_machine = netspace_v2_init, |
234 | .map_io = kirkwood_map_io, | 234 | .map_io = kirkwood_map_io, |
235 | .init_irq = kirkwood_init_irq, | 235 | .init_irq = kirkwood_init_irq, |
236 | .timer = &lacie_v2_timer, | 236 | .timer = &kirkwood_timer, |
237 | MACHINE_END | 237 | MACHINE_END |
238 | #endif | 238 | #endif |
239 | 239 | ||
@@ -245,6 +245,6 @@ MACHINE_START(NETSPACE_MAX_V2, "LaCie Network Space Max v2") | |||
245 | .init_machine = netspace_v2_init, | 245 | .init_machine = netspace_v2_init, |
246 | .map_io = kirkwood_map_io, | 246 | .map_io = kirkwood_map_io, |
247 | .init_irq = kirkwood_init_irq, | 247 | .init_irq = kirkwood_init_irq, |
248 | .timer = &lacie_v2_timer, | 248 | .timer = &kirkwood_timer, |
249 | MACHINE_END | 249 | MACHINE_END |
250 | #endif | 250 | #endif |
diff --git a/arch/arm/mach-kirkwood/netxbig_v2-setup.c b/arch/arm/mach-kirkwood/netxbig_v2-setup.c index d970e1eee37d..a855c9f08291 100644 --- a/arch/arm/mach-kirkwood/netxbig_v2-setup.c +++ b/arch/arm/mach-kirkwood/netxbig_v2-setup.c | |||
@@ -405,7 +405,7 @@ MACHINE_START(NET2BIG_V2, "LaCie 2Big Network v2") | |||
405 | .init_machine = netxbig_v2_init, | 405 | .init_machine = netxbig_v2_init, |
406 | .map_io = kirkwood_map_io, | 406 | .map_io = kirkwood_map_io, |
407 | .init_irq = kirkwood_init_irq, | 407 | .init_irq = kirkwood_init_irq, |
408 | .timer = &lacie_v2_timer, | 408 | .timer = &kirkwood_timer, |
409 | MACHINE_END | 409 | MACHINE_END |
410 | #endif | 410 | #endif |
411 | 411 | ||
@@ -417,6 +417,6 @@ MACHINE_START(NET5BIG_V2, "LaCie 5Big Network v2") | |||
417 | .init_machine = netxbig_v2_init, | 417 | .init_machine = netxbig_v2_init, |
418 | .map_io = kirkwood_map_io, | 418 | .map_io = kirkwood_map_io, |
419 | .init_irq = kirkwood_init_irq, | 419 | .init_irq = kirkwood_init_irq, |
420 | .timer = &lacie_v2_timer, | 420 | .timer = &kirkwood_timer, |
421 | MACHINE_END | 421 | MACHINE_END |
422 | #endif | 422 | #endif |