summaryrefslogtreecommitdiff
path: root/include/linux/qpnp
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-08-16 16:32:38 -0700
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-08-17 10:49:58 -0700
commit85635da429d67f9fdf1e19006c0f3b6f5b4bdacf (patch)
treeabbb72e483c417cf4f4dab66e310e14a6a5bafd8 /include/linux/qpnp
parentc5984ec85c1e095f932f2fdaf5f327a2c1480c9b (diff)
qcom-charger: smb138x: fix buck damage on v1.1 hardware
Buck damage was observed because the OOB comparator activated when HSFET was on, causing a direct short from VBUS to ground. Fix this on V1.1 by increasing the OOB comparator threshold. On 2.0 this is fixed by ensuring the OOB comparator activates only after HSFET minimum on time. This in turn guarantees that HSFET and LSFET won't be on at the same time. Since the driver needs to detect the version of the smb, make use of the qpnp-revid module. CRs-Fixed: 1055113 Change-Id: I0a7946db2f1bdacf1974fb508da46f2ed4dadadc Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'include/linux/qpnp')
-rw-r--r--include/linux/qpnp/qpnp-revid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/qpnp/qpnp-revid.h b/include/linux/qpnp/qpnp-revid.h
index 388296c53460..b13ebe50c3d6 100644
--- a/include/linux/qpnp/qpnp-revid.h
+++ b/include/linux/qpnp/qpnp-revid.h
@@ -201,6 +201,9 @@
/* PMI8937 */
#define PMI8937_SUBTYPE 0x37
+/* SMB1381 */
+#define SMB1381_SUBTYPE 0x17
+
struct pmic_revid_data {
u8 rev1;
u8 rev2;