ARM: tegra: fix sdmmc2-sdslot regulator configuration
Laxman Dewangan [Thu, 19 Dec 2013 13:47:01 +0000 (18:47 +0530)]
THe SDMMC2 sd card slot power is provided through Tegra GPIO PR0
which is not open drain type.
Removing this flag from the regulator registration.

bug 1418136

Change-Id: Ic948c4e422fbc5262805f2df60527cec8313e2a0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/347556
GVS: Gerrit_Virtual_Submit
Reviewed-by: Andrew Tran <atran@nvidia.com>
Tested-by: Andrew Tran <atran@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>

arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-e1936-fixed.dtsi
arch/arm/mach-tegra/board-ardbeg-sdhci.c

index b21aa51..8f82ed8 100644 (file)
@@ -47,9 +47,8 @@
                        regulator-name = "vddio_sd";
                        regulator-min-microvolt = <3300000>;
                        regulator-max-microvolt = <3300000>;
-                       gpio = <&gpio TEGRA_GPIO(R, 0) 0>;
+                       gpio = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
                        enable-active-high;
-                       gpio-open-drain;
                        vin-supply = <&palmas_smps9>;
 
                        consumers {
index 21e0786..35d84a8 100644 (file)
@@ -443,10 +443,6 @@ int __init ardbeg_sdhci_init(void)
                board_info.board_id == BOARD_PM359)
                        tegra_sdhci_platform_data0.disable_clock_gate = 1;
 
-       if (board_info.board_id == BOARD_P1761) {
-               tegra_sdhci_platform_data2.power_gpio = TEGRA_GPIO_PR0;
-       }
-
        platform_device_register(&tegra_sdhci_device3);
        platform_device_register(&tegra_sdhci_device2);
        platform_device_register(&tegra_sdhci_device0);