From a9539641673311cb929a98184631f52d57445d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1stor=20Mu=C3=B1oz?= Date: Mon, 11 Jan 2016 21:16:14 +0100 Subject: [PATCH] iPod Classic: fix wake-up from power-off on USB insert Change-Id: I57897aa1bb98b652bc6c953680bf548648f5915b --- firmware/target/arm/s5l8702/ipod6g/power-ipod6g.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/target/arm/s5l8702/ipod6g/power-ipod6g.c b/firmware/target/arm/s5l8702/ipod6g/power-ipod6g.c index 999f16964c..317f6cb7da 100644 --- a/firmware/target/arm/s5l8702/ipod6g/power-ipod6g.c +++ b/firmware/target/arm/s5l8702/ipod6g/power-ipod6g.c @@ -31,7 +31,9 @@ static int idepowered; void power_off(void) { - pmu_set_wake_condition(0x42); /* USB inserted or EXTON1 */ + /* USB inserted or EXTON1 */ + pmu_set_wake_condition( + PCF5063X_OOCWAKE_EXTON2 | PCF5063X_OOCWAKE_EXTON1); pmu_enter_standby(); while(1);