From b205234f92db5980ca374de65408f81f6dcf37d8 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Mon, 21 Nov 2016 08:45:48 +0100 Subject: 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 Acked-by: Dominik Sliwa --- arch/arm/mach-tegra/board-apalis-tk1-sdhci.c | 12 ++++-------- 1 file 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, -- cgit v1.2.3