arm: tegra: tegratab: set SPDIF_IN to open drain enable signal
Hunk Lin [Sun, 21 Apr 2013 09:32:16 +0000 (17:32 +0800)]
If this pin is drived to high and there is the over-current condition in HDMI
5V regulator. It will create a power-to-ground short. So we need change
this pin to open drain and enable pull-up.

Bug 1255023

Change-Id: I63bf18ad9fda984f641f26801053be129c09b881
Signed-off-by: Hunk Lin <hulin@nvidia.com>
Reviewed-on: http://git-master/r/221388
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

arch/arm/mach-tegra/board-tegratab-pinmux-t11x.h
arch/arm/mach-tegra/board-tegratab-power.c

index ab8fa3d..2b5ccfb 100644 (file)
@@ -254,7 +254,7 @@ static __initdata struct tegra_pingroup_config tegratab_pinmux_common[] = {
        GPIO_PINMUX(GPIO_PU5, PULL_UP, NORMAL, INPUT, DISABLE),
        GPIO_PINMUX(GPIO_PU6, NORMAL, NORMAL, INPUT, DISABLE),
        GPIO_PINMUX(HDMI_INT, PULL_DOWN, NORMAL, INPUT, DEFAULT),
-       GPIO_PINMUX(SPDIF_IN, NORMAL, NORMAL, OUTPUT, DISABLE),
+       GPIO_PINMUX(SPDIF_IN, PULL_UP, NORMAL, OUTPUT, DISABLE),
 };
 
 static __initdata struct tegra_pingroup_config unused_pins_lowpower[] = {
index 59ad09f..b63872c 100644 (file)
@@ -492,7 +492,7 @@ FIXED_REG(3,        dvdd_ts,        dvdd_ts,
 
 FIXED_REG(4,   vdd_hdmi_5v0,   vdd_hdmi_5v0,
        palmas_rails(smps10),   0,      0,
-       TEGRA_GPIO_PK6, false,  true,   0,      5000);
+       TEGRA_GPIO_PK6, true,   true,   0,      5000);
 
 FIXED_REG(5,   vddio_sd_slot,  vddio_sd_slot,
        palmas_rails(smps9),    0,      0,