diff options
| -rw-r--r-- | drivers/mfd/hi655x-pmic.c | 16 | ||||
| -rw-r--r-- | include/linux/mfd/hi655x-pmic.h | 25 |
2 files changed, 25 insertions, 16 deletions
diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c index 68ab3701cbf3..072e6feab6e9 100644 --- a/drivers/mfd/hi655x-pmic.c +++ b/drivers/mfd/hi655x-pmic.c | |||
| @@ -29,14 +29,14 @@ static const struct mfd_cell hi655x_pmic_devs[] = { | |||
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | static const struct regmap_irq hi655x_irqs[] = { | 31 | static const struct regmap_irq hi655x_irqs[] = { |
| 32 | { .reg_offset = 0, .mask = OTMP_D1R_INT }, | 32 | { .reg_offset = 0, .mask = OTMP_D1R_INT_MASK }, |
| 33 | { .reg_offset = 0, .mask = VSYS_2P5_R_INT }, | 33 | { .reg_offset = 0, .mask = VSYS_2P5_R_INT_MASK }, |
| 34 | { .reg_offset = 0, .mask = VSYS_UV_D3R_INT }, | 34 | { .reg_offset = 0, .mask = VSYS_UV_D3R_INT_MASK }, |
| 35 | { .reg_offset = 0, .mask = VSYS_6P0_D200UR_INT }, | 35 | { .reg_offset = 0, .mask = VSYS_6P0_D200UR_INT_MASK }, |
| 36 | { .reg_offset = 0, .mask = PWRON_D4SR_INT }, | 36 | { .reg_offset = 0, .mask = PWRON_D4SR_INT_MASK }, |
| 37 | { .reg_offset = 0, .mask = PWRON_D20F_INT }, | 37 | { .reg_offset = 0, .mask = PWRON_D20F_INT_MASK }, |
| 38 | { .reg_offset = 0, .mask = PWRON_D20R_INT }, | 38 | { .reg_offset = 0, .mask = PWRON_D20R_INT_MASK }, |
| 39 | { .reg_offset = 0, .mask = RESERVE_INT }, | 39 | { .reg_offset = 0, .mask = RESERVE_INT_MASK }, |
| 40 | }; | 40 | }; |
| 41 | 41 | ||
| 42 | static const struct regmap_irq_chip hi655x_irq_chip = { | 42 | static const struct regmap_irq_chip hi655x_irq_chip = { |
diff --git a/include/linux/mfd/hi655x-pmic.h b/include/linux/mfd/hi655x-pmic.h index dbbe9a644622..62f03c2b1bb0 100644 --- a/include/linux/mfd/hi655x-pmic.h +++ b/include/linux/mfd/hi655x-pmic.h | |||
| @@ -34,14 +34,23 @@ | |||
| 34 | #define PMU_VER_START 0x10 | 34 | #define PMU_VER_START 0x10 |
| 35 | #define PMU_VER_END 0x38 | 35 | #define PMU_VER_END 0x38 |
| 36 | 36 | ||
| 37 | #define RESERVE_INT BIT(7) | 37 | #define RESERVE_INT 7 |
| 38 | #define PWRON_D20R_INT BIT(6) | 38 | #define PWRON_D20R_INT 6 |
| 39 | #define PWRON_D20F_INT BIT(5) | 39 | #define PWRON_D20F_INT 5 |
| 40 | #define PWRON_D4SR_INT BIT(4) | 40 | #define PWRON_D4SR_INT 4 |
| 41 | #define VSYS_6P0_D200UR_INT BIT(3) | 41 | #define VSYS_6P0_D200UR_INT 3 |
| 42 | #define VSYS_UV_D3R_INT BIT(2) | 42 | #define VSYS_UV_D3R_INT 2 |
| 43 | #define VSYS_2P5_R_INT BIT(1) | 43 | #define VSYS_2P5_R_INT 1 |
| 44 | #define OTMP_D1R_INT BIT(0) | 44 | #define OTMP_D1R_INT 0 |
| 45 | |||
| 46 | #define RESERVE_INT_MASK BIT(RESERVE_INT) | ||
| 47 | #define PWRON_D20R_INT_MASK BIT(PWRON_D20R_INT) | ||
| 48 | #define PWRON_D20F_INT_MASK BIT(PWRON_D20F_INT) | ||
| 49 | #define PWRON_D4SR_INT_MASK BIT(PWRON_D4SR_INT) | ||
| 50 | #define VSYS_6P0_D200UR_INT_MASK BIT(VSYS_6P0_D200UR_INT) | ||
| 51 | #define VSYS_UV_D3R_INT_MASK BIT(VSYS_UV_D3R_INT) | ||
| 52 | #define VSYS_2P5_R_INT_MASK BIT(VSYS_2P5_R_INT) | ||
| 53 | #define OTMP_D1R_INT_MASK BIT(OTMP_D1R_INT) | ||
| 45 | 54 | ||
| 46 | struct hi655x_pmic { | 55 | struct hi655x_pmic { |
| 47 | struct resource *res; | 56 | struct resource *res; |
