summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-03-02 11:28:23 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-03-02 11:28:23 +0000
commitff17905d7ceece9d3a1ec2505b6e18dc7d29b34b (patch)
tree1ed878623d39220f40e00c4a8172cc183ba9aec7 /firmware
parent9fae76d9394607914049b0187852753ca037b02c (diff)
downloadrockbox-ff17905d7ceece9d3a1ec2505b6e18dc7d29b34b.tar.gz
rockbox-ff17905d7ceece9d3a1ec2505b6e18dc7d29b34b.zip
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')
-rw-r--r--firmware/target/coldfire/iriver/h300/pcf50606-h300.c5
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 */
27unsigned char pcf50606_intregs[3];
28
26static bool usb_ch_enabled = false; 29static 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);