X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/15b54dd2c0764032b4a1ac4ad3964bbd2b159fc8..06c8bec13f8ca1f7627bd633ab998f82d05ac5ef:/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; }