diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-04-06 04:57:38 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-04-06 04:57:38 -0400 |
commit | 89de3820c7ae615345c093ae6fddac01f326fdc4 (patch) | |
tree | 3e433ef080c3e1b691914a33d2d9e674f0744b47 /arch/arm/mach-pxa/palmt5.c | |
parent | 3ef48fac6e8e2362a4e6ef31dd043c89fe107875 (diff) | |
parent | 80748fb8ff3bc068dccacb690cd2eb417b034ec7 (diff) |
Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6
Diffstat (limited to 'arch/arm/mach-pxa/palmt5.c')
-rw-r--r-- | arch/arm/mach-pxa/palmt5.c | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 9521c7b33492..0680f1a575a3 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -75,10 +75,10 @@ static unsigned long palmt5_pin_config[] __initdata = { | |||
75 | GPIO95_GPIO, /* usb power */ | 75 | GPIO95_GPIO, /* usb power */ |
76 | 76 | ||
77 | /* MATRIX KEYPAD */ | 77 | /* MATRIX KEYPAD */ |
78 | GPIO100_KP_MKIN_0, | 78 | GPIO100_KP_MKIN_0 | WAKEUP_ON_LEVEL_HIGH, |
79 | GPIO101_KP_MKIN_1, | 79 | GPIO101_KP_MKIN_1 | WAKEUP_ON_LEVEL_HIGH, |
80 | GPIO102_KP_MKIN_2, | 80 | GPIO102_KP_MKIN_2 | WAKEUP_ON_LEVEL_HIGH, |
81 | GPIO97_KP_MKIN_3, | 81 | GPIO97_KP_MKIN_3 | WAKEUP_ON_LEVEL_HIGH, |
82 | GPIO103_KP_MKOUT_0, | 82 | GPIO103_KP_MKOUT_0, |
83 | GPIO104_KP_MKOUT_1, | 83 | GPIO104_KP_MKOUT_1, |
84 | GPIO105_KP_MKOUT_2, | 84 | GPIO105_KP_MKOUT_2, |
@@ -450,6 +450,33 @@ static struct pxafb_mach_info palmt5_lcd_screen = { | |||
450 | }; | 450 | }; |
451 | 451 | ||
452 | /****************************************************************************** | 452 | /****************************************************************************** |
453 | * Power management - standby | ||
454 | ******************************************************************************/ | ||
455 | #ifdef CONFIG_PM | ||
456 | static u32 *addr __initdata; | ||
457 | static u32 resume[3] __initdata = { | ||
458 | 0xe3a00101, /* mov r0, #0x40000000 */ | ||
459 | 0xe380060f, /* orr r0, r0, #0x00f00000 */ | ||
460 | 0xe590f008, /* ldr pc, [r0, #0x08] */ | ||
461 | }; | ||
462 | |||
463 | static int __init palmt5_pm_init(void) | ||
464 | { | ||
465 | int i; | ||
466 | |||
467 | /* this is where the bootloader jumps */ | ||
468 | addr = phys_to_virt(PALMT5_STR_BASE); | ||
469 | |||
470 | for (i = 0; i < 3; i++) | ||
471 | addr[i] = resume[i]; | ||
472 | |||
473 | return 0; | ||
474 | } | ||
475 | |||
476 | device_initcall(palmt5_pm_init); | ||
477 | #endif | ||
478 | |||
479 | /****************************************************************************** | ||
453 | * Machine init | 480 | * Machine init |
454 | ******************************************************************************/ | 481 | ******************************************************************************/ |
455 | static struct platform_device *devices[] __initdata = { | 482 | static struct platform_device *devices[] __initdata = { |