rk3066b:m701:fixed wakeup failed
author张晴 <zhangqing@rock-chips.com>
Wed, 31 Oct 2012 10:14:50 +0000 (18:14 +0800)
committer张晴 <zhangqing@rock-chips.com>
Wed, 31 Oct 2012 10:14:50 +0000 (18:14 +0800)
arch/arm/mach-rk30/board-pmu-tps65910.c

index d0b31ba9d317405a41453756c075d775a7741f68..41c72f96e9967ea6481819912339abbcaa4e6c3c 100755 (executable)
@@ -540,12 +540,16 @@ static struct regulator_init_data tps65910_ldo8 = {
 
 void __sramfunc board_pmu_tps65910_suspend(void)
 {      
+       #ifdef CONFIG_CLK_SWITCH_TO_32K
         sram_gpio_set_value(pmic_sleep, GPIO_HIGH);  
+       #endif
 }
 void __sramfunc board_pmu_tps65910_resume(void)
 {
+       #ifdef CONFIG_CLK_SWITCH_TO_32K
        sram_gpio_set_value(pmic_sleep, GPIO_LOW);  
        sram_udelay(2000);
+       #endif
 }
 static struct tps65910_board tps65910_data = {
        .irq    = (unsigned)TPS65910_HOST_IRQ,