From 5a8da163c842b08c6dbf1df6921507ec2fd5a534 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 2 Jan 2012 18:32:35 +0000 Subject: i.MX31 - Dethreading operations continue Dispense with "pmic" thread and process PMIC events directly within ISR. Add sense bit reading as part of the handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31528 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c') 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 12009fae06..6ae8c23c48 100644 --- a/firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/mc13783-gigabeat-s.c @@ -55,28 +55,33 @@ const struct mc13783_event mc13783_events[MC13783_NUM_EVENTS] = { [MC13783_ADCDONE_EVENT] = /* ADC conversion complete */ { - .int_id = MC13783_INT_ID_ADCDONE, + .int_id = MC13783_INT_ID_ADCDONE, + .sense = 0, .callback = adc_done, }, [MC13783_ONOFD1_EVENT] = /* Power button */ { - .int_id = MC13783_INT_ID_ONOFD1, + .int_id = MC13783_INT_ID_ONOFD1, + .sense = MC13783_ONOFD1S, .callback = button_power_event, }, [MC13783_SE1_EVENT] = /* Main charger detection */ { - .int_id = MC13783_INT_ID_SE1, + .int_id = MC13783_INT_ID_SE1, + .sense = MC13783_SE1S, .callback = charger_main_detect_event, }, [MC13783_USB_EVENT] = /* USB insertion/USB charger detection */ { - .int_id = MC13783_INT_ID_USB, + .int_id = MC13783_INT_ID_USB, + .sense = MC13783_USB4V4S, .callback = usb_connect_event, }, #ifdef HAVE_HEADPHONE_DETECTION [MC13783_ONOFD2_EVENT] = /* Headphone jack */ { - .int_id = MC13783_INT_ID_ONOFD2, + .int_id = MC13783_INT_ID_ONOFD2, + .sense = 0, .callback = headphone_detect_event, }, #endif -- cgit v1.2.3