diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s')
4 files changed, 6 insertions, 16 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 3d0ff977da..f4402d5617 100644 --- a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c | |||
@@ -28,7 +28,7 @@ | |||
28 | /* Gigabeat S definitions for static GPIO event registration */ | 28 | /* Gigabeat S definitions for static GPIO event registration */ |
29 | 29 | ||
30 | /* Describes single events for each GPIO1 pin */ | 30 | /* Describes single events for each GPIO1 pin */ |
31 | static const struct gpio_event gpio1_events[] = | 31 | const struct gpio_event gpio1_events[] = |
32 | { | 32 | { |
33 | /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked | 33 | /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked |
34 | * interrupts become active when clearing them or if a source being | 34 | * interrupts become active when clearing them or if a source being |
@@ -41,11 +41,3 @@ static const struct gpio_event gpio1_events[] = | |||
41 | .callback = mc13783_event, | 41 | .callback = mc13783_event, |
42 | } | 42 | } |
43 | }; | 43 | }; |
44 | |||
45 | /* Describes the events attached to GPIO1 port */ | ||
46 | const struct gpio_event_list gpio1_event_list = | ||
47 | { | ||
48 | .ints_priority = INT_PRIO_DEFAULT, | ||
49 | .count = ARRAYLEN(gpio1_events), | ||
50 | .events = gpio1_events, | ||
51 | }; | ||
diff --git a/firmware/target/arm/imx31/gigabeat-s/gpio-target.h b/firmware/target/arm/imx31/gigabeat-s/gpio-target.h index 0c213611ff..2eea27c3be 100644 --- a/firmware/target/arm/imx31/gigabeat-s/gpio-target.h +++ b/firmware/target/arm/imx31/gigabeat-s/gpio-target.h | |||
@@ -29,11 +29,14 @@ | |||
29 | #define MC13783_GPIO_ISR GPIO1_ISR | 29 | #define MC13783_GPIO_ISR GPIO1_ISR |
30 | #define MC13783_GPIO_LINE 31 | 30 | #define MC13783_GPIO_LINE 31 |
31 | 31 | ||
32 | #define GPIO1_INT_PRIO INT_PRIO_DEFAULT | ||
33 | |||
32 | /* Declare event indexes in priority order in a packed array */ | 34 | /* Declare event indexes in priority order in a packed array */ |
33 | enum gpio_event_ids | 35 | enum gpio_event_ids |
34 | { | 36 | { |
35 | /* GPIO1 event IDs */ | 37 | /* GPIO1 event IDs */ |
36 | MC13783_EVENT_ID = GPIO1_EVENT_FIRST, | 38 | MC13783_EVENT_ID = GPIO1_EVENT_FIRST, |
39 | GPIO1_NUM_EVENTS = 1, | ||
37 | /* GPIO2 event IDs */ | 40 | /* GPIO2 event IDs */ |
38 | /* none defined */ | 41 | /* none defined */ |
39 | /* GPIO3 event IDs */ | 42 | /* GPIO3 event IDs */ |
diff --git a/firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c index 22c9f3e1df..e0745a5b8b 100644 --- a/firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c | |||
@@ -52,7 +52,7 @@ struct spi_node mc13783_spi = | |||
52 | 52 | ||
53 | /* Gigabeat S definitions for static MC13783 event registration */ | 53 | /* Gigabeat S definitions for static MC13783 event registration */ |
54 | 54 | ||
55 | static const struct mc13783_event mc13783_events[] = | 55 | const struct mc13783_event mc13783_events[MC13783_NUM_EVENTS] = |
56 | { | 56 | { |
57 | [MC13783_ADCDONE_EVENT] = /* ADC conversion complete */ | 57 | [MC13783_ADCDONE_EVENT] = /* ADC conversion complete */ |
58 | { | 58 | { |
@@ -87,9 +87,3 @@ static const struct mc13783_event mc13783_events[] = | |||
87 | }, | 87 | }, |
88 | #endif | 88 | #endif |
89 | }; | 89 | }; |
90 | |||
91 | const struct mc13783_event_list mc13783_event_list = | ||
92 | { | ||
93 | .count = ARRAYLEN(mc13783_events), | ||
94 | .events = mc13783_events | ||
95 | }; | ||
diff --git a/firmware/target/arm/imx31/gigabeat-s/mc13783-target.h b/firmware/target/arm/imx31/gigabeat-s/mc13783-target.h index 2ae3be1819..48d634035a 100644 --- a/firmware/target/arm/imx31/gigabeat-s/mc13783-target.h +++ b/firmware/target/arm/imx31/gigabeat-s/mc13783-target.h | |||
@@ -33,6 +33,7 @@ enum mc13783_event_ids | |||
33 | #endif | 33 | #endif |
34 | MC13783_SE1_EVENT, /* Main charger detection */ | 34 | MC13783_SE1_EVENT, /* Main charger detection */ |
35 | MC13783_USB_EVENT, /* USB insertion */ | 35 | MC13783_USB_EVENT, /* USB insertion */ |
36 | MC13783_NUM_EVENTS, | ||
36 | }; | 37 | }; |
37 | 38 | ||
38 | #endif /* MC13783_TARGET_H */ | 39 | #endif /* MC13783_TARGET_H */ |