diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-10-10 17:35:02 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-10-10 17:35:02 +0000 |
commit | 16ada4cb81c70c1a151c69aa08da13e55aba0081 (patch) | |
tree | c92dda004a162cea1d2ded3188cffe1ca6f04077 /firmware/drivers/pcf50606.c | |
parent | 31464f7930cd8857ef8d00ed75534087057058e2 (diff) | |
download | rockbox-16ada4cb81c70c1a151c69aa08da13e55aba0081.tar.gz rockbox-16ada4cb81c70c1a151c69aa08da13e55aba0081.zip |
Initial support for runtime detection of the PMU used in newer D2+ models (PCF50635). The backlight and battery monitoring should work, but the RTC and touchscreen are not yet implemented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23078 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/pcf50606.c')
-rw-r--r-- | firmware/drivers/pcf50606.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/firmware/drivers/pcf50606.c b/firmware/drivers/pcf50606.c index 8592c005fe..4ef747fe80 100644 --- a/firmware/drivers/pcf50606.c +++ b/firmware/drivers/pcf50606.c | |||
@@ -53,7 +53,17 @@ int pcf50606_read_multiple(int address, unsigned char* buf, int count) | |||
53 | 53 | ||
54 | void pcf50606_init(void) | 54 | void pcf50606_init(void) |
55 | { | 55 | { |
56 | // TODO | 56 | #ifdef COWON_D2 |
57 | /* Set outputs as per OF - further investigation required. */ | ||
58 | pcf50606_write(PCF5060X_DCDEC1, 0xe4); | ||
59 | pcf50606_write(PCF5060X_IOREGC, 0xf5); | ||
60 | pcf50606_write(PCF5060X_D1REGC1, 0xf5); | ||
61 | pcf50606_write(PCF5060X_D2REGC1, 0xe9); | ||
62 | pcf50606_write(PCF5060X_D3REGC1, 0xf8); /* WM8985 3.3v */ | ||
63 | pcf50606_write(PCF5060X_DCUDC1, 0xe7); | ||
64 | pcf50606_write(PCF5060X_LPREGC1, 0x0); | ||
65 | pcf50606_write(PCF5060X_LPREGC2, 0x2); | ||
66 | #endif | ||
57 | } | 67 | } |
58 | 68 | ||
59 | void pcf50606_reset_timeout(void) | 69 | void pcf50606_reset_timeout(void) |