summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
index 37f6a00c3d..446932b308 100644
--- a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
+++ b/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
@@ -29,10 +29,14 @@
29/* Describes single events for each GPIO1 pin */ 29/* Describes single events for each GPIO1 pin */
30static const struct gpio_event gpio1_events[] = 30static const struct gpio_event gpio1_events[] =
31{ 31{
32 /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked
33 * interrupts become active when clearing them or if a source being
34 * cleared becomes active at that time. Edge-detection will not get
35 * a rising edge in that case so use high-level sense. */
32 [MC13783_EVENT_ID-GPIO1_EVENT_FIRST] = 36 [MC13783_EVENT_ID-GPIO1_EVENT_FIRST] =
33 { 37 {
34 .mask = 1 << MC13783_GPIO_LINE, 38 .mask = 1 << MC13783_GPIO_LINE,
35 .sense = GPIO_SENSE_RISING, 39 .sense = GPIO_SENSE_HIGH_LEVEL,
36 .callback = mc13783_event, 40 .callback = mc13783_event,
37 } 41 }
38}; 42};