summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-11-21 08:45:48 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-11-21 15:05:23 +0100
commitb205234f92db5980ca374de65408f81f6dcf37d8 (patch)
tree43625dabdf499e323864b74d8e8305afd334e495
parent03bdbfbdd0396355bcf450b3cc606a38a3784652 (diff)
apalis-tk1: working sd card detect on v1.1 hw
Add sd card detect SD1_CD# applicable for V1.1 modules using GPIO_PV2. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-rw-r--r--arch/arm/mach-tegra/board-apalis-tk1-sdhci.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/arch/arm/mach-tegra/board-apalis-tk1-sdhci.c b/arch/arm/mach-tegra/board-apalis-tk1-sdhci.c
index d45634c4bdf0..8b9c760c6868 100644
--- a/arch/arm/mach-tegra/board-apalis-tk1-sdhci.c
+++ b/arch/arm/mach-tegra/board-apalis-tk1-sdhci.c
@@ -118,15 +118,11 @@ static struct tegra_sdhci_platform_data tegra_sdhci_platform_data0 = {
};
static struct tegra_sdhci_platform_data tegra_sdhci_platform_data2 = {
- /*
- * Don't use SD1_CD# aka SDMMC3_CLK_LB_OUT for now as it features some
- * magic properties even though the external loopback is disabled and
- * the internal loopback used as per SDMMC_VENDOR_MISC_CNTRL_0
- * register's SDMMC_SPARE1 bits being set to 0xfffd according to the
- * TRM!
- * .cd_gpio = TEGRA_GPIO_PEE4,
- */
+#ifdef APALIS_TK1_V10
.cd_gpio = -1,
+#else
+ .cd_gpio = TEGRA_GPIO_PV2,
+#endif
.wp_gpio = -1,
.power_gpio = -1,
.tap_delay = 0,