From 555299af9f0ee71c1ad86a6c6846748861be458b Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 10 Mar 2021 18:10:00 -0500 Subject: hosted: Consolidate the code that polls the battery charging status affects all hiby targets, fiiom3k, and ibasso dx50/dx90 As well as deduplicating a small pile of code, this also implements hysteresis so we're not doing a sysfs read/lookup multiple times back-to-back every time the power management tick fires. Change-Id: I2f7672acbb36341becf67e07960c24c681270d09 --- firmware/export/config/ibassodx90.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/export/config/ibassodx90.h') diff --git a/firmware/export/config/ibassodx90.h b/firmware/export/config/ibassodx90.h index 7071f50959..0b33665eb4 100644 --- a/firmware/export/config/ibassodx90.h +++ b/firmware/export/config/ibassodx90.h @@ -140,3 +140,7 @@ /* No special storage */ #define CONFIG_STORAGE STORAGE_HOSTFS #define HAVE_STORAGE_FLUSH + +/* More common stuff */ +#define BATTERY_DEV_NAME "battery" +#define POWER_DEV_NAME "usb" -- cgit v1.2.3