diff options
Diffstat (limited to 'firmware/target/hosted/agptek')
-rw-r--r-- | firmware/target/hosted/agptek/powermgmt-agptek.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/hosted/agptek/powermgmt-agptek.c b/firmware/target/hosted/agptek/powermgmt-agptek.c index 6bfccb4115..bd7e4157d6 100644 --- a/firmware/target/hosted/agptek/powermgmt-agptek.c +++ b/firmware/target/hosted/agptek/powermgmt-agptek.c | |||
@@ -32,18 +32,16 @@ const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = | |||
32 | 3400 | 32 | 3400 |
33 | }; | 33 | }; |
34 | 34 | ||
35 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled | 35 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ |
36 | * NOTE: not calibrated simple linear scale for now | ||
37 | */ | ||
38 | const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = | 36 | const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = |
39 | { | 37 | { |
40 | { 3400, 3480, 3560, 3640, 3720, 3800, 3880, 3960, 4040, 4120, 4200 } | 38 | { 3400, 3675, 3715, 3750, 3775, 3810, 3850, 3915, 3985, 4060, 4155 } |
41 | }; | 39 | }; |
42 | 40 | ||
43 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ | 41 | /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ |
44 | const unsigned short const percent_to_volt_charge[11] = | 42 | const unsigned short const percent_to_volt_charge[11] = |
45 | { | 43 | { |
46 | 3450, 3670, 3721, 3751, 3782, 3821, 3876, 3941, 4034, 4125, 4200 | 44 | 3485, 3780, 3836, 3857, 3890, 3930, 3986, 4062, 4158, 4185, 4196 |
47 | }; | 45 | }; |
48 | 46 | ||
49 | unsigned int power_input_status(void) | 47 | unsigned int power_input_status(void) |