]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: mxs: add mmc-device for mach-tx28
authorWolfram Sang <w.sang@pengutronix.de>
Fri, 1 Jul 2011 14:54:01 +0000 (16:54 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 4 Jul 2011 06:36:47 +0000 (08:36 +0200)
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mxs/Kconfig
arch/arm/mach-mxs/mach-tx28.c

index 1d3985f37858fcdd645ff307b48638fb242250b9..4cd0231ee539ead25f0728fa8572fc1070fa5e60 100644 (file)
@@ -61,6 +61,7 @@ config MODULE_TX28
        select MXS_HAVE_PLATFORM_AUART
        select MXS_HAVE_PLATFORM_FEC
        select MXS_HAVE_PLATFORM_MXS_I2C
+       select MXS_HAVE_PLATFORM_MXS_MMC
        select MXS_HAVE_PLATFORM_MXS_PWM
 
 config MACH_TX28
index fff6b17f01831f99cfdb921c7198761eaf79f414..4330ff61007a4d9c37fa0a54ac6475c876a2078c 100644 (file)
@@ -147,6 +147,11 @@ static struct i2c_board_info tx28_stk5v3_i2c_boardinfo[] __initdata = {
        },
 };
 
+static struct mxs_mmc_platform_data tx28_mmc0_pdata __initdata = {
+       .wp_gpio = -EINVAL,
+       .flags = SLOTF_4_BIT_CAPABLE,
+};
+
 static void __init tx28_stk5v3_init(void)
 {
        mxs_iomux_setup_multiple_pads(tx28_stk5v3_pads,
@@ -163,6 +168,7 @@ static void __init tx28_stk5v3_init(void)
        mx28_add_mxs_i2c(0);
        i2c_register_board_info(0, tx28_stk5v3_i2c_boardinfo,
                        ARRAY_SIZE(tx28_stk5v3_i2c_boardinfo));
+       mx28_add_mxs_mmc(0, &tx28_mmc0_pdata);
 }
 
 static void __init tx28_timer_init(void)