mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
power: axp288_charger: axp288 charger driver
This patch adds new power supply charger driver support for X-Power AXP288 PMIC integrated charger. This driver interfaces with the axp20x mfd driver as a cell and listens to extcon cable events for setting up charging. Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
committed by
Sebastian Reichel
parent
edd4ab0559
commit
843735b788
@@ -204,6 +204,13 @@ config CHARGER_DA9150
|
||||
This driver can also be built as a module. If so, the module will be
|
||||
called da9150-charger.
|
||||
|
||||
config AXP288_CHARGER
|
||||
tristate "X-Powers AXP288 Charger"
|
||||
depends on MFD_AXP20X && EXTCON_AXP288
|
||||
help
|
||||
Say yes here to have support X-Power AXP288 power management IC (PMIC)
|
||||
integrated charger.
|
||||
|
||||
config AXP288_FUEL_GAUGE
|
||||
tristate "X-Powers AXP288 Fuel Gauge"
|
||||
depends on MFD_AXP20X && IIO
|
||||
|
||||
@@ -66,3 +66,4 @@ obj-$(CONFIG_CHARGER_SMB347) += smb347-charger.o
|
||||
obj-$(CONFIG_CHARGER_TPS65090) += tps65090-charger.o
|
||||
obj-$(CONFIG_POWER_RESET) += reset/
|
||||
obj-$(CONFIG_AXP288_FUEL_GAUGE) += axp288_fuel_gauge.o
|
||||
obj-$(CONFIG_AXP288_CHARGER) += axp288_charger.o
|
||||
|
||||
941
drivers/power/axp288_charger.c
Normal file
941
drivers/power/axp288_charger.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -275,4 +275,11 @@ struct axp20x_fg_pdata {
|
||||
int thermistor_curve[MAX_THERM_CURVE_SIZE][2];
|
||||
};
|
||||
|
||||
struct axp20x_chrg_pdata {
|
||||
int max_cc;
|
||||
int max_cv;
|
||||
int def_cc;
|
||||
int def_cv;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_MFD_AXP20X_H */
|
||||
|
||||
Reference in New Issue
Block a user