diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/coldfire/iriver/h300/pcf50606-h300.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iriver/h300/pcf50606-h300.c b/firmware/target/coldfire/iriver/h300/pcf50606-h300.c index 536e43dde6..120021bd3c 100644 --- a/firmware/target/coldfire/iriver/h300/pcf50606-h300.c +++ b/firmware/target/coldfire/iriver/h300/pcf50606-h300.c | |||
@@ -23,6 +23,9 @@ | |||
23 | #include "button-target.h" | 23 | #include "button-target.h" |
24 | #include "logf.h" | 24 | #include "logf.h" |
25 | 25 | ||
26 | /* Used by the bootloader to find out what caused the device to start */ | ||
27 | unsigned char pcf50606_intregs[3]; | ||
28 | |||
26 | static bool usb_ch_enabled = false; | 29 | static bool usb_ch_enabled = false; |
27 | 30 | ||
28 | /* These voltages were determined by measuring the output of the PCF50606 | 31 | /* These voltages were determined by measuring the output of the PCF50606 |
@@ -57,7 +60,7 @@ static void init_pmu_interrupts(void) | |||
57 | /* unmask the PMU interrupts we want to service */ | 60 | /* unmask the PMU interrupts we want to service */ |
58 | pcf50606_write_multiple(0x05, data, 3); | 61 | pcf50606_write_multiple(0x05, data, 3); |
59 | /* clear INT1-3 as these are left set after standby */ | 62 | /* clear INT1-3 as these are left set after standby */ |
60 | pcf50606_read_multiple(0x02, data, 3); | 63 | pcf50606_read_multiple(0x02, pcf50606_intregs, 3); |
61 | 64 | ||
62 | /* Set to read pcf50606 INT but keep GPI6 off until init completes */ | 65 | /* Set to read pcf50606 INT but keep GPI6 off until init completes */ |
63 | and_l(~0x00000040, &GPIO_ENABLE); | 66 | and_l(~0x00000040, &GPIO_ENABLE); |