diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-07-01 20:42:19 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-07-01 20:42:19 +0000 |
commit | a0bf57c7f11805527e3540db716afe92d890de77 (patch) | |
tree | f962fa79a551e21a7ea819bd1d55cfd6149d840a /firmware/drivers/pcf50605.c | |
parent | 4dab6235cf208181e456a1f24542e8d972f69173 (diff) | |
download | rockbox-a0bf57c7f11805527e3540db716afe92d890de77.tar.gz rockbox-a0bf57c7f11805527e3540db716afe92d890de77.zip |
Fix possible ATA-error on startup for iPod nano. Was introduced with r17721.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17908 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/pcf50605.c')
-rw-r--r-- | firmware/drivers/pcf50605.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c index 64a4d527ea..9192ec11b5 100644 --- a/firmware/drivers/pcf50605.c +++ b/firmware/drivers/pcf50605.c | |||
@@ -103,10 +103,16 @@ void pcf50605_init(void) | |||
103 | 103 | ||
104 | /* PCF5060X_D2REGC1 is set in accordance to the accessory power setting */ | 104 | /* PCF5060X_D2REGC1 is set in accordance to the accessory power setting */ |
105 | 105 | ||
106 | #if defined (IPOD_VIDEO) | ||
106 | /* LCD voltage supply. Defaults: | 107 | /* LCD voltage supply. Defaults: |
107 | * iPod Video = 0xf5 = 3.0V ON | 108 | * iPod Video = 0xf5 = 3.0V ON */ |
108 | * iPod nano = 0xf5 = 3.0V ON */ | ||
109 | pcf50605_write(PCF5060X_D3REGC1, 0xf1); /* 2.6V ON */ | 109 | pcf50605_write(PCF5060X_D3REGC1, 0xf1); /* 2.6V ON */ |
110 | #elif defined (IPOD_NANO) | ||
111 | /* D3REGC has effect on LCD and ATA, leave it unchanged due to possible ATA | ||
112 | * failures. Defaults: | ||
113 | * iPod nano = 0xf5 = 3.0V ON */ | ||
114 | pcf50605_write(PCF5060X_D3REGC1, 0xf5); /* 3.0V ON */ | ||
115 | #endif | ||
110 | 116 | ||
111 | /* PCF5060X_LPREGC1 is leaved untouched as the setting varies over the | 117 | /* PCF5060X_LPREGC1 is leaved untouched as the setting varies over the |
112 | * different iPod platforms. Defaults: | 118 | * different iPod platforms. Defaults: |