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

Commit 955b3c66 authored by Shilpa Suresh's avatar Shilpa Suresh Committed by Gerrit - the friendly Code Review server
Browse files

drivers: Update the PMIC drivers for PM660



Bring in all the required PMIC drivers for SDM660 on 4.19 kernel
and make the required changes to successfully build these drivers.
Snapshot of the new drivers are added from the below commits
and required cleanup has been addressed :

From 4.14 kernel commit: 68b7015e5
qcom-rradc.c, qcom-tadc.c, qpnp-fg-gen3.c, qpnp-smb2.c,
qpnp-misc.c, smb1351-charger.c, qpnp-misc.h

From 4.9 kernel commit: ad779e060
smb-lib.c, smb-lib.h, smb-reg.h, smb138x-charger.c

qpnp-fg-gen3.c - additional changes from 4.9 pulled in.
smb-lib.c - additional changes from 4.14 pulled in.

Change-Id: I1c59dc0f41706fb10de82ff6bd6707758d351fd2
Signed-off-by: default avatarShilpa Suresh <sbsure@codeaurora.org>
parent c77acc02
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -587,6 +587,30 @@ config QCOM_SPMI_ADC5
	  To compile this driver as a module, choose M here: the module will
	  be called qcom-spmi-adc5.

config QCOM_TADC
	tristate "Qualcomm Technologies, Inc. TADC driver"
	depends on MFD_I2C_PMIC
	help
	  Say yes here to support the Qualcomm Technologies, Inc. telemetry ADC.
	  The TADC provides battery temperature, skin temperature,
	  die temperature, battery voltage, battery current, input voltage,
	  input current, and OTG current.

config QCOM_RRADC
	tristate "Qualcomm Technologies Inc. PMIC Round robin ADC"
	depends on SPMI
	select REGMAP_SPMI
	help
	  This is the PMIC Round Robin ADC driver.

	  The driver supports multiple channels read used for telemetry
	  and supports clients to read batt_id, batt_therm, PMIC die
	  temperature, USB_IN and DC_IN voltage and current.
	  The RRADC is a 10-bit ADC.

	  To compile this driver as a module, choose M here: the module will
	  be called qcom-rradc.

config QCOM_SPMI_IADC
	tristate "Qualcomm SPMI PMIC current ADC"
	depends on SPMI
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@ obj-$(CONFIG_MXS_LRADC_ADC) += mxs-lradc-adc.o
obj-$(CONFIG_NAU7802) += nau7802.o
obj-$(CONFIG_PALMAS_GPADC) += palmas_gpadc.o
obj-$(CONFIG_QCOM_SPMI_ADC5) += qcom-spmi-adc5.o
obj-$(CONFIG_QCOM_TADC) += qcom-tadc.o
obj-$(CONFIG_QCOM_RRADC) += qcom-rradc.o
obj-$(CONFIG_QCOM_SPMI_IADC) += qcom-spmi-iadc.o
obj-$(CONFIG_QCOM_VADC_COMMON) += qcom-vadc-common.o
obj-$(CONFIG_QCOM_SPMI_VADC) += qcom-spmi-vadc.o
+1223 −0

File added.

Preview size limit exceeded, changes collapsed.

+1315 −0

File added.

Preview size limit exceeded, changes collapsed.

+9 −0
Original line number Diff line number Diff line
@@ -551,6 +551,15 @@ config MEMORY_STATE_TIME
	help
	  Memory time statistics exported to /sys/kernel/memory_state_time

config QPNP_MISC
	tristate "QPNP Misc Peripheral"
	depends on MFD_SPMI_PMIC
	help
	  Say 'y' here to include support for the QTI QPNP MISC
	  peripheral. The MISC peripheral holds the USB ID interrupt
	  and the driver provides an API to check if this interrupt
	  is available on the current PMIC chip.

config OKL4_USER_VIRQ
	tristate "User space accessible OKL4 virtual interrupts"
	depends on OKL4_GUEST
Loading