diff options
author | Manuel Lauss <manuel.lauss@googlemail.com> | 2009-06-06 14:09:58 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-17 12:06:29 +0200 |
commit | ce65cc8fe22a572ea9ec88e203388558b6b863af (patch) | |
tree | 26cafa2f81be0f44fac4142e40bb1596c58040cd /arch/mips/alchemy/devboards/pm.c | |
parent | MIPS: Alchemy: xxs1500: use linux gpio api. (diff) | |
download | linux-ce65cc8fe22a572ea9ec88e203388558b6b863af.tar.xz linux-ce65cc8fe22a572ea9ec88e203388558b6b863af.zip |
MIPS: Alchemy: devboards: Convert to gpio calls.
Replace a few open-coded GPIO register accesses with gpio calls.
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/alchemy/devboards/pm.c')
-rw-r--r-- | arch/mips/alchemy/devboards/pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/alchemy/devboards/pm.c b/arch/mips/alchemy/devboards/pm.c index d5eb9c325ed0..632f9862a0fb 100644 --- a/arch/mips/alchemy/devboards/pm.c +++ b/arch/mips/alchemy/devboards/pm.c @@ -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); |