mpc8323erdb: remove RTC and add EEPROM
[oweals/u-boot.git] / include / asm-mips / au1x00.h
index 4e19dc4da282a8634c0206a6a04f0a428ca2c4bb..a4e9947d93b3e0619ce99c0d46dfb8b679718d95 100644 (file)
@@ -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