From ff17905d7ceece9d3a1ec2505b6e18dc7d29b34b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 2 Mar 2007 11:28:23 +0000 Subject: 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 --- firmware/target/coldfire/iriver/h300/pcf50606-h300.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware') 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); -- cgit v1.2.3