diff mbox series

[v2,1/3] mfd: mt6397: add mt6358 register definitions for power key

Message ID 20210512151614.36996-2-mkorpershoek@baylibre.com (mailing list archive)
State New
Headers show
Series mfd: MT6358 PMIC button support | expand

Commit Message

Mattijs Korpershoek May 12, 2021, 3:16 p.m. UTC
To support power/home key detection, add definitions for
two more MT6358 PMIC registers:

- TOPSTATUS: homekey and powerkey debounce status
- TOP_RST_MISC: controls homekey,powerkey long press reset time

Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
 include/linux/mfd/mt6358/registers.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/include/linux/mfd/mt6358/registers.h b/include/linux/mfd/mt6358/registers.h
index 2ad0b312aa28..201139b12140 100644
--- a/include/linux/mfd/mt6358/registers.h
+++ b/include/linux/mfd/mt6358/registers.h
@@ -8,6 +8,8 @@ 
 /* PMIC Registers */
 #define MT6358_SWCID                          0xa
+#define MT6358_TOPSTATUS                      0x28
+#define MT6358_TOP_RST_MISC                   0x14c
 #define MT6358_MISC_TOP_INT_CON0              0x188
 #define MT6358_MISC_TOP_INT_STATUS0           0x194
 #define MT6358_TOP_INT_STATUS0                0x19e