annotate charging/c1xx/standard @ 3:21e5933fcc7c

C1xx charging configs created
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 16 Dec 2017 17:55:16 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # This is the "standard" charging config for Mot C1xx phones running
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 # FreeCalypso fw. The start threshold is set to "always" on the reasoning
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 # that if the user connects the charging power source (which is not USB
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 # and thus not required for computer connection), it means that she
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 # actually intends to charge the battery, the charge-to voltage is the
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 # full charge (charge the battery fully before going out), and the
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 # restart threshold is a reasonable setting so if the phone is left
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 # plugged into the charger for a long time, the user won't be surprised
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 # with a battery that has run down significantly after the completion
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 # of the initial charging cycle.
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 start-threshold always
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 restart-threshold 3900 # mV
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 charge-to-voltage 4200 # mV
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 overvoltage 4280 # mV
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 # For the current settings, keep in mind that C1xx phones use a current
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 # measurement resistor of 0.15R instead of TI's "canonical" value of 0.20R,
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 # hence the conversion factor between mA and ADC/DAC numbers changes
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 # accordingly. The CI current setting is based on what Motorola's fw
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 # has been observed to set, but the end current setting is our own.
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 ci-current 280 # DAC units, about 320 mA
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 end-current 88 # ADC units, about 100 mA
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 # Motorola's fw does not seem to use the I2V offset mechanism,
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 # but we use the same setting as Pirelli.
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28
21e5933fcc7c C1xx charging configs created
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 i2v-offset 0x18 # register setting