arm: tegra: ardbeg: enable ro gpio for sdcard
Shreshtha Sahu [Fri, 22 Nov 2013 12:05:48 +0000 (17:05 +0530)]
Enable SDCARD RO gpio pin as TEGRA_GPIO_PQ4 for SDI1

Bug 1404840

Change-Id: Iac8ff3f1fe4bbbcf1ec53b9416e0809414ef84cf
Signed-off-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-on: http://git-master/r/334496
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>

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

index 6ae41aa..ce52941 100644 (file)
@@ -49,6 +49,7 @@ static unsigned int wifi_states[] = {ON, OFF};
 #endif
 
 #define ARDBEG_SD_CD   TEGRA_GPIO_PV2
+#define ARDBEG_SD_WP   TEGRA_GPIO_PQ4
 
 static void (*wifi_status_cb)(int card_present, void *dev_id);
 static void *wifi_status_cb_devid;
@@ -188,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 = -1,
+       .wp_gpio = ARDBEG_SD_WP,
        .power_gpio = -1,
        .tap_delay = 0,
        .trim_delay = 0x3,