arm: tegra: enterprise: enable pullup for preq1 on A03/A04
Tom Cherry [Fri, 23 Mar 2012 20:57:32 +0000 (13:57 -0700)]
Bug 958089

Reviewed-on: http://git-master/r/92054
(cherry picked from commit 92ff85f937cefc0fbe029607e23557adcf13f9fd)

Change-Id: I7e8815f758c2527da3ab635f102888e5a6d5e951
Signed-off-by: Tom Cherry <tcherry@nvidia.com>
Reviewed-on: http://git-master/r/94118
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/board-enterprise-power.c

index dc4fa6a..33d7198 100644 (file)
@@ -412,6 +412,13 @@ struct tps80031_clk32k_init_data clk32k_idata[] = {
        },
 };
 
+static struct tps80031_pupd_init_data pupd_idata[] = {
+       {
+               .input_pin = TPS80031_PREQ1,
+               .setting = TPS80031_PUPD_PULLUP,
+       },
+};
+
 static struct tps80031_platform_data tps_platform = {
        .irq_base       = ENT_TPS80031_IRQ_BASE,
        .gpio_base      = ENT_TPS80031_GPIO_BASE,
@@ -740,6 +747,8 @@ int __init enterprise_regulator_init(void)
        } else {
                tps_platform.num_subdevs = ARRAY_SIZE(tps80031_devs_a03);
                tps_platform.subdevs = tps80031_devs_a03;
+               tps_platform.pupd_init_data = pupd_idata;
+               tps_platform.pupd_init_data_size = ARRAY_SIZE(pupd_idata);
        }
 
        i2c_register_board_info(4, enterprise_regulators, 1);