diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-03-10 18:10:00 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-03-10 18:29:29 -0500 |
commit | 555299af9f0ee71c1ad86a6c6846748861be458b (patch) | |
tree | 2237e2991231cf529420f52c10a91912ed94bf06 /firmware/SOURCES | |
parent | b3b8310e4e07902a8280a120948f0c32c85e67de (diff) | |
download | rockbox-555299af9f0ee71c1ad86a6c6846748861be458b.tar.gz rockbox-555299af9f0ee71c1ad86a6c6846748861be458b.zip |
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
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r-- | firmware/SOURCES | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES index 36a125783c..430eb4119b 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES | |||
@@ -127,6 +127,7 @@ target/hosted/sysfs.c | |||
127 | target/hosted/backlight-unix.c | 127 | target/hosted/backlight-unix.c |
128 | target/hosted/system-hosted.c | 128 | target/hosted/system-hosted.c |
129 | target/hosted/lcd-linuxfb.c | 129 | target/hosted/lcd-linuxfb.c |
130 | target/hosted/power-linux.c | ||
130 | #endif | 131 | #endif |
131 | 132 | ||
132 | #if defined(AGPTEK_ROCKER) && !defined(SIMULATOR) | 133 | #if defined(AGPTEK_ROCKER) && !defined(SIMULATOR) |
@@ -1919,6 +1920,7 @@ target/hosted/lc-unix.c | |||
1919 | target/hosted/ibasso/audiohw-ibasso.c | 1920 | target/hosted/ibasso/audiohw-ibasso.c |
1920 | target/hosted/ibasso/backlight-ibasso.c | 1921 | target/hosted/ibasso/backlight-ibasso.c |
1921 | target/hosted/ibasso/button-ibasso.c | 1922 | target/hosted/ibasso/button-ibasso.c |
1923 | target/hosted/power-linux.c | ||
1922 | #ifdef DEBUG | 1924 | #ifdef DEBUG |
1923 | target/hosted/ibasso/debug-ibasso.c | 1925 | target/hosted/ibasso/debug-ibasso.c |
1924 | #endif | 1926 | #endif |