diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-11-10 19:48:02 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2013-11-11 22:18:26 -0800 |
commit | d40196892e64137bcebc6cfdd9e94fd64f95e26e (patch) | |
tree | a3b2a49d873fca8a532b166b92d03c4d9e74098c /arch/arm/mach-tegra/board-laguna-power.c | |
parent | b2c697aecc741c3079b45d10dd6643aa82811c5d (diff) |
ARM: tegra: pass AS3722 pincontrol platform data
Ardbeg and Laguna platform uses the AS3722 device.
Pass the default configuration of this device for
these platforms.
Change-Id: Ifa77a0983110fcf6c95cf80dd1e60e105d58a745
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/328688
Diffstat (limited to 'arch/arm/mach-tegra/board-laguna-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-laguna-power.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-laguna-power.c b/arch/arm/mach-tegra/board-laguna-power.c index 81422251f31b..261fdac90e5c 100644 --- a/arch/arm/mach-tegra/board-laguna-power.c +++ b/arch/arm/mach-tegra/board-laguna-power.c @@ -272,6 +272,17 @@ static struct as3722_gpio_config as3722_gpio_cfgs[] = { }, }; +static struct as3722_pinctrl_platform_data as3722_pctrl_pdata[] = { + AS3722_PIN_CONTROL("gpio0", "gpio", NULL, NULL, NULL, "output-low"), + AS3722_PIN_CONTROL("gpio1", "gpio", NULL, NULL, NULL, "output-high"), + AS3722_PIN_CONTROL("gpio2", "gpio", NULL, NULL, NULL, "output-high"), + AS3722_PIN_CONTROL("gpio3", "gpio", NULL, NULL, "enabled", NULL), + AS3722_PIN_CONTROL("gpio4", "gpio", NULL, NULL, NULL, "output-high"), + AS3722_PIN_CONTROL("gpio5", "gpio", "pull-down", NULL, "enabled", NULL), + AS3722_PIN_CONTROL("gpio6", "gpio", NULL, NULL, "enabled", NULL), + AS3722_PIN_CONTROL("gpio7", "gpio", NULL, NULL, NULL, "output-high"), +}; + static struct as3722_adc_extcon_platform_data as3722_adc_extcon_pdata = { .connection_name = "as3722-extcon", .enable_adc1_continuous_mode = true, @@ -308,6 +319,8 @@ static struct as3722_platform_data as3722_pdata = { .use_internal_i2c_pullup = 0, .num_gpio_cfgs = ARRAY_SIZE(as3722_gpio_cfgs), .gpio_cfgs = as3722_gpio_cfgs, + .pinctrl_pdata = as3722_pctrl_pdata, + .num_pinctrl = ARRAY_SIZE(as3722_pctrl_pdata), .enable_clk32k_out = true, .use_power_off = true, .enable_ldo3_tracking = true, @@ -759,8 +772,8 @@ FIXED_REG(17, dcdc_1v2, dcdc_1v2, NULL, 0, 0, PMU_TCA6416_GPIO_BASE, false, true, 0, 1200, 0); -FIXED_REG(18, as3722_gpio2, as3722_gpio2, NULL, 0, 0, - AS3722_GPIO_BASE + AS3722_GPIO2, false, false, 0, +FIXED_REG(18, as3722_gpio2, as3722_gpio2, NULL, 0, true, + AS3722_GPIO_BASE + AS3722_GPIO2, false, true, true, 3300, 0); FIXED_REG(19, lcd, lcd, NULL, 0, 0, |