From: Eric Bénard Date: Fri, 25 Feb 2011 12:49:14 +0000 (+0100) Subject: eukrea_mbimxsd25-baseboard: add SD card detect X-Git-Tag: v3.0~1107^2^2^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=01ea9aeae84536e2afe769be69b994de9f7ceed7;p=platform%2Fkernel%2Flinux-amlogic.git eukrea_mbimxsd25-baseboard: add SD card detect Signed-off-by: Eric Bénard Acked-by: Wolfram Sang Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c b/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c index cb705c2..6269053 100644 --- a/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "devices-imx25.h" @@ -242,6 +243,11 @@ struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata __initconst = { .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, }; +static struct esdhc_platform_data sd1_pdata = { + .cd_gpio = GPIO_SD1CD, + .wp_gpio = -EINVAL, +}; + /* * system init for baseboard usage. Will be called by cpuimx25 init. * @@ -275,7 +281,7 @@ void __init eukrea_mbimxsd25_baseboard_init(void) imx25_add_imx_ssi(0, &eukrea_mbimxsd_ssi_pdata); imx25_add_flexcan1(NULL); - imx25_add_sdhci_esdhc_imx(0, NULL); + imx25_add_sdhci_esdhc_imx(0, &sd1_pdata); gpio_request(GPIO_LED1, "LED1"); gpio_direction_output(GPIO_LED1, 1);