diff options
| author | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-06-06 13:01:19 +0000 |
|---|---|---|
| committer | Torne Wuff <torne@wolfpuppy.org.uk> | 2010-06-06 13:01:19 +0000 |
| commit | 4a2cab6aa1008a4f5ac05dac44c99b7f1a05e8f4 (patch) | |
| tree | 229c2d69c074b4fa5973ccc6050b7bba187a6d14 /firmware/export | |
| parent | 32a2b3e3fa36767fdad90b565fc52a1050b39926 (diff) | |
| download | rockbox-4a2cab6aa1008a4f5ac05dac44c99b7f1a05e8f4.zip rockbox-4a2cab6aa1008a4f5ac05dac44c99b7f1a05e8f4.tar.gz rockbox-4a2cab6aa1008a4f5ac05dac44c99b7f1a05e8f4.tar.bz2 rockbox-4a2cab6aa1008a4f5ac05dac44c99b7f1a05e8f4.tar.xz | |
USB charging support for iPods.
This adds proper full speed charging support for iPod 4G, Color, Mini 1G, Mini 2G, Nano 1G, and Video. Nano 2G already has support, so now all ipods charge (except 1G-3G whose hardware doesn't support USB charging).
USB charging defaults to on, but will only charge at full speed from a USB host. To charge from an AC charger, you need to set the USB charging mode to "force". It may be possible to detect AC chargers in a future version, at least on some models.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/config/ipod4g.h | 4 | ||||
| -rw-r--r-- | firmware/export/config/ipodcolor.h | 4 | ||||
| -rw-r--r-- | firmware/export/config/ipodmini1g.h | 5 | ||||
| -rw-r--r-- | firmware/export/config/ipodmini2g.h | 4 | ||||
| -rw-r--r-- | firmware/export/config/ipodnano1g.h | 4 | ||||
| -rw-r--r-- | firmware/export/config/ipodvideo.h | 4 |
6 files changed, 25 insertions, 0 deletions
diff --git a/firmware/export/config/ipod4g.h b/firmware/export/config/ipod4g.h index b9251e7..2a08a71 100644 --- a/firmware/export/config/ipod4g.h +++ b/firmware/export/config/ipod4g.h @@ -146,6 +146,10 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define this if the unit can have USB charging disabled by user - + * if USB/MAIN power is discernable and hardware doesn't compel charging */ +#define HAVE_USB_CHARGING_ENABLE + /* define current usage levels */ #define CURRENT_NORMAL 100 /* MP3: ~10.5h out of 1100mAh battery */ #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ diff --git a/firmware/export/config/ipodcolor.h b/firmware/export/config/ipodcolor.h index 5448cb7..2b42762 100644 --- a/firmware/export/config/ipodcolor.h +++ b/firmware/export/config/ipodcolor.h @@ -130,6 +130,10 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define this if the unit can have USB charging disabled by user - + * if USB/MAIN power is discernable and hardware doesn't compel charging */ +#define HAVE_USB_CHARGING_ENABLE + /* define current usage levels */ #define CURRENT_NORMAL 69 /* ~10h (700mAh), see FS#9072 */ #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ diff --git a/firmware/export/config/ipodmini1g.h b/firmware/export/config/ipodmini1g.h index 2f261a8..81529a5 100644 --- a/firmware/export/config/ipodmini1g.h +++ b/firmware/export/config/ipodmini1g.h @@ -143,6 +143,11 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define this if the unit can have USB charging disabled by user - +:Qa + * if USB/MAIN power is discernable and hardware doesn't compel charging */ +#define HAVE_USB_CHARGING_ENABLE + /* Define this if you have a PortalPlayer PP5020 */ #define CONFIG_CPU PP5020 diff --git a/firmware/export/config/ipodmini2g.h b/firmware/export/config/ipodmini2g.h index b9b4f48..0b6e763 100644 --- a/firmware/export/config/ipodmini2g.h +++ b/firmware/export/config/ipodmini2g.h @@ -150,6 +150,10 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define this if the unit can have USB charging disabled by user - + * if USB/MAIN power is discernable and hardware doesn't compel charging */ +#define HAVE_USB_CHARGING_ENABLE + /* Define this if you have a PortalPlayer PP5022 */ #define CONFIG_CPU PP5022 diff --git a/firmware/export/config/ipodnano1g.h b/firmware/export/config/ipodnano1g.h index 24ed973..f60f3c9 100644 --- a/firmware/export/config/ipodnano1g.h +++ b/firmware/export/config/ipodnano1g.h @@ -131,6 +131,10 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define this if the unit can have USB charging disabled by user - + * if USB/MAIN power is discernable and hardware doesn't compel charging */ +#define HAVE_USB_CHARGING_ENABLE + #define CURRENT_NORMAL 32 /* MP3: ~9h playback out of 300mAh battery */ #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ #if defined(HAVE_RECORDING) diff --git a/firmware/export/config/ipodvideo.h b/firmware/export/config/ipodvideo.h index bad7195..54c604f 100644 --- a/firmware/export/config/ipodvideo.h +++ b/firmware/export/config/ipodvideo.h @@ -154,6 +154,10 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define this if the unit can have USB charging disabled by user - + * if USB/MAIN power is discernable and hardware doesn't compel charging */ +#define HAVE_USB_CHARGING_ENABLE + /* define current usage levels */ #define CURRENT_NORMAL 24 /* 30MHz clock, LCD off, accessory supply on */ #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ |