From: Eric Bénard Date: Wed, 19 May 2010 16:46:05 +0000 (+0200) Subject: eukrea_mbimx27: use card detect through DAT3 for SDHC1 X-Git-Tag: v2.6.36-rc1~591^2^2~1^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e76a17c2d9c7f91d3ee6469568535189e1c201ca;p=platform%2Fupstream%2Fkernel-adaptation-pc.git eukrea_mbimx27: use card detect through DAT3 for SDHC1 Signed-off-by: Eric Bénard Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c b/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c index 385abd1..3bb94e8 100644 --- a/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-mx2/eukrea_mbimx27-baseboard.c @@ -286,6 +286,10 @@ static struct platform_device *platform_devices[] __initdata = { &leds_gpio, }; +static struct imxmmc_platform_data sdhc_pdata = { + .dat3_card_detect = 1, +}; + /* * system init for baseboard usage. Will be called by cpuimx27 init. * @@ -304,7 +308,7 @@ void __init eukrea_mbimx27_baseboard_init(void) #endif mxc_register_device(&mxc_fb_device, &eukrea_mbimx27_fb_data); - mxc_register_device(&mxc_sdhc_device0, NULL); + mxc_register_device(&mxc_sdhc_device0, &sdhc_pdata); #if defined(CONFIG_TOUCHSCREEN_ADS7846) \ || defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE)