From 367c9295a3d586cfb25fa46785a2bb3ead74b849 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BC=A0=E6=99=B4?= Date: Wed, 31 Oct 2012 18:14:50 +0800 Subject: [PATCH] rk3066b:m701:fixed wakeup failed --- arch/arm/mach-rk30/board-pmu-tps65910.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-rk30/board-pmu-tps65910.c b/arch/arm/mach-rk30/board-pmu-tps65910.c index d0b31ba9d317..41c72f96e996 100755 --- a/arch/arm/mach-rk30/board-pmu-tps65910.c +++ b/arch/arm/mach-rk30/board-pmu-tps65910.c @@ -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, -- 2.34.1