]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: sc27xx: Add USB charger type detection support
authorBaolin Wang <baolin.wang7@gmail.com>
Mon, 17 Feb 2020 02:26:16 +0000 (10:26 +0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 30 Mar 2020 06:35:28 +0000 (07:35 +0100)
commite97958319458076c05ddf2ba0643f2877fbabdff
treef1b1dee5d3382e4d4fcdcd5c0ee7a4f0376352c4
parentd4b6fa664c2b64f938ef3b40f735a6a3137d9bc7
mfd: sc27xx: Add USB charger type detection support

The Spreadtrum SC27XX series PMICs supply the USB charger type detection
function, and related registers are located on the PMIC global registers
region, thus we implement and export this function in the MFD driver for
users to get the USB charger type.

Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sprd-sc27xx-spi.c
include/linux/mfd/sc27xx-pmic.h [new file with mode: 0644]