summaryrefslogtreecommitdiff
path: root/include/asm-mips/au1x00.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@fifi.denx.de>2006-06-16 17:32:31 +0200
committerWolfgang Denk <wd@fifi.denx.de>2006-06-16 17:32:31 +0200
commit0c32d96ddd7309b86ff92dfc1f3694908f174cf6 (patch)
tree1136126a58dfc4f89043f65532673128dc3c9b4f /include/asm-mips/au1x00.h
parentc12cffc543df621c162ba26e012c7f4ab0af496e (diff)
downloadu-boot-imx-0c32d96ddd7309b86ff92dfc1f3694908f174cf6.zip
u-boot-imx-0c32d96ddd7309b86ff92dfc1f3694908f174cf6.tar.gz
u-boot-imx-0c32d96ddd7309b86ff92dfc1f3694908f174cf6.tar.bz2
Add support for gth2 board
Patch by Thomas Lange, Aug 11 2005
Diffstat (limited to 'include/asm-mips/au1x00.h')
-rw-r--r--include/asm-mips/au1x00.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-mips/au1x00.h b/include/asm-mips/au1x00.h
index 4e19dc4..a4e9947 100644
--- a/include/asm-mips/au1x00.h
+++ b/include/asm-mips/au1x00.h
@@ -119,6 +119,11 @@ static __inline__ int au_ffs(int x)
return __ilog2(x & -x) + 1;
}
+#define gpio_set(Value) outl(Value, SYS_OUTPUTSET)
+#define gpio_clear(Value) outl(Value, SYS_OUTPUTCLR)
+#define gpio_read() inl(SYS_PINSTATERD)
+#define gpio_tristate(Value) outl(Value, SYS_TRIOUTCLR)
+
#endif /* !ASSEMBLY */
#ifdef CONFIG_PM