diff options
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) |