INTRNG - update gpio pin capabilities according to r299198.
This commit is contained in:
parent
aa0d25b7a1
commit
f7f2b2fbe3
@ -67,8 +67,16 @@ __FBSDID("$FreeBSD$");
|
||||
#define BCM_GPIO_IRQS 4
|
||||
#define BCM_GPIO_PINS 54
|
||||
#define BCM_GPIO_PINS_PER_BANK 32
|
||||
|
||||
#ifdef INTRNG
|
||||
#define BCM_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
|
||||
GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN | GPIO_INTR_LEVEL_LOW | \
|
||||
GPIO_INTR_LEVEL_HIGH | GPIO_INTR_EDGE_RISING | \
|
||||
GPIO_INTR_EDGE_FALLING | GPIO_INTR_EDGE_BOTH)
|
||||
#else
|
||||
#define BCM_GPIO_DEFAULT_CAPS (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT | \
|
||||
GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)
|
||||
#endif
|
||||
|
||||
static struct resource_spec bcm_gpio_res_spec[] = {
|
||||
{ SYS_RES_MEMORY, 0, RF_ACTIVE },
|
||||
|
Loading…
Reference in New Issue
Block a user