diff options
Diffstat (limited to 'firmware/target/arm/imx31')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/button-gigabeat-s.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/button-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/button-gigabeat-s.c index 11d1d5a0b4..3972e5722f 100644 --- a/firmware/target/arm/imx31/gigabeat-s/button-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/button-gigabeat-s.c | |||
@@ -213,7 +213,7 @@ void button_close_device(void) | |||
213 | /* Assumes HP detection is not available */ | 213 | /* Assumes HP detection is not available */ |
214 | initialized = false; | 214 | initialized = false; |
215 | 215 | ||
216 | mc13783_enable_event(MC13783_ONOFD1_EVENT, true); | 216 | mc13783_enable_event(MC13783_ONOFD1_EVENT, false); |
217 | ext_btn = BUTTON_NONE; | 217 | ext_btn = BUTTON_NONE; |
218 | } | 218 | } |
219 | #endif /* BUTTON_DRIVER_CLOSE */ | 219 | #endif /* BUTTON_DRIVER_CLOSE */ |
diff --git a/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c index 5b255a0e27..d194a69ab1 100644 --- a/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c | |||
@@ -68,8 +68,7 @@ static void update_main_charger(bool present) | |||
68 | /* Detect changes in presence of the AC adaptor. Called from PMIC ISR. */ | 68 | /* Detect changes in presence of the AC adaptor. Called from PMIC ISR. */ |
69 | void charger_main_detect_event(void) | 69 | void charger_main_detect_event(void) |
70 | { | 70 | { |
71 | update_main_charger(mc13783_event_sense(MC13783_INT_ID_SE1) | 71 | update_main_charger(mc13783_event_sense(MC13783_SE1_EVENT)); |
72 | & MC13783_SE1S); | ||
73 | } | 72 | } |
74 | 73 | ||
75 | /* Detect changes in USB bus power. Called from usb connect event ISR. */ | 74 | /* Detect changes in USB bus power. Called from usb connect event ISR. */ |