summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorAndreas Kemnade <andreas@kemnade.info>2022-12-08 22:57:23 +0100
committerLee Jones <lee@kernel.org>2023-02-22 08:25:51 +0000
commitccc91b3ed3f641efa8e9050c587ef509b0e2be3a (patch)
treec2a3a43825f5681cf4b754fb08c9af48223df06a /include/linux/mfd
parent8b450dcff23aa254844492831a8e2b508a9d522d (diff)
downloadlinux-ccc91b3ed3f641efa8e9050c587ef509b0e2be3a.tar.gz
linux-ccc91b3ed3f641efa8e9050c587ef509b0e2be3a.tar.bz2
linux-ccc91b3ed3f641efa8e9050c587ef509b0e2be3a.zip
mfd: twl: Fix TWL6032 phy vbus detection
TWL6032 has a few charging registers prepended before the charging registers the TWL6030 has. To be able to use common register defines declare the additional registers as additional module. At the moment this affects the access to CHARGERUSB_CTRL1 in phy-twl6030-usb. Without this patch, it is accessing the wrong register on TWL6032. The consequence is that presence of Vbus is not reported. Cc: Bin Liu <b-liu@ti.com> Cc: Tony Lindgren <tony@atomide.com> Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20221208215723.217557-1-andreas@kemnade.info
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/twl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/twl.h b/include/linux/mfd/twl.h
index eaa233038254..6e3d99b7a0ee 100644
--- a/include/linux/mfd/twl.h
+++ b/include/linux/mfd/twl.h
@@ -69,6 +69,8 @@ enum twl6030_module_ids {
TWL6030_MODULE_GPADC,
TWL6030_MODULE_GASGAUGE,
+ /* A few extra registers before the registers shared with the 6030 */
+ TWL6032_MODULE_CHARGE,
TWL6030_MODULE_LAST,
};