OSDN Git Service

power: qpnp-fg-gen3: fix SRAM encodings
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Mon, 19 Sep 2016 18:17:59 +0000 (11:17 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 30 Sep 2016 17:41:55 +0000 (10:41 -0700)
commitff753ada17b532d46426a81ecaf78064b96ec35d
tree40f27999599e3e8ef7350a09fde5fd037745dfc2
parent3603cc87ba28802d0f8e12245cdce4f296b5b16b
power: qpnp-fg-gen3: fix SRAM encodings

There are some encoding changes to the following configurations
in pmi8998 SRAM. Update them.

For both v1.1 and v2.0,
- No sign bit for charge termination current

For v2.0,
- 6 bit encoding for empty voltage and vbatt_low

While at it, fix the SRAM byte location from byte 2 to byte 3 for
configuring empty voltage threshold in pmi8998v2.0.

CRs-Fixed: 1068592
Change-Id: I3a301aed1b23ab78aa86b24c11eb750502adab2f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Documentation/devicetree/bindings/power/qcom-charger/qpnp-fg-gen3.txt
drivers/power/qcom-charger/qpnp-fg-gen3.c