Convert brcm63xx to gpiolib
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / files / include / asm-mips / mach-bcm63xx / bcm63xx_gpio.h
1 #ifndef BCM63XX_GPIO_H
2 #define BCM63XX_GPIO_H
3
4 /* all helpers will BUG() if gpio count is >= 37. */
5 #define BCM63XX_GPIO_COUNT 37
6
7 void bcm63xx_gpio_set_dataout(int gpio, int val);
8 int bcm63xx_gpio_get_datain(int gpio);
9 void bcm63xx_gpio_set_direction(int gpio, int dir);
10
11 #define GPIO_DIR_OUT 0x0
12 #define GPIO_DIR_IN 0x1
13
14 #endif /* !BCM63XX_GPIO_H */