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)
commit2a7e7274f3d43d2a072cab25c0035dc994903bb9
treef1b1dee5d3382e4d4fcdcd5c0ee7a4f0376352c4
parentba5836933a71160c40356dfbd493135a7134b069
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]