diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2009-03-28 07:37:42 -0400 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-04-03 22:26:34 -0400 |
commit | 81854f82c5c1a203b2f5c94f6aa2ed8b8e19f025 (patch) | |
tree | 2eac472ee815f31cfeca6ab396c6cd6347dc2871 /arch/arm/mach-pxa/palmtx.c | |
parent | 8c8aa5fa3060abc17e8a07d15f575485f6a0c0b8 (diff) |
[ARM] pxa: Add support for suspend on PalmTX, T5 and LD
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/palmtx.c')
-rw-r--r-- | arch/arm/mach-pxa/palmtx.c | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index b490c0924619..59d0c1cba556 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -93,10 +93,10 @@ static unsigned long palmtx_pin_config[] __initdata = { | |||
93 | GPIO116_GPIO, /* wifi ready */ | 93 | GPIO116_GPIO, /* wifi ready */ |
94 | 94 | ||
95 | /* MATRIX KEYPAD */ | 95 | /* MATRIX KEYPAD */ |
96 | GPIO100_KP_MKIN_0, | 96 | GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, |
97 | GPIO101_KP_MKIN_1, | 97 | GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH, |
98 | GPIO102_KP_MKIN_2, | 98 | GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH, |
99 | GPIO97_KP_MKIN_3, | 99 | GPIO97_KP_MKIN_3 | WAKEUP_ON_LEVEL_HIGH, |
100 | GPIO103_KP_MKOUT_0, | 100 | GPIO103_KP_MKOUT_0, |
101 | GPIO104_KP_MKOUT_1, | 101 | GPIO104_KP_MKOUT_1, |
102 | GPIO105_KP_MKOUT_2, | 102 | GPIO105_KP_MKOUT_2, |
@@ -459,6 +459,33 @@ static struct pxafb_mach_info palmtx_lcd_screen = { | |||
459 | }; | 459 | }; |
460 | 460 | ||
461 | /****************************************************************************** | 461 | /****************************************************************************** |
462 | * Power management - standby | ||
463 | ******************************************************************************/ | ||
464 | #ifdef CONFIG_PM | ||
465 | static u32 *addr __initdata; | ||
466 | static u32 resume[3] __initdata = { | ||
467 | 0xe3a00101, /* mov r0, #0x40000000 */ | ||
468 | 0xe380060f, /* orr r0, r0, #0x00f00000 */ | ||
469 | 0xe590f008, /* ldr pc, [r0, #0x08] */ | ||
470 | }; | ||
471 | |||
472 | static int __init palmtx_pm_init(void) | ||
473 | { | ||
474 | int i; | ||
475 | |||
476 | /* this is where the bootloader jumps */ | ||
477 | addr = phys_to_virt(PALMTX_STR_BASE); | ||
478 | |||
479 | for (i = 0; i < 3; i++) | ||
480 | addr[i] = resume[i]; | ||
481 | |||
482 | return 0; | ||
483 | } | ||
484 | |||
485 | device_initcall(palmtx_pm_init); | ||
486 | #endif | ||
487 | |||
488 | /****************************************************************************** | ||
462 | * Machine init | 489 | * Machine init |
463 | ******************************************************************************/ | 490 | ******************************************************************************/ |
464 | static struct platform_device *devices[] __initdata = { | 491 | static struct platform_device *devices[] __initdata = { |