|
|
@ -145,13 +145,20 @@ configuresuspendsettingsandwakeupsources() |
|
|
|
"enabled" |
|
|
|
"enabled" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Enable IRQ wakeup source
|
|
|
|
// Enable IRQ wakeup source (incoming call) 5.8
|
|
|
|
fprintf(stderr, "Enable irq wakeup source\n"); |
|
|
|
fprintf(stderr, "Enable 5.8 IRQ wakeup source\n"); |
|
|
|
writefile( |
|
|
|
writefile( |
|
|
|
"/sys/devices/platform/gpio-keys/power/wakeup", |
|
|
|
"/sys/devices/platform/gpio-keys/power/wakeup", |
|
|
|
"enabled" |
|
|
|
"enabled" |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Enable IRQ wakeup source (incoming call) 5.9
|
|
|
|
|
|
|
|
fprintf(stderr, "Enable 5.9 IRQ wakeup source\n"); |
|
|
|
|
|
|
|
writefile( |
|
|
|
|
|
|
|
"/sys/devices/platform/soc/1c28c00.serial/serial1/serial1-0/power/wakeup", |
|
|
|
|
|
|
|
"enabled" |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Enable rtc wakeup source
|
|
|
|
// Enable rtc wakeup source
|
|
|
|
fprintf(stderr, "Enable rtc wakeup source\n"); |
|
|
|
fprintf(stderr, "Enable rtc wakeup source\n"); |
|
|
|
writefile( |
|
|
|
writefile( |
|
|
|