diff mbox

[2/4] AM3517: MMC: Modifying board-evm file to add mmc_init

Message ID 1259000722-32222-2-git-send-email-anuj.aggarwal@ti.com (mailing list archive)
State Superseded, archived
Delegated to: Tony Lindgren
Headers show

Commit Message

Aggarwal, Anuj Nov. 23, 2009, 6:25 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-am3517evm.c b/arch/arm/mach-omap2/board-am3517evm.c
index 415a13d..30f8b00 100644
--- a/arch/arm/mach-omap2/board-am3517evm.c
+++ b/arch/arm/mach-omap2/board-am3517evm.c
@@ -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)