FS#9295: Detect external power supply for ipod 1st & 2nd gen (Mark Fawcus)

Change-Id: I7b64c37ead60152c8a12556cfa344e225abc1980
This commit is contained in:
Solomon Peachy 2020-08-06 09:09:01 -04:00
parent 6f92c498c4
commit 5d1d431b97
2 changed files with 3 additions and 3 deletions

View file

@ -131,8 +131,8 @@
#define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE
/* Hardware controlled charging? FIXME */
//#define CONFIG_CHARGING CHARGING_SIMPLE
/* Hardware controlled charging */
#define CONFIG_CHARGING CHARGING_SIMPLE
/* FIXME: Don't shutdown on low battery until we have proper suspend. */
#define NO_LOW_BATTERY_SHUTDOWN

View file

@ -66,7 +66,7 @@ unsigned int power_input_status(void)
if ((GPIOD_INPUT_VAL & 0x08) != 0)
status |= POWER_INPUT_USB_CHARGER;
/* */
#elif defined(IPOD_3G)
#elif defined(IPOD_3G) || defined(IPOD_1G2G)
/* firewire power */
if ((GPIOC_INPUT_VAL & 0x10) == 0)
status = POWER_INPUT_MAIN_CHARGER;