[PATCH v2 2/6] power: supply: max8997_charger: Set CHARGER current limit
Lee Jones
lee.jones at linaro.org
Mon Dec 21 04:59:12 EST 2020
On Mon, 21 Dec 2020, Timon Baetz wrote:
> Register for extcon notification and set charging current depending on
> the detected cable type. Current values are taken from vendor kernel,
> where most charger types end up setting 650mA [0].
>
> Also enable and disable the CHARGER regulator based on extcon events.
>
> [0] https://github.com/krzk/linux-vendor-backup/blob/samsung/galaxy-s2-epic-4g-touch-sph-d710-exynos4210-dump/drivers/misc/max8997-muic.c#L1675-L1678
>
> Signed-off-by: Timon Baetz <timon.baetz at protonmail.com>
> ---
> drivers/mfd/max8997.c | 4 +-
Please split this out into a separate patch.
> drivers/power/supply/max8997_charger.c | 94 ++++++++++++++++++++++++++
> 2 files changed, 96 insertions(+), 2 deletions(-)
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
More information about the linux-arm-kernel
mailing list