From a0bf57c7f11805527e3540db716afe92d890de77 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Tue, 1 Jul 2008 20:42:19 +0000 Subject: 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 --- firmware/drivers/pcf50605.c | 10 ++++++++-- 1 file 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) /* PCF5060X_D2REGC1 is set in accordance to the accessory power setting */ +#if defined (IPOD_VIDEO) /* LCD voltage supply. Defaults: - * iPod Video = 0xf5 = 3.0V ON - * iPod nano = 0xf5 = 3.0V ON */ + * iPod Video = 0xf5 = 3.0V ON */ pcf50605_write(PCF5060X_D3REGC1, 0xf1); /* 2.6V ON */ +#elif defined (IPOD_NANO) + /* D3REGC has effect on LCD and ATA, leave it unchanged due to possible ATA + * failures. Defaults: + * iPod nano = 0xf5 = 3.0V ON */ + pcf50605_write(PCF5060X_D3REGC1, 0xf5); /* 3.0V ON */ +#endif /* PCF5060X_LPREGC1 is leaved untouched as the setting varies over the * different iPod platforms. Defaults: -- cgit v1.2.3