summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2026-07-21 12:56:52 +0300
committerLee Jones <lee@kernel.org>2026-09-24 15:13:17 +0100
commit8b8035cbfbb8487087b87db78724a7b1a2ab1982 (patch)
treecb576a7a3ada7901d495b7672b4362de9ddaa13b /include/linux
parenta695b4265600c0d25d334712ca3894788cd249c8 (diff)
mfd: motorola-cpcap: Diverge configuration per-board
MFD have rigid subdevice structure which does not allow flexible dynamic subdevice linking. Address this by diverging CPCAP subdevice composition to take into account board specific configuration. Create a common and default subdevice composition, rename edit existing subdevice composition into cpcap_mapphone_devices since it targets mainly Mapphone board. Removed st,6556002 as it is no longer applicable to all cases and duplicates motorola,cpcap, which is used as the default composition. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Link: https://patch.msgid.link/20260721095654.429346-6-clamor95@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/motorola-cpcap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/motorola-cpcap.h b/include/linux/mfd/motorola-cpcap.h
index 981e5777deb7..1a85b06272c8 100644
--- a/include/linux/mfd/motorola-cpcap.h
+++ b/include/linux/mfd/motorola-cpcap.h
@@ -25,6 +25,12 @@
#define CPCAP_REVISION_2_0 0x10
#define CPCAP_REVISION_2_1 0x11
+enum cpcap_variant {
+ CPCAP_DEFAULT = 1,
+ CPCAP_MAPPHONE,
+ CPCAP_MAX
+};
+
/* CPCAP registers */
#define CPCAP_REG_INT1 0x0000 /* Interrupt 1 */
#define CPCAP_REG_INT2 0x0004 /* Interrupt 2 */