* [PATCH 1/1] Add MMC support for OMAP3 EVM
@ 2008-04-27 6:05 Steve Sakoman
2008-04-28 9:21 ` Francisco Alecrim
0 siblings, 1 reply; 2+ messages in thread
From: Steve Sakoman @ 2008-04-27 6:05 UTC (permalink / raw)
To: linux-omap
From: Steve Sakoman <steve@sakoman.com>
Add MMC support for OMAP3 EVM
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
Makefile | 3 ++-
board-omap3evm.c | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff -uprN a/arch/arm/mach-omap2/board-omap3evm.c
b/arch/arm/mach-omap2/board-omap3evm.c
--- a/arch/arm/mach-omap2/board-omap3evm.c 2008-04-26 06:32:12.000000000 -0700
+++ b/arch/arm/mach-omap2/board-omap3evm.c 2008-04-26 22:17:03.000000000 -0700
@@ -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 = {
@@ -40,6 +41,13 @@ static int __init omap3_evm_i2c_init(voi
omap_register_i2c_bus(3, 400, NULL, 0);
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)
{
@@ -50,6 +58,7 @@ static void __init omap3_evm_init_irq(vo
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);
diff -uprN a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
--- a/arch/arm/mach-omap2/Makefile 2008-04-26 06:32:12.000000000 -0700
+++ b/arch/arm/mach-omap2/Makefile 2008-04-26 22:17:03.000000000 -0700
@@ -37,7 +37,8 @@ obj-$(CONFIG_MACH_OMAP_3430SDP) += boar
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] Add MMC support for OMAP3 EVM
2008-04-27 6:05 [PATCH 1/1] Add MMC support for OMAP3 EVM Steve Sakoman
@ 2008-04-28 9:21 ` Francisco Alecrim
0 siblings, 0 replies; 2+ messages in thread
From: Francisco Alecrim @ 2008-04-28 9:21 UTC (permalink / raw)
To: ext Steve Sakoman; +Cc: linux-omap
ext Steve Sakoman wrote:
> From: Steve Sakoman <steve@sakoman.com>
>
> Add MMC support for OMAP3 EVM
>
> Signed-off-by: Steve Sakoman <steve@sakoman.com>
>
Acked-by: Francisco Alecrim <francisco.alecrim@indt.org.br>
I did not test, but it should work. :)
> ---
> Makefile | 3 ++-
> board-omap3evm.c | 10 ++++++++++
> 2 files changed, 12 insertions(+), 1 deletion(-)
> diff -uprN a/arch/arm/mach-omap2/board-omap3evm.c
> b/arch/arm/mach-omap2/board-omap3evm.c
> --- a/arch/arm/mach-omap2/board-omap3evm.c 2008-04-26 06:32:12.000000000 -0700
> +++ b/arch/arm/mach-omap2/board-omap3evm.c 2008-04-26 22:17:03.000000000 -0700
> @@ -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 = {
> @@ -40,6 +41,13 @@ static int __init omap3_evm_i2c_init(voi
> omap_register_i2c_bus(3, 400, NULL, 0);
> 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)
> {
> @@ -50,6 +58,7 @@ static void __init omap3_evm_init_irq(vo
>
> 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);
> diff -uprN a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
> --- a/arch/arm/mach-omap2/Makefile 2008-04-26 06:32:12.000000000 -0700
> +++ b/arch/arm/mach-omap2/Makefile 2008-04-26 22:17:03.000000000 -0700
> @@ -37,7 +37,8 @@ obj-$(CONFIG_MACH_OMAP_3430SDP) += boar
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Francisco Keppler Silva Alecrim - INdT
Phone: +55 92 2126-1017
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-28 9:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-27 6:05 [PATCH 1/1] Add MMC support for OMAP3 EVM Steve Sakoman
2008-04-28 9:21 ` Francisco Alecrim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox