aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zhu <r65037@freescale.com>2011-04-18 18:25:48 +0800
committerRichard Zhao <richard.zhao@freescale.com>2011-04-19 16:26:00 +0800
commit6e1d0720bb0032c319ec4ceb5806ea95562d1080 (patch)
tree9b25ee51139c59d4b03515b6d052224144761d89
parent472b2151c823070301967289e73720e4bb5a105f (diff)
downloadlinux-linaro-natty-6e1d0720bb0032c319ec4ceb5806ea95562d1080.tar.gz
ENGR00142266-7 eSDHC:Add the GPIO CD/WP on MX53 EVK boards
arm: enable the eSDHC CD/WP on MX53 EVK board Signed-off-by: Richard Zhu <r65037@freescale.com> Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
-rw-r--r--arch/arm/mach-mx5/board-mx53_evk.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/arm/mach-mx5/board-mx53_evk.c b/arch/arm/mach-mx5/board-mx53_evk.c
index 12f2cd16aebe..5a747fcc9096 100644
--- a/arch/arm/mach-mx5/board-mx53_evk.c
+++ b/arch/arm/mach-mx5/board-mx53_evk.c
@@ -564,6 +564,16 @@ static struct mxc_bus_freq_platform_data evk_bus_freq_data = {
.lp_reg_id = "SW2",
};
+static const struct esdhc_platform_data mx53_evk_sd1_data __initconst = {
+ .cd_gpio = EVK_SD1_CD,
+ .wp_gpio = EVK_SD1_WP,
+};
+
+static const struct esdhc_platform_data mx53_evk_sd3_data __initconst = {
+ .cd_gpio = EVK_SD3_CD,
+ .wp_gpio = EVK_SD3_WP,
+};
+
static int __initdata enable_spdif = { 0 };
static int __init spdif_setup(char *__unused)
{
@@ -736,8 +746,8 @@ static void __init mx53_evk_board_init(void)
i2c_register_board_info(1, mxc_i2c1_board_info,
ARRAY_SIZE(mxc_i2c1_board_info));
- imx53_add_sdhci_esdhc_imx(0, NULL);
- imx53_add_sdhci_esdhc_imx(1, NULL);
+ imx53_add_sdhci_esdhc_imx(0, &mx53_evk_sd1_data);
+ imx53_add_sdhci_esdhc_imx(2, &mx53_evk_sd3_data);
spi_register_board_info(mx53_evk_spi_board_info,
ARRAY_SIZE(mx53_evk_spi_board_info));