|
12 | 12 | #include <linux/mfd/mt6331/registers.h>
|
13 | 13 | #include <linux/mfd/mt6357/registers.h>
|
14 | 14 | #include <linux/mfd/mt6358/registers.h>
|
| 15 | +#include <linux/mfd/mt6359/registers.h> |
15 | 16 | #include <linux/mfd/mt6397/core.h>
|
16 | 17 | #include <linux/mfd/mt6397/registers.h>
|
17 | 18 | #include <linux/module.h>
|
@@ -117,6 +118,19 @@ static const struct mtk_pmic_regs mt6358_regs = {
|
117 | 118 | .rst_lprst_mask = MTK_PMIC_RST_DU_MASK,
|
118 | 119 | };
|
119 | 120 |
|
| 121 | +static const struct mtk_pmic_regs mt6359_regs = { |
| 122 | + .keys_regs[MTK_PMIC_PWRKEY_INDEX] = |
| 123 | + MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS, |
| 124 | + 0x2, MT6359_PSC_TOP_INT_CON0, 0x5, |
| 125 | + MTK_PMIC_PWRKEY_RST), |
| 126 | + .keys_regs[MTK_PMIC_HOMEKEY_INDEX] = |
| 127 | + MTK_PMIC_KEYS_REGS(MT6359_TOPSTATUS, |
| 128 | + 0x8, MT6359_PSC_TOP_INT_CON0, 0xa, |
| 129 | + MTK_PMIC_HOMEKEY_RST), |
| 130 | + .pmic_rst_reg = MT6359_TOP_RST_MISC, |
| 131 | + .rst_lprst_mask = MTK_PMIC_RST_DU_MASK, |
| 132 | +}; |
| 133 | + |
120 | 134 | struct mtk_pmic_keys_info {
|
121 | 135 | struct mtk_pmic_keys *keys;
|
122 | 136 | const struct mtk_pmic_keys_regs *regs;
|
@@ -296,6 +310,9 @@ static const struct of_device_id of_mtk_pmic_keys_match_tbl[] = {
|
296 | 310 | }, {
|
297 | 311 | .compatible = "mediatek,mt6358-keys",
|
298 | 312 | .data = &mt6358_regs,
|
| 313 | + }, { |
| 314 | + .compatible = "mediatek,mt6359-keys", |
| 315 | + .data = &mt6359_regs, |
299 | 316 | }, {
|
300 | 317 | /* sentinel */
|
301 | 318 | }
|
|
0 commit comments