ARM: tegra: roth: Add sdcard hotplug support
Pavan Kunapuli [Wed, 21 Nov 2012 03:23:34 +0000 (19:23 -0800)]
Adding the card detect gpio needed for sd card
hot plug support

Bug 1178962

Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/165233
(cherry picked from commit 747e3e70aa0f3c41f925066049d1b7a079474ffd)

Change-Id: I720cc06a60b92a63d2bc1d9831579bd5335d3d28
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/166317
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

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

index ee2dc6f..ce11272 100644 (file)
 #include "board.h"
 #include "board-roth.h"
 
-
 #define ROTH_WLAN_PWR  TEGRA_GPIO_PCC5
 #define ROTH_WLAN_RST  TEGRA_GPIO_INVALID
 #define ROTH_WLAN_WOW  TEGRA_GPIO_PU5
+#define ROTH_SD_CD             TEGRA_GPIO_PV2
+
 static void (*wifi_status_cb)(int card_present, void *dev_id);
 static void *wifi_status_cb_devid;
 static int roth_wifi_status_register(void (*callback)(int , void *), void *);
@@ -150,7 +151,7 @@ static struct tegra_sdhci_platform_data tegra_sdhci_platform_data0 = {
 };
 
 static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = {
-       .cd_gpio = -1,
+       .cd_gpio = ROTH_SD_CD,
        .wp_gpio = -1,
        .power_gpio = -1,
        .tap_delay = 0x3,