aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/mfd/mt6358/registers.h
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2021-05-06 11:41:13 +0200
committerLee Jones <lee.jones@linaro.org>2021-06-02 10:49:59 +0100
commit9a2601ebc2e909ec2260ca224d886936f56d41e7 (patch)
tree5df991a2e130c3bcf3e4a83946e65b5e2dc0339d /include/linux/mfd/mt6358/registers.h
parentmfd: mp2629: Select MFD_CORE to fix build error (diff)
downloadwireguard-linux-9a2601ebc2e909ec2260ca224d886936f56d41e7.tar.xz
wireguard-linux-9a2601ebc2e909ec2260ca224d886936f56d41e7.zip
mfd: mt6397: Add MT6358 register definitions for power key
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> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/mt6358/registers.h')
-rw-r--r--include/linux/mfd/mt6358/registers.h2
1 files changed, 2 insertions, 0 deletions
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