From 474eca73a833826ab13ce37a9885b787f666025a Mon Sep 17 00:00:00 2001 From: lars Date: Fri, 5 Mar 2010 02:56:25 +0000 Subject: [xburst] jz4740 pm: Fix gpio suspend/resume. Turn pll off while in suspend and gate clocks off which arn't handeld by their subsystems yet. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19984 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/xburst/files-2.6.32/arch/mips/jz4740/pm.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'target/linux/xburst/files-2.6.32/arch/mips/jz4740/pm.c') diff --git a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/pm.c b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/pm.c index 9fb0cebab..e7e463ef3 100644 --- a/target/linux/xburst/files-2.6.32/arch/mips/jz4740/pm.c +++ b/target/linux/xburst/files-2.6.32/arch/mips/jz4740/pm.c @@ -20,12 +20,18 @@ #include #include +#include "clock.h" + extern void jz4740_intc_suspend(void); extern void jz4740_intc_resume(void); +extern void jz_gpio_suspend(void); +extern void jz_gpio_resume(void); static int jz_pm_enter(suspend_state_t state) { + jz_gpio_suspend(); jz4740_intc_suspend(); + jz4740_clock_suspend(); jz4740_clock_set_wait_mode(JZ4740_WAIT_MODE_SLEEP); @@ -35,7 +41,9 @@ static int jz_pm_enter(suspend_state_t state) jz4740_clock_set_wait_mode(JZ4740_WAIT_MODE_IDLE); + jz4740_clock_resume(); jz4740_intc_resume(); + jz_gpio_resume(); return 0; } -- cgit v1.2.3