aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mfd/sc27xx-pmic.h
diff options
context:
space:
mode:
authorBaolin Wang2020-02-17 10:26:16 +0800
committerLee Jones2020-03-30 07:35:28 +0100
commit2a7e7274f3d43d2a072cab25c0035dc994903bb9 (patch)
treef1b1dee5d3382e4d4fcdcd5c0ee7a4f0376352c4 /include/linux/mfd/sc27xx-pmic.h
parentba5836933a71160c40356dfbd493135a7134b069 (diff)
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>
Diffstat (limited to 'include/linux/mfd/sc27xx-pmic.h')
-rw-r--r--include/linux/mfd/sc27xx-pmic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/mfd/sc27xx-pmic.h b/include/linux/mfd/sc27xx-pmic.h
new file mode 100644
index 000000000000..57e45c0b3ae2
--- /dev/null
+++ b/include/linux/mfd/sc27xx-pmic.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_MFD_SC27XX_PMIC_H
+#define __LINUX_MFD_SC27XX_PMIC_H
+
+extern enum usb_charger_type sprd_pmic_detect_charger_type(struct device *dev);
+
+#endif /* __LINUX_MFD_SC27XX_PMIC_H */