summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/powermgmt-target.h11
-rw-r--r--firmware/target/arm/as3525/sansa-fuzev2/powermgmt-fuzev2.c4
2 files changed, 12 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/powermgmt-target.h b/firmware/target/arm/as3525/powermgmt-target.h
index 50736b1e56..76fe8ee433 100644
--- a/firmware/target/arm/as3525/powermgmt-target.h
+++ b/firmware/target/arm/as3525/powermgmt-target.h
@@ -44,7 +44,7 @@
44#define BATT_CHG_I CHG_I_300MA 44#define BATT_CHG_I CHG_I_300MA
45#define CHARGER_TOTAL_TIMER (4*3600*2) 45#define CHARGER_TOTAL_TIMER (4*3600*2)
46 46
47#elif defined(SANSA_FUZE) || defined(SANSA_FUZEV2) /* FIXME */ 47#elif defined(SANSA_FUZE)
48 48
49/* Check if topped-off and monitor voltage while plugged. */ 49/* Check if topped-off and monitor voltage while plugged. */
50#define BATT_FULL_VOLTAGE 4160 50#define BATT_FULL_VOLTAGE 4160
@@ -53,6 +53,15 @@
53#define BATT_CHG_I CHG_I_200MA 53#define BATT_CHG_I CHG_I_200MA
54#define CHARGER_TOTAL_TIMER (4*3600*2) 54#define CHARGER_TOTAL_TIMER (4*3600*2)
55 55
56#elif defined(SANSA_FUZEV2)
57
58/* Check if topped-off and monitor voltage while plugged. */
59#define BATT_FULL_VOLTAGE 4200
60#define BATT_VAUTO_RECHARGE 4100
61#define BATT_CHG_V CHG_V_4_20V
62#define BATT_CHG_I CHG_I_200MA
63#define CHARGER_TOTAL_TIMER (4*3600*2)
64
56#elif defined(SANSA_C200V2) 65#elif defined(SANSA_C200V2)
57 66
58/* Check if topped-off and monitor voltage while plugged. */ 67/* Check if topped-off and monitor voltage while plugged. */
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/powermgmt-fuzev2.c b/firmware/target/arm/as3525/sansa-fuzev2/powermgmt-fuzev2.c
index 5b3447fd76..4aaa2c7793 100644
--- a/firmware/target/arm/as3525/sansa-fuzev2/powermgmt-fuzev2.c
+++ b/firmware/target/arm/as3525/sansa-fuzev2/powermgmt-fuzev2.c
@@ -44,8 +44,8 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
44/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ 44/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
45const unsigned short percent_to_volt_charge[11] = 45const unsigned short percent_to_volt_charge[11] =
46{ 46{
47 /* TODO: simple linear uncalibrated curve */ 47 3408, 3832, 3892, 3925, 3950, 3986, 4036, 4100, 4177, 4213, 4213
48 3300, 3390, 3480, 3570, 3660, 3750, 3840, 3930, 4020, 4110, 4200 48
49}; 49};
50#endif /* CONFIG_CHARGING */ 50#endif /* CONFIG_CHARGING */
51 51