diff options
author | Tom Cherry <tcherry@nvidia.com> | 2012-03-23 13:55:52 -0700 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-04-05 08:54:59 -0700 |
commit | 40aa4fb7ef812eb700cbce8ab94cf25f6ab9330c (patch) | |
tree | 652578b1629dcc6c863bda80bfcd2984f481996e /include/linux | |
parent | 1edb224e180de5780baf25da3ac24e5e5a78db9b (diff) |
mfd: tps80031: add option to enable internal pullup or pulldown
Bug 958089
(cherry-picked from commit 7f4c6d6b9dd2b06984b59dcd60d92026cab4c87c)
Reviewed-on: http://git-master/r/92053
Change-Id: I0f2bdb5482fdcb508808d2d58771d74a05b5597f
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/94117
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/tps80031.h | 31 |
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 { |