From 85635da429d67f9fdf1e19006c0f3b6f5b4bdacf Mon Sep 17 00:00:00 2001 From: Abhijeet Dharmapurikar Date: Tue, 16 Aug 2016 16:32:38 -0700 Subject: 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 --- include/linux/qpnp/qpnp-revid.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') 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; -- cgit v1.2.3