diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2009-05-14 05:27:00 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-06-04 22:43:29 -0400 |
commit | fc9c1b6fc874d786f32163291b059ec574698aa2 (patch) | |
tree | de8c97f99e4218684512050305be22e503f3fc07 /arch/arm/mach-pxa/palmtx.c | |
parent | 37330efd4abb474b3fdfacea68beb37cf67564ed (diff) |
[ARM] pxa/palm: Palm TX, T5, LD suspend-to-mem rework
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 | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/arch/arm/mach-pxa/palmtx.c b/arch/arm/mach-pxa/palmtx.c index 3ed5ae0371cb..6c15d84bde53 100644 --- a/arch/arm/mach-pxa/palmtx.c +++ b/arch/arm/mach-pxa/palmtx.c | |||
@@ -491,30 +491,18 @@ static struct pxafb_mach_info palmtx_lcd_screen = { | |||
491 | /****************************************************************************** | 491 | /****************************************************************************** |
492 | * Power management - standby | 492 | * Power management - standby |
493 | ******************************************************************************/ | 493 | ******************************************************************************/ |
494 | #ifdef CONFIG_PM | 494 | static void __init palmtx_pm_init(void) |
495 | static u32 *addr __initdata; | ||
496 | static u32 resume[3] __initdata = { | ||
497 | 0xe3a00101, /* mov r0, #0x40000000 */ | ||
498 | 0xe380060f, /* orr r0, r0, #0x00f00000 */ | ||
499 | 0xe590f008, /* ldr pc, [r0, #0x08] */ | ||
500 | }; | ||
501 | |||
502 | static int __init palmtx_pm_init(void) | ||
503 | { | 495 | { |
504 | int i; | 496 | static u32 resume[] = { |
505 | 497 | 0xe3a00101, /* mov r0, #0x40000000 */ | |
506 | /* this is where the bootloader jumps */ | 498 | 0xe380060f, /* orr r0, r0, #0x00f00000 */ |
507 | addr = phys_to_virt(PALMTX_STR_BASE); | 499 | 0xe590f008, /* ldr pc, [r0, #0x08] */ |
508 | 500 | }; | |
509 | for (i = 0; i < 3; i++) | 501 | |
510 | addr[i] = resume[i]; | 502 | /* copy the bootloader */ |
511 | 503 | memcpy(phys_to_virt(PALMTX_STR_BASE), resume, sizeof(resume)); | |
512 | return 0; | ||
513 | } | 504 | } |
514 | 505 | ||
515 | device_initcall(palmtx_pm_init); | ||
516 | #endif | ||
517 | |||
518 | /****************************************************************************** | 506 | /****************************************************************************** |
519 | * Machine init | 507 | * Machine init |
520 | ******************************************************************************/ | 508 | ******************************************************************************/ |
@@ -557,6 +545,7 @@ static void __init palmtx_init(void) | |||
557 | { | 545 | { |
558 | pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtx_pin_config)); | 546 | pxa2xx_mfp_config(ARRAY_AND_SIZE(palmtx_pin_config)); |
559 | 547 | ||
548 | palmtx_pm_init(); | ||
560 | set_pxa_fb_info(&palmtx_lcd_screen); | 549 | set_pxa_fb_info(&palmtx_lcd_screen); |
561 | pxa_set_mci_info(&palmtx_mci_platform_data); | 550 | pxa_set_mci_info(&palmtx_mci_platform_data); |
562 | palmtx_udc_init(); | 551 | palmtx_udc_init(); |