iPod Classic: fix wake-up from power-off on USB insert

Change-Id: I57897aa1bb98b652bc6c953680bf548648f5915b
This commit is contained in:
Cástor Muñoz 2016-01-11 21:16:14 +01:00
parent 9e24d5df1a
commit a953964167

View file

@ -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);