summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMattijs Korpershoek <mkorpershoek@baylibre.com>2021-05-06 12:41:13 +0300
committerLee Jones <lee.jones@linaro.org>2021-06-02 12:49:59 +0300
commit9a2601ebc2e909ec2260ca224d886936f56d41e7 (patch)
tree5df991a2e130c3bcf3e4a83946e65b5e2dc0339d /include
parenta933272041d852a1ef1c85f0c18b93e9999a41fa (diff)
downloadlinux-9a2601ebc2e909ec2260ca224d886936f56d41e7.tar.xz
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')
-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