summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-roth-sdhci.c
diff options
context:
space:
mode:
authorPavan Kunapuli <pkunapuli@nvidia.com>2012-11-20 19:23:34 -0800
committerMrutyunjay Sawant <msawant@nvidia.com>2012-11-27 05:08:25 -0800
commit088dff4169c73f7b16355c4ffeedb037e856ad78 (patch)
treef69101919cd235932496ec52c98ac9c5d554946c /arch/arm/mach-tegra/board-roth-sdhci.c
parent472e1dc8c1a5e0123327efc3d5e46d28a8a249d7 (diff)
ARM: tegra: roth: Add sdcard hotplug support
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>
Diffstat (limited to 'arch/arm/mach-tegra/board-roth-sdhci.c')
-rw-r--r--arch/arm/mach-tegra/board-roth-sdhci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-roth-sdhci.c b/arch/arm/mach-tegra/board-roth-sdhci.c
index ee2dc6f19f5d..ce11272d7c5b 100644
--- a/arch/arm/mach-tegra/board-roth-sdhci.c
+++ b/arch/arm/mach-tegra/board-roth-sdhci.c
@@ -37,10 +37,11 @@
#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,