@@ -30,6 +30,7 @@
#include <plat/common.h>
#include <plat/usb.h>
+#include "mmc-am3517evm.h"
/*
* Board initialization
*/
@@ -60,6 +61,24 @@ static struct ehci_hcd_omap_platform_data ehci_pdata __initdata = {
.reset_gpio_port[2] = -EINVAL
};
+static struct am3517_hsmmc_info mmc[] = {
+ {
+ .mmc = 1,
+ .wires = 4,
+ /* TODO: Need to change */
+ .gpio_cd = 127,
+ .gpio_wp = 126,
+ },
+ {
+ .mmc = 2,
+ .wires = 4,
+ /* TODO: Need to change */
+ .gpio_cd = 128,
+ .gpio_wp = 129,
+ },
+ {} /* Terminator */
+};
+
static void __init am3517_evm_init(void)
{
platform_add_devices(am3517_evm_devices,
@@ -67,6 +86,9 @@ static void __init am3517_evm_init(void)
omap_serial_init();
usb_ehci_init(&ehci_pdata);
+
+ /* MMC init function */
+ am3517_mmc_init(mmc);
}
static void __init am3517_evm_map_io(void)