diff options
author | Andrew Lunn <andrew@lunn.ch> | 2013-01-09 07:22:15 -0500 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-01-31 12:01:37 -0500 |
commit | 9cfc94eb0f4843af5d1141a37d7b7ca5d3b27220 (patch) | |
tree | 10a852a3b4717423a0186ba0d47f0e85b39bbc13 /arch/arm/mach-kirkwood/common.c | |
parent | a1671da560df1f6bd20d8c6934d1cfa2aacc4f32 (diff) |
cpuidle: kirkwood: Move out of mach directory
Move the Kirkwood cpuidle driver out of arch/arm/mach-kirkwood and
into drivers/cpuidle. Convert the driver into a platform driver.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r-- | arch/arm/mach-kirkwood/common.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index bac21a554c91..5ed1f2e8c5f8 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c | |||
@@ -499,6 +499,28 @@ void __init kirkwood_wdt_init(void) | |||
499 | orion_wdt_init(); | 499 | orion_wdt_init(); |
500 | } | 500 | } |
501 | 501 | ||
502 | /***************************************************************************** | ||
503 | * CPU idle | ||
504 | ****************************************************************************/ | ||
505 | static struct resource kirkwood_cpuidle_resource[] = { | ||
506 | { | ||
507 | .flags = IORESOURCE_MEM, | ||
508 | .start = DDR_OPERATION_BASE, | ||
509 | .end = DDR_OPERATION_BASE + 3, | ||
510 | }, | ||
511 | }; | ||
512 | |||
513 | static struct platform_device kirkwood_cpuidle = { | ||
514 | .name = "kirkwood_cpuidle", | ||
515 | .id = -1, | ||
516 | .resource = kirkwood_cpuidle_resource, | ||
517 | .num_resources = 1, | ||
518 | }; | ||
519 | |||
520 | void __init kirkwood_cpuidle_init(void) | ||
521 | { | ||
522 | platform_device_register(&kirkwood_cpuidle); | ||
523 | } | ||
502 | 524 | ||
503 | /***************************************************************************** | 525 | /***************************************************************************** |
504 | * Time handling | 526 | * Time handling |
@@ -671,6 +693,7 @@ void __init kirkwood_init(void) | |||
671 | kirkwood_xor1_init(); | 693 | kirkwood_xor1_init(); |
672 | kirkwood_crypto_init(); | 694 | kirkwood_crypto_init(); |
673 | 695 | ||
696 | kirkwood_cpuidle_init(); | ||
674 | #ifdef CONFIG_KEXEC | 697 | #ifdef CONFIG_KEXEC |
675 | kexec_reinit = kirkwood_enable_pcie; | 698 | kexec_reinit = kirkwood_enable_pcie; |
676 | #endif | 699 | #endif |