diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-28 14:43:35 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-01-29 19:07:55 -0500 |
commit | 2220a4b695f2f5ac9fe212de4bcfa5365318136f (patch) | |
tree | ef0b31d798b12cbc5cd61e3f020f1856c1759db4 /firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c | |
parent | d4303ac900bae6b0fd2320db33bdb4f10861a430 (diff) | |
download | rockbox-2220a4b695f2f5ac9fe212de4bcfa5365318136f.tar.gz rockbox-2220a4b695f2f5ac9fe212de4bcfa5365318136f.zip |
Improve imx31 interrupt code for PMIC and GPIO
Fix stuff that was bugging me about the way I did it at first.
While messing around I found RDS code wasn't masking its GPIO
ISR as it should, which might lead to two different interrupts
messing with the static data.
Change-Id: I54626809ea3039a842af0cc9e3e42853326c4193
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.c | 52 |
1 files changed, 0 insertions, 52 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 deleted file mode 100644 index 51446934aa..0000000000 --- a/firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (c) 2008 by Michael Sevakis | ||
11 | * | ||
12 | * Gigabeat S GPIO interrupt event descriptions | ||
13 | * | ||
14 | * This program is free software; you can redistribute it and/or | ||
15 | * modify it under the terms of the GNU General Public License | ||
16 | * as published by the Free Software Foundation; either version 2 | ||
17 | * of the License, or (at your option) any later version. | ||
18 | * | ||
19 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
20 | * KIND, either express or implied. | ||
21 | * | ||
22 | ****************************************************************************/ | ||
23 | #include "config.h" | ||
24 | #include "system.h" | ||
25 | #include "avic-imx31.h" | ||
26 | #include "gpio-imx31.h" | ||
27 | |||
28 | /* Gigabeat S definitions for static GPIO event registration */ | ||
29 | |||
30 | /* Describes single events for each GPIO1 pin */ | ||
31 | const struct gpio_event gpio1_events[] = | ||
32 | { | ||
33 | /* mc13783 keeps the PRIINT high (no low pulse) if other unmasked | ||
34 | * interrupts become active when clearing them or if a source being | ||
35 | * cleared becomes active at that time. Edge-detection will not get | ||
36 | * a rising edge in that case so use high-level sense. */ | ||
37 | [MC13783_EVENT_ID-GPIO1_EVENT_FIRST] = | ||
38 | { | ||
39 | .mask = 1 << MC13783_GPIO_LINE, | ||
40 | .sense = GPIO_SENSE_HIGH_LEVEL, | ||
41 | .callback = mc13783_event, | ||
42 | }, | ||
43 | #ifndef BOOTLOADER | ||
44 | /* Generates a 5ms low pulse on the line - detect the falling edge */ | ||
45 | [SI4700_STC_RDS_EVENT_ID] = | ||
46 | { | ||
47 | .mask = 1 << SI4700_GPIO_STC_RDS_LINE, | ||
48 | .sense = GPIO_SENSE_FALLING, | ||
49 | .callback = si4700_stc_rds_event, | ||
50 | }, | ||
51 | #endif | ||
52 | }; | ||