]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/mips/alchemy/common/reset.c
MIPS: Alchemy: devboards: Convert to gpio calls.
[net-next-2.6.git] / arch / mips / alchemy / common / reset.c
index 0191c936cb5e258b35024babf72a8b63fcb872dd..4791011e8f9277585572a58672c25f4cac912a10 100644 (file)
@@ -27,8 +27,9 @@
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <asm/cacheflush.h>
+#include <linux/gpio.h>
 
+#include <asm/cacheflush.h>
 #include <asm/mach-au1x00/au1000.h>
 
 void au1000_restart(char *command)
@@ -161,7 +162,7 @@ void au1000_halt(void)
 #else
        printk(KERN_NOTICE "\n** You can safely turn off the power\n");
 #ifdef CONFIG_MIPS_MIRAGE
-       au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT);
+       gpio_direction_output(210, 1);
 #endif
 #ifdef CONFIG_MIPS_DB1200
        au_writew(au_readw(0xB980001C) | (1 << 14), 0xB980001C);