mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37007 3c298f89-4303-0410-b956-a3cf2f4a3e73
23 lines
554 B
C
23 lines
554 B
C
#ifndef __DIAG_GPIO_H
|
|
#define __DIAG_GPIO_H
|
|
|
|
#include <linux/interrupt.h>
|
|
#include <linux/ssb/ssb_embedded.h>
|
|
#include <linux/gpio.h>
|
|
#include <bcm47xx.h>
|
|
|
|
#define EXTIF_ADDR 0x1f000000
|
|
#define EXTIF_UART (EXTIF_ADDR + 0x00800000)
|
|
|
|
/* GPIO pins driving LEDs through a shift register */
|
|
#define SHIFTREG_DATA (1 << 6)
|
|
#define SHIFTREG_CLK (1 << 7)
|
|
#define SHIFTREG_MAX_BITS 8
|
|
|
|
#define GPIO_TYPE_NORMAL (0x0 << 24)
|
|
#define GPIO_TYPE_EXTIF (0x1 << 24)
|
|
#define GPIO_TYPE_SHIFT (0x2 << 24)
|
|
#define GPIO_TYPE_MASK (0xf << 24)
|
|
|
|
#endif /* __DIAG_GPIO_H */
|