mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
power: supply: mt6370: Add MediaTek MT6370 charger driver
MediaTek MT6370 is a SubPMIC consisting of a single cell battery charger with ADC monitoring, RGB LEDs, dual channel flashlight, WLED backlight driver, display bias voltage supply, one general purpose LDO, and the USB Type-C & PD controller complies with the latest USB Type-C and PD standards. Add support for the MediaTek MT6370 Charger driver. The charger module of MT6370 supports High-Accuracy Voltage/Current Regulation, Average Input Current Regulation, Battery Temperature Sensing, Over-Temperature Protection, DPDM Detection for BC1.2. Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: ChiaEn Wu <chiaen_wu@richtek.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
committed by
Sebastian Reichel
parent
689af5da85
commit
233cb8a47d
@@ -619,6 +619,20 @@ config CHARGER_MT6360
|
||||
Average Input Current Regulation, Battery Temperature Sensing,
|
||||
Over-Temperature Protection, DPDM Detection for BC1.2.
|
||||
|
||||
config CHARGER_MT6370
|
||||
tristate "MediaTek MT6370 Charger Driver"
|
||||
depends on MFD_MT6370
|
||||
depends on REGULATOR
|
||||
select LINEAR_RANGES
|
||||
help
|
||||
Say Y here to enable MT6370 Charger Part.
|
||||
The device supports High-Accuracy Voltage/Current Regulation,
|
||||
Average Input Current Regulation, Battery Temperature Sensing,
|
||||
Over-Temperature Protection, DPDM Detection for BC1.2.
|
||||
|
||||
This driver can also be built as a module. If so, the module
|
||||
will be called "mt6370-charger".
|
||||
|
||||
config CHARGER_QCOM_SMBB
|
||||
tristate "Qualcomm Switch-Mode Battery Charger and Boost"
|
||||
depends on MFD_SPMI_PMIC || COMPILE_TEST
|
||||
|
||||
@@ -82,6 +82,7 @@ obj-$(CONFIG_CHARGER_MAX8997) += max8997_charger.o
|
||||
obj-$(CONFIG_CHARGER_MAX8998) += max8998_charger.o
|
||||
obj-$(CONFIG_CHARGER_MP2629) += mp2629_charger.o
|
||||
obj-$(CONFIG_CHARGER_MT6360) += mt6360_charger.o
|
||||
obj-$(CONFIG_CHARGER_MT6370) += mt6370-charger.o
|
||||
obj-$(CONFIG_CHARGER_QCOM_SMBB) += qcom_smbb.o
|
||||
obj-$(CONFIG_CHARGER_BQ2415X) += bq2415x_charger.o
|
||||
obj-$(CONFIG_CHARGER_BQ24190) += bq24190_charger.o
|
||||
|
||||
961
drivers/power/supply/mt6370-charger.c
Normal file
961
drivers/power/supply/mt6370-charger.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user