aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmld.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2009-05-14 05:27:00 -0400
committerEric Miao <eric.y.miao@gmail.com>2009-06-04 22:43:29 -0400
commitfc9c1b6fc874d786f32163291b059ec574698aa2 (patch)
treede8c97f99e4218684512050305be22e503f3fc07 /arch/arm/mach-pxa/palmld.c
parent37330efd4abb474b3fdfacea68beb37cf67564ed (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/palmld.c')
-rw-r--r--arch/arm/mach-pxa/palmld.c31
1 files changed, 10 insertions, 21 deletions
diff --git a/arch/arm/mach-pxa/palmld.c b/arch/arm/mach-pxa/palmld.c
index 471a853e548..1f1917fc200 100644
--- a/arch/arm/mach-pxa/palmld.c
+++ b/arch/arm/mach-pxa/palmld.c
@@ -524,30 +524,18 @@ static struct pxafb_mach_info palmld_lcd_screen = {
524/****************************************************************************** 524/******************************************************************************
525 * Power management - standby 525 * Power management - standby
526 ******************************************************************************/ 526 ******************************************************************************/
527#ifdef CONFIG_PM 527static void __init palmld_pm_init(void)
528static u32 *addr __initdata;
529static u32 resume[3] __initdata = {
530 0xe3a00101, /* mov r0, #0x40000000 */
531 0xe380060f, /* orr r0, r0, #0x00f00000 */
532 0xe590f008, /* ldr pc, [r0, #0x08] */
533};
534
535static int __init palmld_pm_init(void)
536{ 528{
537 int i; 529 static u32 resume[] = {
538 530 0xe3a00101, /* mov r0, #0x40000000 */
539 /* this is where the bootloader jumps */ 531 0xe380060f, /* orr r0, r0, #0x00f00000 */
540 addr = phys_to_virt(PALMLD_STR_BASE); 532 0xe590f008, /* ldr pc, [r0, #0x08] */
541 533 };
542 for (i = 0; i < 3; i++) 534
543 addr[i] = resume[i]; 535 /* copy the bootloader */
544 536 memcpy(phys_to_virt(PALMLD_STR_BASE), resume, sizeof(resume));
545 return 0;
546} 537}
547 538
548device_initcall(palmld_pm_init);
549#endif
550
551/****************************************************************************** 539/******************************************************************************
552 * Machine init 540 * Machine init
553 ******************************************************************************/ 541 ******************************************************************************/
@@ -586,6 +574,7 @@ static void __init palmld_init(void)
586{ 574{
587 pxa2xx_mfp_config(ARRAY_AND_SIZE(palmld_pin_config)); 575 pxa2xx_mfp_config(ARRAY_AND_SIZE(palmld_pin_config));
588 576
577 palmld_pm_init();
589 set_pxa_fb_info(&palmld_lcd_screen); 578 set_pxa_fb_info(&palmld_lcd_screen);
590 pxa_set_mci_info(&palmld_mci_platform_data); 579 pxa_set_mci_info(&palmld_mci_platform_data);
591 pxa_set_ac97_info(&palmld_ac97_pdata); 580 pxa_set_ac97_info(&palmld_ac97_pdata);