rk31xx:modify udelay time when resume
author张晴 <zhangqing@rock-chips.com>
Mon, 4 Feb 2013 02:29:12 +0000 (10:29 +0800)
committer张晴 <zhangqing@rock-chips.com>
Mon, 4 Feb 2013 02:29:12 +0000 (10:29 +0800)
arch/arm/mach-rk30/board-pmu-act8846.c
arch/arm/mach-rk30/board-pmu-tps65910.c
arch/arm/mach-rk30/board-pmu-wm8326.c

index eaec2fcfa72b93c03458ba044a2e0702bd3cc15e..64b4feaf0838ee6552e48af608c1f3a0d8df228d 100755 (executable)
@@ -511,7 +511,7 @@ void __sramfunc board_pmu_act8846_resume(void)
 {
        #ifdef CONFIG_CLK_SWITCH_TO_32K
        sram_gpio_set_value(pmic_sleep, GPIO_LOW);  
-       sram_udelay(2000);
+       sram_32k_udelay(1000);
        #endif
 }
 void __sramfunc board_act8846_set_suspend_vol(void)
@@ -524,6 +524,7 @@ void __sramfunc board_act8846_set_resume_vol(void)
 {
 #ifdef CONFIG_ACT8846_SUPPORT_RESET
        sram_gpio_set_value(pmic_vsel, GPIO_LOW);  
+       sram_32k_udelay(1000);
 #endif
 }
 
index 95d30a4de6c62658769d53366999bf33b50c9780..752c7da9c459cbd70af4d6effbceba6f7a688865 100755 (executable)
@@ -572,7 +572,7 @@ void __sramfunc board_pmu_tps65910_resume(void)
 {
        #ifdef CONFIG_CLK_SWITCH_TO_32K
        sram_gpio_set_value(pmic_sleep, GPIO_LOW);  
-       sram_udelay(2000);
+       sram_32k_udelay(2000);
        #endif
 }
 static struct tps65910_board tps65910_data = {
index 0aa7f7ab9a00b124f3d762e36e4d3e962f783baf..486092540f127567a30904379f8af1596b59c7e4 100755 (executable)
@@ -787,7 +787,7 @@ void __sramfunc board_pmu_wm8326_resume(void)
 {
        #ifdef CONFIG_CLK_SWITCH_TO_32K
        sram_gpio_set_value(pmic_sleep, GPIO_LOW);  
-       sram_udelay(2000);
+       sram_32k_udelay(2000);
        #endif
 }
 static struct wm831x_pdata wm831x_platdata = {