From 914760b54e50ba1ef7a0851f09a3035cb71ae14e Mon Sep 17 00:00:00 2001 From: Paul Sauro Date: Thu, 13 Feb 2025 11:29:00 +0100 Subject: [PATCH] config: USB_CHARGING_FORCE must be enabled for all iPods If not, these devices will charge very slowly (0.07A) when plugged into a wall plug, and will all discharge slowly when docked & playing music. Enabling this option (that is already enabled by default on some other devices like erosq and fiio m3k) make them pull between 0.20 and 0.30. They charge faster, just as fast as on Stock OS, and won't discharge when playing music while docked. Change-Id: I90a59caaca463354772b1869f7333d8efce4f117 --- firmware/export/config/ipod4g.h | 1 + firmware/export/config/ipodcolor.h | 1 + firmware/export/config/ipodmini1g.h | 1 + firmware/export/config/ipodmini2g.h | 2 +- firmware/export/config/ipodnano1g.h | 1 + firmware/export/config/ipodvideo.h | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/export/config/ipod4g.h b/firmware/export/config/ipod4g.h index 05271f836c..65b14d0ad2 100644 --- a/firmware/export/config/ipod4g.h +++ b/firmware/export/config/ipod4g.h @@ -153,6 +153,7 @@ /* 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 TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE /* define current usage levels */ #define CURRENT_NORMAL 100 /* MP3: ~10.5h out of 1100mAh battery */ diff --git a/firmware/export/config/ipodcolor.h b/firmware/export/config/ipodcolor.h index fe6c7c129d..ab0bb37d11 100644 --- a/firmware/export/config/ipodcolor.h +++ b/firmware/export/config/ipodcolor.h @@ -140,6 +140,7 @@ /* 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 TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE /* define current usage levels */ #define CURRENT_NORMAL 69 /* ~10h (700mAh), see FS#9072 */ diff --git a/firmware/export/config/ipodmini1g.h b/firmware/export/config/ipodmini1g.h index 26cb0e8da2..d4e80b4bb7 100644 --- a/firmware/export/config/ipodmini1g.h +++ b/firmware/export/config/ipodmini1g.h @@ -156,6 +156,7 @@ :Qa * if USB/MAIN power is discernable and hardware doesn't compel charging */ #define HAVE_USB_CHARGING_ENABLE +#define TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE /* Define Apple remote tuner */ #define CONFIG_TUNER IPOD_REMOTE_TUNER diff --git a/firmware/export/config/ipodmini2g.h b/firmware/export/config/ipodmini2g.h index 73928f9c0c..ee9e679406 100644 --- a/firmware/export/config/ipodmini2g.h +++ b/firmware/export/config/ipodmini2g.h @@ -156,7 +156,7 @@ /* 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 TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE /* Define Apple remote tuner */ #define CONFIG_TUNER IPOD_REMOTE_TUNER diff --git a/firmware/export/config/ipodnano1g.h b/firmware/export/config/ipodnano1g.h index cc95a364fb..ca8cdbe1f3 100644 --- a/firmware/export/config/ipodnano1g.h +++ b/firmware/export/config/ipodnano1g.h @@ -144,6 +144,7 @@ /* 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 TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE #define CURRENT_NORMAL 32 /* MP3: ~9h playback out of 300mAh battery */ #define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ diff --git a/firmware/export/config/ipodvideo.h b/firmware/export/config/ipodvideo.h index 56238db755..6ad0685e10 100644 --- a/firmware/export/config/ipodvideo.h +++ b/firmware/export/config/ipodvideo.h @@ -160,6 +160,7 @@ /* 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 TARGET_USB_CHARGING_DEFAULT USB_CHARGING_FORCE /* define current usage levels */ #define CURRENT_NORMAL 24 /* 30MHz clock, LCD off, accessory supply on */