Merge branch 'locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / mips / include / asm / mach-au1x00 / gpio.h
1 #ifndef _AU1XXX_GPIO_H_
2 #define _AU1XXX_GPIO_H_
3
4 #include <linux/types.h>
5
6 #define AU1XXX_GPIO_BASE        200
7
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
13
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
21
22 #define GPIO2_OUT_EN_MASK       0x00010000
23
24 #define gpio_to_irq(gpio)       NULL
25
26 #define gpio_get_value __gpio_get_value
27 #define gpio_set_value __gpio_set_value
28
29 #define gpio_cansleep __gpio_cansleep
30
31 #include <asm-generic/gpio.h>
32
33 #endif /* _AU1XXX_GPIO_H_ */