mfd: twl: Fix TWL6032 phy vbus detection
authorAndreas Kemnade <andreas@kemnade.info>
Thu, 8 Dec 2022 21:57:23 +0000 (22:57 +0100)
committerLee Jones <lee@kernel.org>
Wed, 22 Feb 2023 08:25:51 +0000 (08:25 +0000)
commitccc91b3ed3f641efa8e9050c587ef509b0e2be3a
treec2a3a43825f5681cf4b754fb08c9af48223df06a
parent8b450dcff23aa254844492831a8e2b508a9d522d
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
drivers/mfd/twl-core.c
include/linux/mfd/twl.h