packages: clean up the package folder
[openwrt/staging/yousong.git] / package / kernel / broadcom-diag / src / gpio.h
1 #ifndef __DIAG_GPIO_H
2 #define __DIAG_GPIO_H
3
4 #include <linux/interrupt.h>
5 #include <linux/ssb/ssb_embedded.h>
6 #include <linux/gpio.h>
7 #include <bcm47xx.h>
8
9 #define EXTIF_ADDR 0x1f000000
10 #define EXTIF_UART (EXTIF_ADDR + 0x00800000)
11
12 /* GPIO pins driving LEDs through a shift register */
13 #define SHIFTREG_DATA (1 << 6)
14 #define SHIFTREG_CLK (1 << 7)
15 #define SHIFTREG_MAX_BITS 8
16
17 #define GPIO_TYPE_NORMAL (0x0 << 24)
18 #define GPIO_TYPE_EXTIF (0x1 << 24)
19 #define GPIO_TYPE_SHIFT (0x2 << 24)
20 #define GPIO_TYPE_MASK (0xf << 24)
21
22 #endif /* __DIAG_GPIO_H */