svn commit: r299229 - head/sys/arm/broadcom/bcm2835
Svatopluk Kraus
skra at FreeBSD.org
Sun May 8 09:01:31 UTC 2016
Author: skra
Date: Sun May 8 09:01:30 2016
New Revision: 299229
URL: https://svnweb.freebsd.org/changeset/base/299229
Log:
INTRNG - update gpio pin capabilities according to r299198.
Modified:
head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
Modified: head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c Sun May 8 08:57:50 2016 (r299228)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_gpio.c Sun May 8 09:01:30 2016 (r299229)
@@ -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 },
More information about the svn-src-head
mailing list