]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/alchemy/devboards/pm.c
MIPS: Alchemy: devboards: Convert to gpio calls.
[net-next-2.6.git] / arch / mips / alchemy / devboards / pm.c
index d5eb9c325ed0c91009641ff462f60aa9afd7711c..632f9862a0fbdb57513f6fefeecdd300c8e360c2 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/suspend.h>
 #include <linux/sysfs.h>
 #include <asm/mach-au1x00/au1000.h>
+#include <asm/mach-au1x00/gpio.h>
 
 /*
  * Generic suspend userspace interface for Alchemy development boards.
@@ -26,7 +27,7 @@ static unsigned long db1x_pm_last_wakesrc;
 static int db1x_pm_enter(suspend_state_t state)
 {
        /* enable GPIO based wakeup */
-       au_writel(1, SYS_PININPUTEN);
+       alchemy_gpio1_input_enable();
 
        /* clear and setup wake cause and source */
        au_writel(0, SYS_WAKEMSK);