summaryrefslogtreecommitdiffstats
path: root/firmware/SOURCES
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2014-11-10 04:35:51 +0100
committerCástor Muñoz <cmvidal@gmail.com>2015-10-07 06:15:03 +0200
commit609cde94689b20098be1c36cc5157514b6dd63a4 (patch)
tree88d559823f2938626c1e80095d6ec46b6bc908f7 /firmware/SOURCES
parent3fdb86ea417cae94a7f7df4475989843e644acdc (diff)
downloadrockbox-609cde94689b20098be1c36cc5157514b6dd63a4.tar.gz
rockbox-609cde94689b20098be1c36cc5157514b6dd63a4.tar.bz2
rockbox-609cde94689b20098be1c36cc5157514b6dd63a4.zip
iPod Classic: s5l8702 GPIO interrupt controller.
This patch implements a simple API to use the external interrupt hardware present on s5l8702 (GPIO interrupt controller). This GPIOIC has been fully tested using emcore apps. Code is based on openiBoot project, there are a few modifications to optimize space considering we will only use two or three external interrupts. The API compiles and works, but has been never used, therefore probably will need some changes to the final version. External interrupts are necessary for jack remote+mic controller (see iAP Interface Specifiction: Headphone Remote and Mic System), this controller is located at I2C bus address 0x72, there is a IRQ line for remote button press/release events routed to GPIO E6. At this moment, the functionallity of this controller has been extensively tested using emcore, getting a lot of information about how it works. Microphone is already working on RB, jack accessory detection and button events are work in progress. PMU IRQ line is also routed to GPIO F3, it signals many events: holdswitch, usb plug, wall adapter, low battery... The use of PMU interrupts is the orthodox way of doing things, at this moment there is no work done in this direction, there are a lot of PMU events and i think it is a matter of discursion what to do and how. Change-Id: Icc2e48965e664ca56c9518d84a81c9d9fdd31736
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r--firmware/SOURCES1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index 1bb8563f24..d3fb69f9e8 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -1597,6 +1597,7 @@ target/arm/s5l8702/ipod6g/powermgmt-ipod6g.c
target/arm/s5l8702/ipod6g/power-ipod6g.c
target/arm/s5l8702/kernel-s5l8702.c
target/arm/s5l8702/system-s5l8702.c
+target/arm/s5l8702/gpio-s5l8702.c
target/arm/s5l8702/ipod6g/lcd-ipod6g.c
target/arm/s5l8702/ipod6g/lcd-asm-ipod6g.S
#if 0 //TODO