summaryrefslogtreecommitdiff
path: root/include/asm-mips/au1x00.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@atlas.denx.de>2006-06-19 01:37:03 +0200
committerWolfgang Denk <wd@atlas.denx.de>2006-06-19 01:37:03 +0200
commita650cfa286e8933144a776693d56dfd858922aa4 (patch)
tree1848c6ba3c8115b516d6711cad787d1e6a9d2fb5 /include/asm-mips/au1x00.h
parentdf02bd1b3f2eecca04bfecb62eae7c2ff698506a (diff)
parent0c32d96ddd7309b86ff92dfc1f3694908f174cf6 (diff)
downloadu-boot-imx-a650cfa286e8933144a776693d56dfd858922aa4.zip
u-boot-imx-a650cfa286e8933144a776693d56dfd858922aa4.tar.gz
u-boot-imx-a650cfa286e8933144a776693d56dfd858922aa4.tar.bz2
Merge with ssh://fifi/home/wd/git/u-boot/master
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