diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-04-20 18:28:25 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-04-20 18:28:25 +0000 |
commit | 850a11250a8c5b6825b080ff843f30fd68cb71f6 (patch) | |
tree | d236674a20fccc8002edeafa30d210b5c972327d /firmware/drivers/pcf50605.c | |
parent | cea07eb2a4ddb72d084c7085192521613004a997 (diff) | |
download | rockbox-850a11250a8c5b6825b080ff843f30fd68cb71f6.tar.gz rockbox-850a11250a8c5b6825b080ff843f30fd68cb71f6.zip |
Adding new setting to System Settings <Accessory Power Supply -- off by default). This setting can be used to enable/disable the power supply for accessories. With this commit implemented for iPods with PCF50605 power controller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17193 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/pcf50605.c')
-rw-r--r-- | firmware/drivers/pcf50605.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c index 7d88e46aa2..9fb04ddcf2 100644 --- a/firmware/drivers/pcf50605.c +++ b/firmware/drivers/pcf50605.c | |||
@@ -79,27 +79,25 @@ void pcf50605_init(void) | |||
79 | #if defined (IPOD_VIDEO) | 79 | #if defined (IPOD_VIDEO) |
80 | /* I/O and GPO voltage supply (default: 0xf8 = 3.3V ON) */ | 80 | /* I/O and GPO voltage supply (default: 0xf8 = 3.3V ON) */ |
81 | /* ECO not allowed regarding data sheet */ | 81 | /* ECO not allowed regarding data sheet */ |
82 | pcf50605_write(PCF5060X_IOREGC, 0xf8); /* 3.3V ON */ | 82 | pcf50605_write(PCF5060X_IOREGC, 0xf8); /* 3.3V ON */ |
83 | 83 | ||
84 | /* core voltage supply (default DCDC1/DCDC2: 0xec = 1.2V ON) */ | 84 | /* core voltage supply (default DCDC1/DCDC2: 0xec = 1.2V ON) */ |
85 | /* ECO not stable, assumed due to less precision of voltage in ECO mode */ | 85 | /* ECO not stable, assumed due to less precision of voltage in ECO mode */ |
86 | pcf50605_write(PCF5060X_DCDC1, 0xec); /* 1.2V ON */ | 86 | pcf50605_write(PCF5060X_DCDC1, 0xec); /* 1.2V ON */ |
87 | pcf50605_write(PCF5060X_DCDC2, 0x0c); /* OFF */ | 87 | pcf50605_write(PCF5060X_DCDC2, 0x0c); /* OFF */ |
88 | 88 | ||
89 | /* unknown (default: 0xe3 = 1.8V ON) */ | 89 | /* unknown (default: 0xe3 = 1.8V ON) */ |
90 | pcf50605_write(PCF5060X_DCUDC1, 0xe3); /* 1.8V ON */ | 90 | pcf50605_write(PCF5060X_DCUDC1, 0xe3); /* 1.8V ON */ |
91 | 91 | ||
92 | /* WM8758 voltage supply (default: 0xf5 = 3.0V ON) */ | 92 | /* WM8758 voltage supply (default: 0xf5 = 3.0V ON) */ |
93 | /* ECO not allowed as max. current of 5mA is not sufficient */ | 93 | /* ECO not allowed as max. current of 5mA is not sufficient */ |
94 | pcf50605_write(PCF5060X_D1REGC1, 0xf0); /* 2.5V ON */ | 94 | pcf50605_write(PCF5060X_D1REGC1, 0xf0); /* 2.5V ON */ |
95 | 95 | ||
96 | /* LCD voltage supply (default: 0xf5 = 3.0V ON) */ | 96 | /* LCD voltage supply (default: 0xf5 = 3.0V ON) */ |
97 | pcf50605_write(PCF5060X_D3REGC1, 0xf1); /* 2.6V ON */ | 97 | pcf50605_write(PCF5060X_D3REGC1, 0xf1); /* 2.6V ON */ |
98 | #else | 98 | #else |
99 | /* keep initialization from svn for other iPods */ | 99 | /* keep initialization from svn for other iPods */ |
100 | pcf50605_write(PCF5060X_D1REGC1, 0xf5); /* 3.0V ON */ | 100 | pcf50605_write(PCF5060X_D1REGC1, 0xf5); /* 3.0V ON */ |
101 | pcf50605_write(PCF5060X_D3REGC1, 0xf5); /* 3.0V ON */ | 101 | pcf50605_write(PCF5060X_D3REGC1, 0xf5); /* 3.0V ON */ |
102 | #endif | 102 | #endif |
103 | /* Dock Connector pin 17 (default: OFF) */ | ||
104 | pcf50605_write(PCF5060X_D2REGC1, 0xf8); /* 3.3V ON */ | ||
105 | } | 103 | } |