Skip to content

Commit 1c3d7b0

Browse files
wangbaolin719sre
authored andcommitted
power: supply: Add Spreadtrum SC2731 charger support
This patch adds the SC2731 PMIC switch charger support. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 8d1f326 commit 1c3d7b0

File tree

3 files changed

+512
-0
lines changed

3 files changed

+512
-0
lines changed

drivers/power/supply/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,4 +645,11 @@ config CHARGER_CROS_USBPD
645645
what is connected to USB PD ports from the EC and converts
646646
that into power_supply properties.
647647

648+
config CHARGER_SC2731
649+
tristate "Spreadtrum SC2731 charger driver"
650+
depends on MFD_SC27XX_PMIC || COMPILE_TEST
651+
help
652+
Say Y here to enable support for battery charging with SC2731
653+
PMIC chips.
654+
648655
endif # POWER_SUPPLY

drivers/power/supply/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,4 @@ obj-$(CONFIG_CHARGER_TPS65217) += tps65217_charger.o
8585
obj-$(CONFIG_AXP288_FUEL_GAUGE) += axp288_fuel_gauge.o
8686
obj-$(CONFIG_AXP288_CHARGER) += axp288_charger.o
8787
obj-$(CONFIG_CHARGER_CROS_USBPD) += cros_usbpd-charger.o
88+
obj-$(CONFIG_CHARGER_SC2731) += sc2731_charger.o

0 commit comments

Comments
 (0)