diff options
Diffstat (limited to 'firmware/target/arm/tcc780x/cowond2/power-cowond2.c')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/power-cowond2.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/power-cowond2.c b/firmware/target/arm/tcc780x/cowond2/power-cowond2.c index af5559dfb5..c7441256c5 100644 --- a/firmware/target/arm/tcc780x/cowond2/power-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/power-cowond2.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "system.h" | 21 | #include "system.h" |
22 | #include "power.h" | 22 | #include "power.h" |
23 | #include "pcf50606.h" | 23 | #include "pcf50606.h" |
24 | #include "cpu.h" | 24 | #include "button-target.h" |
25 | 25 | ||
26 | #ifndef SIMULATOR | 26 | #ifndef SIMULATOR |
27 | 27 | ||
@@ -74,15 +74,19 @@ void EXT3(void) | |||
74 | 74 | ||
75 | if (data[0] & 0x04) | 75 | if (data[0] & 0x04) |
76 | { | 76 | { |
77 | /* ONKEY1S: don't reset the timeout, because we want a way to power off | ||
78 | the player in the event of a crashed plugin or UIE/panic, etc. */ | ||
79 | #if 0 | ||
77 | /* ONKEY1S: reset timeout as we're using SW poweroff */ | 80 | /* ONKEY1S: reset timeout as we're using SW poweroff */ |
78 | pcf50606_write(0x08, pcf50606_read(0x08) | 0x02); /* OOCC1: TOTRST=1 */ | 81 | pcf50606_write(0x08, pcf50606_read(0x08) | 0x02); /* OOCC1: TOTRST=1 */ |
82 | #endif | ||
79 | } | 83 | } |
80 | 84 | ||
81 | if (data[2] & 0x08) | 85 | if (data[2] & 0x08) |
82 | { | 86 | { |
83 | /* TODO: Touchscreen pen down event, do something about it */ | 87 | /* Touchscreen event, do something about it */ |
88 | button_set_touch_available(); | ||
84 | } | 89 | } |
85 | |||
86 | restore_fiq(fiq_status); | 90 | restore_fiq(fiq_status); |
87 | } | 91 | } |
88 | #endif | 92 | #endif |