Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca423450 authored by Arulpandiyan Vadivel's avatar Arulpandiyan Vadivel Committed by Sundara Vinayagam
Browse files

power: smb1360: Add snapshot of smb1360 charger



Initial snapshot of smb1360 driver is taken from msm-3.18
kernel version @ commit f8b6819d0432d6 ("msm: ipa: Fix to
handle NULL pointer dereference")

Add PMIC charger and fuel gauge drivers to msm-4.9. The power
directory structure has changed in kernel version 4.9. Align
smb1360 driver from msm-3.18 kernel with new directory structure.

Since USB driver uses the extcon framework for communication,
extcon support and USB power supply support is added.

Change-Id: Iaef0ef4ac9a48b09dde8bd9067ed0495f20e00d8
Signed-off-by: default avatarArulpandiyan Vadivel <avadiv@codeaurora.org>
Signed-off-by: default avatarSundara Vinayagam <sundvi@codeaurora.org>
parent d90fd06d
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -29,6 +29,17 @@ config SMB135X_CHARGER
	  The driver reports the charger status via the power supply framework.
	  A charger status change triggers an IRQ via the device STAT pin.

config SMB1360_CHARGER_FG
	tristate "SMB1360 Charger and Fuel Gauge"
	depends on I2C
	help
	  Say Y to include support for SMB1360 Charger and Fuel Gauge.
	  SMB1360 is a single path switching mode charger capable of charging
	  the battery with 1.5Amps of current. It supports a fuel gauge which
	  uses voltage and coloumb counting for state of charge reporting.
	  The driver reports the status via the power supply framework.
	  A status change triggers an IRQ via the device STAT pin.

config SMB1355_SLAVE_CHARGER
	tristate "SMB1355 Slave Battery Charger"
	depends on MFD_I2C_PMIC
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ obj-$(CONFIG_QPNP_FG) += qpnp-fg.o
obj-$(CONFIG_QPNP_FG_GEN3)     += qpnp-fg-gen3.o fg-memif.o fg-util.o
obj-$(CONFIG_QPNP_SMBCHARGER)	+= qpnp-smbcharger.o pmic-voter.o
obj-$(CONFIG_SMB135X_CHARGER)   += smb135x-charger.o pmic-voter.o
obj-$(CONFIG_SMB1360_CHARGER_FG) += smb1360-charger-fg.o
obj-$(CONFIG_SMB1355_SLAVE_CHARGER)   += smb1355-charger.o pmic-voter.o
obj-$(CONFIG_SMB1351_USB_CHARGER) += smb1351-charger.o pmic-voter.o battery.o
obj-$(CONFIG_QPNP_SMB2)		+= step-chg-jeita.o battery.o qpnp-smb2.o smb-lib.o pmic-voter.o storm-watch.o
+5372 −0

File added.

Preview size limit exceeded, changes collapsed.