]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP3 EVM: add mmc support
authorSteve Sakoman <steve@sakoman.com>
Mon, 28 Apr 2008 23:27:46 +0000 (16:27 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 2 May 2008 23:01:22 +0000 (16:01 -0700)
Add MMC support for OMAP3 EVM

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
Acked-by: Syed Mohammed Khasim <khasim@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/board-omap3evm.c

index 512b44641e7cfba2594c2de4c1d57e1e904c3f85..2124f0944972885259dc568a206ea4da2ede7b65 100644 (file)
@@ -37,7 +37,8 @@ obj-$(CONFIG_MACH_OMAP_3430SDP)               += board-3430sdp.o \
                                           usb-musb.o \
                                           usb-ehci.o \
                                           board-3430sdp-flash.o
-obj-$(CONFIG_MACH_OMAP3EVM)            += board-omap3evm.o
+obj-$(CONFIG_MACH_OMAP3EVM)            += board-omap3evm.o \
+                                          hsmmc.o
 obj-$(CONFIG_MACH_OMAP3_BEAGLE)                += board-omap3beagle.o \
                                           usb-musb.o usb-ehci.o \
                                           hsmmc.o
index cc5b480ce7c000af8c6981be364a7b0befdd85fa..19cd8e1a62bd7b06df5b3d3766e198d892db40e8 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <asm/arch/gpio.h>
 #include <asm/arch/board.h>
+#include <asm/arch/hsmmc.h>
 #include <asm/arch/common.h>
 
 static struct omap_uart_config omap3_evm_uart_config __initdata = {
@@ -41,6 +42,13 @@ static int __init omap3_evm_i2c_init(void)
        return 0;
 }
 
+static struct omap_mmc_config omap3_evm_mmc_config __initdata = {
+       .mmc [0] = {
+               .enabled        = 1,
+               .wire4          = 1,
+       },
+};
+
 static void __init omap3_evm_init_irq(void)
 {
        omap2_init_common_hw();
@@ -50,6 +58,7 @@ static void __init omap3_evm_init_irq(void)
 
 static struct omap_board_config_kernel omap3_evm_config[] __initdata = {
        { OMAP_TAG_UART,        &omap3_evm_uart_config },
+       { OMAP_TAG_MMC,         &omap3_evm_mmc_config },
 };
 
 static void __init omap3_evm_init(void)
@@ -57,6 +66,7 @@ static void __init omap3_evm_init(void)
        omap_board_config = omap3_evm_config;
        omap_board_config_size = ARRAY_SIZE(omap3_evm_config);
        omap_serial_init();
+       hsmmc_init();
 }
 
 arch_initcall(omap3_evm_i2c_init);