From 2220a4b695f2f5ac9fe212de4bcfa5365318136f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 28 Jan 2017 14:43:35 -0500 Subject: 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 --- firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c') diff --git a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c index 6fdde32185..cf0a378fc7 100644 --- a/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/headphone-gigabeat-s.c @@ -25,7 +25,6 @@ #include "kernel.h" #include "thread.h" #include "mc13783.h" -#include "mc13783-target.h" #include "adc.h" #include "button.h" @@ -146,7 +145,7 @@ static void NORETURN_ATTR headphone_thread(void) } /* HP plugged/unplugged event - called from PMIC ISR */ -void headphone_detect_event(void) +void MC13783_EVENT_CB_ONOFD2(void) { /* Trigger the thread immediately. */ semaphore_release(&headphone_wakeup); @@ -170,5 +169,5 @@ void INIT_ATTR headphone_init(void) IF_COP(, CPU)); /* Enable PMIC event */ - mc13783_enable_event(MC13783_ONOFD2_EVENT, true); + mc13783_enable_event(MC13783_INT_ID_ONOFD2, true); } -- cgit v1.2.3