summaryrefslogtreecommitdiff
path: root/include/linux/mfd/tps80031.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mfd/tps80031.h')
-rw-r--r--include/linux/mfd/tps80031.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/mfd/tps80031.h b/include/linux/mfd/tps80031.h
index 1802dfefef05..9623a873d311 100644
--- a/include/linux/mfd/tps80031.h
+++ b/include/linux/mfd/tps80031.h
@@ -132,6 +132,30 @@ enum tps80031_ext_control {
PWR_ON_ON_SLEEP = 0x00000010,
};
+enum tps80031_pupd_pins {
+ TPS80031_PREQ1 = 0,
+ TPS80031_PREQ2A,
+ TPS80031_PREQ2B,
+ TPS80031_PREQ2C,
+ TPS80031_PREQ3,
+ TPS80031_NRES_WARM,
+ TPS80031_PWM_FORCE,
+ TPS80031_CHRG_EXT_CHRG_STATZ,
+ TPS80031_SIM,
+ TPS80031_MMC,
+ TPS80031_GPADC_START,
+ TPS80031_DVSI2C_SCL,
+ TPS80031_DVSI2C_SDA,
+ TPS80031_CTLI2C_SCL,
+ TPS80031_CTLI2C_SDA,
+};
+
+enum tps80031_pupd_settings {
+ TPS80031_PUPD_NORMAL,
+ TPS80031_PUPD_PULLDOWN,
+ TPS80031_PUPD_PULLUP,
+};
+
struct tps80031_subdev_info {
int id;
const char *name;
@@ -154,6 +178,11 @@ struct tps80031_gpio_init_data {
unsigned long ext_ctrl_flag;
};
+struct tps80031_pupd_init_data {
+ int input_pin;
+ int setting;
+};
+
struct tps80031_platform_data {
int num_subdevs;
struct tps80031_subdev_info *subdevs;
@@ -165,6 +194,8 @@ struct tps80031_platform_data {
struct tps80031_clk32k_init_data *clk32k_init_data;
int clk32k_init_data_size;
bool use_power_off;
+ struct tps80031_pupd_init_data *pupd_init_data;
+ int pupd_init_data_size;
};
struct tps80031_bg_platform_data {