aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/palmt5.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/palmt5.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/palmt5.c')
-rw-r--r--arch/arm/mach-pxa/palmt5.c32
1 files changed, 11 insertions, 21 deletions
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c
index 76a6ea2893da..aae64a12a734 100644
--- a/arch/arm/mach-pxa/palmt5.c
+++ b/arch/arm/mach-pxa/palmt5.c
@@ -474,30 +474,18 @@ static struct pxafb_mach_info palmt5_lcd_screen = {
474/****************************************************************************** 474/******************************************************************************
475 * Power management - standby 475 * Power management - standby
476 ******************************************************************************/ 476 ******************************************************************************/
477#ifdef CONFIG_PM 477static void __init palmt5_pm_init(void)
478static u32 *addr __initdata;
479static u32 resume[3] __initdata = {
480 0xe3a00101, /* mov r0, #0x40000000 */
481 0xe380060f, /* orr r0, r0, #0x00f00000 */
482 0xe590f008, /* ldr pc, [r0, #0x08] */
483};
484
485static int __init palmt5_pm_init(void)
486{ 478{
487 int i; 479 static u32 resume[] = {
488 480 0xe3a00101, /* mov r0, #0x40000000 */
489 /* this is where the bootloader jumps */ 481 0xe380060f, /* orr r0, r0, #0x00f00000 */
490 addr = phys_to_virt(PALMT5_STR_BASE); 482 0xe590f008, /* ldr pc, [r0, #0x08] */
491 483 };
492 for (i = 0; i < 3; i++) 484
493 addr[i] = resume[i]; 485 /* copy the bootloader */
494 486 memcpy(phys_to_virt(PALMT5_STR_BASE), resume, sizeof(resume));
495 return 0;
496} 487}
497 488
498device_initcall(palmt5_pm_init);
499#endif
500
501/****************************************************************************** 489/******************************************************************************
502 * Machine init 490 * Machine init
503 ******************************************************************************/ 491 ******************************************************************************/
@@ -524,6 +512,7 @@ static void __init palmt5_init(void)
524{ 512{
525 pxa2xx_mfp_config(ARRAY_AND_SIZE(palmt5_pin_config)); 513 pxa2xx_mfp_config(ARRAY_AND_SIZE(palmt5_pin_config));
526 514
515 palmt5_pm_init();
527 set_pxa_fb_info(&palmt5_lcd_screen); 516 set_pxa_fb_info(&palmt5_lcd_screen);
528 pxa_set_mci_info(&palmt5_mci_platform_data); 517 pxa_set_mci_info(&palmt5_mci_platform_data);
529 palmt5_udc_init(); 518 palmt5_udc_init();
@@ -531,6 +520,7 @@ static void __init palmt5_init(void)
531 pxa_set_ficp_info(&palmt5_ficp_platform_data); 520 pxa_set_ficp_info(&palmt5_ficp_platform_data);
532 pxa_set_keypad_info(&palmt5_keypad_platform_data); 521 pxa_set_keypad_info(&palmt5_keypad_platform_data);
533 wm97xx_bat_set_pdata(&wm97xx_batt_pdata); 522 wm97xx_bat_set_pdata(&wm97xx_batt_pdata);
523
534 platform_add_devices(devices, ARRAY_SIZE(devices)); 524 platform_add_devices(devices, ARRAY_SIZE(devices));
535} 525}
536 526