summaryrefslogtreecommitdiff
path: root/firmware/target/mips
diff options
context:
space:
mode:
authorDana Conrad <dconrad@fastmail.com>2021-09-18 12:31:20 -0500
committerSolomon Peachy <pizza@shaftnet.org>2021-09-26 18:27:53 -0400
commit6d98c9e6b249465c9fff17c5600f4e7a40c3085c (patch)
tree77f2c15d23cb70ab025bdcccaee46fd872233892 /firmware/target/mips
parent38b2648f488fc1d91daa1fcc6f615068f1e4fc9c (diff)
downloadrockbox-6d98c9e6b249465c9fff17c5600f4e7a40c3085c.tar.gz
rockbox-6d98c9e6b249465c9fff17c5600f4e7a40c3085c.zip
ErosQ Native: Adjust battery % scale
Adjust the battery scale to be a little better. I've set the 100% (discharge) point to be where the battery sags to when it is done charging but still plugged in. Not quite sure how best to set the charge scale, it's just equal to the discharge scale for now. Change-Id: I9a2730c0b2051300af9eeddb4f67164f38a29002
Diffstat (limited to 'firmware/target/mips')
-rw-r--r--firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
index c466db66b1..325893a4b7 100644
--- a/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
+++ b/firmware/target/mips/ingenic_x1000/erosqnative/power-erosqnative.c
@@ -36,7 +36,7 @@ const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
36 3470 36 3470
37}; 37};
38 38
39/* the OF shuts down at this voltage */ 39/* The OF shuts down at this voltage */
40const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = 40const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
41{ 41{
42 3400 42 3400
@@ -45,13 +45,13 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
45/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ 45/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
46const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = 46const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
47{ 47{
48 { 3400, 3639, 3697, 3723, 3757, 3786, 3836, 3906, 3980, 4050, 4159 } 48 { 3400, 3477, 3540, 3578, 3617, 3674, 3771, 3856, 3936, 4016, 4117 }
49}; 49};
50 50
51/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ 51/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
52const unsigned short percent_to_volt_charge[11] = 52const unsigned short percent_to_volt_charge[11] =
53{ 53{
54 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 54 3400, 3477, 3540, 3578, 3617, 3674, 3771, 3856, 3936, 4016, 4117
55}; 55};
56 56
57void power_init(void) 57void power_init(void)