Commit 2809fc06 authored by Sascha Hauer's avatar Sascha Hauer

[ARM] mx1ads: make mmc platform data available for modules

Signed-off-by: default avatarPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Acked-by: default avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 221d62c1
...@@ -125,7 +125,7 @@ static struct platform_device *devices[] __initdata = { ...@@ -125,7 +125,7 @@ static struct platform_device *devices[] __initdata = {
&imx_uart2_device, &imx_uart2_device,
}; };
#ifdef CONFIG_MMC_IMX #if defined(CONFIG_MMC_IMX) || defined(CONFIG_MMC_IMX_MODULE)
static int mx1ads_mmc_card_present(struct device *dev) static int mx1ads_mmc_card_present(struct device *dev)
{ {
/* MMC/SD Card Detect is PB 20 on MX1ADS V1.0.7 */ /* MMC/SD Card Detect is PB 20 on MX1ADS V1.0.7 */
...@@ -143,7 +143,7 @@ mx1ads_init(void) ...@@ -143,7 +143,7 @@ mx1ads_init(void)
#ifdef CONFIG_LEDS #ifdef CONFIG_LEDS
imx_gpio_mode(GPIO_PORTA | GPIO_OUT | 2); imx_gpio_mode(GPIO_PORTA | GPIO_OUT | 2);
#endif #endif
#ifdef CONFIG_MMC_IMX #if defined(CONFIG_MMC_IMX) || defined(CONFIG_MMC_IMX_MODULE)
/* SD/MMC card detect */ /* SD/MMC card detect */
imx_gpio_mode(GPIO_PORTB | GPIO_GIUS | GPIO_IN | 20); imx_gpio_mode(GPIO_PORTB | GPIO_GIUS | GPIO_IN | 20);
imx_set_mmc_info(&mx1ads_mmc_info); imx_set_mmc_info(&mx1ads_mmc_info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment