summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/au1x00.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@nyx.denx.de>2006-06-19 01:46:08 +0200
committerWolfgang Denk <wd@nyx.denx.de>2006-06-19 01:46:08 +0200
commit8d352247ecf3638cdd1ef7df31a6ad700bb80574 (patch)
treed8f2202361ce6cc944abb39195f66411003b0571 /include/asm-mips/au1x00.h
parent9e18a4bc6cb512dc7ae3a6fc2ed912f71bd8c6c0 (diff)
parenta650cfa286e8933144a776693d56dfd858922aa4 (diff)
downloadblackbird-obmc-uboot-8d352247ecf3638cdd1ef7df31a6ad700bb80574.tar.gz
blackbird-obmc-uboot-8d352247ecf3638cdd1ef7df31a6ad700bb80574.zip
Merge with ssh://atlas/home/wd/git/u-boot/work
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 4e19dc4da2..a4e9947d93 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
OpenPOWER on IntegriCloud