summaryrefslogtreecommitdiff
path: root/include/linux/mfd/mt6397
diff options
context:
space:
mode:
authorYassine Oudjana <y.oudjana@protonmail.com>2024-10-18 11:10:46 +0300
committerLee Jones <lee@kernel.org>2024-10-31 16:25:03 +0000
commit6e31bb8d3a63bb2c3efab2fb6bcfccac677a4581 (patch)
tree2646d54258e796b36d3a6c103e845df69ed4b17a /include/linux/mfd/mt6397
parent577f6c2c59d785037057c75ae1b1a13cd5854150 (diff)
mfd: mt6397: Add initial support for MT6328
The MT6328 PMIC is commonly used with the MT6735 SoC. Add initial support for this PMIC. Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20241018081050.23592-5-y.oudjana@protonmail.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux/mfd/mt6397')
-rw-r--r--include/linux/mfd/mt6397/core.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/linux/mfd/mt6397/core.h b/include/linux/mfd/mt6397/core.h
index 627487e26287..b774c3a4bb62 100644
--- a/include/linux/mfd/mt6397/core.h
+++ b/include/linux/mfd/mt6397/core.h
@@ -12,6 +12,7 @@
enum chip_id {
MT6323_CHIP_ID = 0x23,
+ MT6328_CHIP_ID = 0x30,
MT6331_CHIP_ID = 0x20,
MT6332_CHIP_ID = 0x20,
MT6357_CHIP_ID = 0x57,
@@ -65,11 +66,11 @@ struct mt6397_chip {
int irq;
struct irq_domain *irq_domain;
struct mutex irqlock;
- u16 wake_mask[2];
- u16 irq_masks_cur[2];
- u16 irq_masks_cache[2];
- u16 int_con[2];
- u16 int_status[2];
+ u16 wake_mask[3];
+ u16 irq_masks_cur[3];
+ u16 irq_masks_cache[3];
+ u16 int_con[3];
+ u16 int_status[3];
u16 chip_id;
void *irq_data;
};