1 #ifndef _AU1XXX_GPIO_H_
2 #define _AU1XXX_GPIO_H_
4 #include <linux/types.h>
6 #define AU1XXX_GPIO_BASE 200
8 /* GPIO bank 1 offsets */
9 #define AU1000_GPIO1_TRI_OUT 0x0100
10 #define AU1000_GPIO1_OUT 0x0108
11 #define AU1000_GPIO1_ST 0x0110
12 #define AU1000_GPIO1_CLR 0x010C
14 /* GPIO bank 2 offsets */
15 #define AU1000_GPIO2_DIR 0x00
16 #define AU1000_GPIO2_RSVD 0x04
17 #define AU1000_GPIO2_OUT 0x08
18 #define AU1000_GPIO2_ST 0x0C
19 #define AU1000_GPIO2_INT 0x10
20 #define AU1000_GPIO2_EN 0x14
22 #define GPIO2_OUT_EN_MASK 0x00010000
24 #define gpio_to_irq(gpio) NULL
26 #define gpio_get_value __gpio_get_value
27 #define gpio_set_value __gpio_set_value
29 #define gpio_cansleep __gpio_cansleep
31 #include <asm-generic/gpio.h>
33 #endif /* _AU1XXX_GPIO_H_ */