diff options
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/tps65910.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/tps65910.h b/include/linux/mfd/tps65910.h index e34886397f90..1c6c2860d1a6 100644 --- a/include/linux/mfd/tps65910.h +++ b/include/linux/mfd/tps65910.h | |||
@@ -659,6 +659,8 @@ | |||
659 | 659 | ||
660 | 660 | ||
661 | /*Register GPIO (0x80) register.RegisterDescription */ | 661 | /*Register GPIO (0x80) register.RegisterDescription */ |
662 | #define GPIO_SLEEP_MASK 0x80 | ||
663 | #define GPIO_SLEEP_SHIFT 7 | ||
662 | #define GPIO_DEB_MASK 0x10 | 664 | #define GPIO_DEB_MASK 0x10 |
663 | #define GPIO_DEB_SHIFT 4 | 665 | #define GPIO_DEB_SHIFT 4 |
664 | #define GPIO_PUEN_MASK 0x08 | 666 | #define GPIO_PUEN_MASK 0x08 |
@@ -742,6 +744,11 @@ | |||
742 | #define TPS65910_GPIO_STS BIT(1) | 744 | #define TPS65910_GPIO_STS BIT(1) |
743 | #define TPS65910_GPIO_SET BIT(0) | 745 | #define TPS65910_GPIO_SET BIT(0) |
744 | 746 | ||
747 | /* Max number of TPS65910/11 GPIOs */ | ||
748 | #define TPS65910_NUM_GPIO 6 | ||
749 | #define TPS65911_NUM_GPIO 9 | ||
750 | #define TPS6591X_MAX_NUM_GPIO 9 | ||
751 | |||
745 | /* Regulator Index Definitions */ | 752 | /* Regulator Index Definitions */ |
746 | #define TPS65910_REG_VRTC 0 | 753 | #define TPS65910_REG_VRTC 0 |
747 | #define TPS65910_REG_VIO 1 | 754 | #define TPS65910_REG_VIO 1 |
@@ -787,6 +794,7 @@ struct tps65910_board { | |||
787 | int irq_base; | 794 | int irq_base; |
788 | int vmbch_threshold; | 795 | int vmbch_threshold; |
789 | int vmbch2_threshold; | 796 | int vmbch2_threshold; |
797 | bool en_gpio_sleep[TPS6591X_MAX_NUM_GPIO]; | ||
790 | unsigned long regulator_ext_sleep_control[TPS65910_NUM_REGS]; | 798 | unsigned long regulator_ext_sleep_control[TPS65910_NUM_REGS]; |
791 | struct regulator_init_data *tps65910_pmic_init_data[TPS65910_NUM_REGS]; | 799 | struct regulator_init_data *tps65910_pmic_init_data[TPS65910_NUM_REGS]; |
792 | }; | 800 | }; |