diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2007-03-02 11:28:23 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2007-03-02 11:28:23 +0000 |
commit | ff17905d7ceece9d3a1ec2505b6e18dc7d29b34b (patch) | |
tree | 1ed878623d39220f40e00c4a8172cc183ba9aec7 /firmware/target/coldfire | |
parent | 9fae76d9394607914049b0187852753ca037b02c (diff) |
H300 bootloader: (Work in progress) Boot Rockbox on RTC alarm, add charging screen, move to a separate source file, backlight is on during USB mode (again)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12546 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire')
-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 @@ #include "button-target.h" #include "logf.h" +/* Used by the bootloader to find out what caused the device to start */ +unsigned char pcf50606_intregs[3]; + static bool usb_ch_enabled = false; /* These voltages were determined by measuring the output of the PCF50606 @@ -57,7 +60,7 @@ static void init_pmu_interrupts(void) /* unmask the PMU interrupts we want to service */ pcf50606_write_multiple(0x05, data, 3); /* clear INT1-3 as these are left set after standby */ - pcf50606_read_multiple(0x02, data, 3); + pcf50606_read_multiple(0x02, pcf50606_intregs, 3); /* Set to read pcf50606 INT but keep GPI6 off until init completes */ and_l(~0x00000040, &GPIO_ENABLE); |