arm: tegra: remove WP gpio for ardbeg
Hayden Du [Tue, 10 Dec 2013 06:32:04 +0000 (02:32 -0400)]
bug 1417119

Change-Id: Ia0e92a89a089f2bb49dffb330f0b7865caa3a353
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/340271
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Tested-by: Mitch Luban <mluban@nvidia.com>

arch/arm/mach-tegra/board-ardbeg-sdhci.c

index 5e1cf0a..cafdacc 100644 (file)
@@ -189,7 +189,7 @@ static struct tegra_sdhci_platform_data tegra_sdhci_platform_data0 = {
 
 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = {
        .cd_gpio = ARDBEG_SD_CD,
-       .wp_gpio = ARDBEG_SD_WP,
+       .wp_gpio = -1,
        .power_gpio = -1,
        .tap_delay = 0,
        .trim_delay = 0x3,
@@ -368,6 +368,9 @@ int __init ardbeg_sdhci_init(void)
                tegra_sdhci_platform_data3.boot_vcore_mv = boot_vcore_mv;
        }
 
+       if (of_machine_is_compatible("nvidia,laguna"))
+               tegra_sdhci_platform_data2.wp_gpio = ARDBEG_SD_WP;
+
        tegra_get_board_info(&board_info);
        if (board_info.board_id == BOARD_E1780) {
                tegra_sdhci_platform_data3.max_clk_limit = 200000000;