* [PATCH] OMAP2EVM: Adding hsmmc support
@ 2008-08-06 11:19 Arun KS
2008-08-08 7:49 ` Tony Lindgren
0 siblings, 1 reply; 4+ messages in thread
From: Arun KS @ 2008-08-06 11:19 UTC (permalink / raw)
To: linux-omap
This patch enables high speed MMC support for OMAP2EVM board
Signed-off-by: Arun KS <arunks@mistralsolutions.com>
---
arch/arm/mach-omap2/Makefile | 3 ++-
arch/arm/mach-omap2/board-omap2evm.c | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 10dc68f..0e982d3 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -49,7 +49,8 @@ obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \
hsmmc.o \
usb-musb.o \
usb-ehci.o
-obj-$(CONFIG_MACH_OMAP2EVM) += board-omap2evm.o
+obj-$(CONFIG_MACH_OMAP2EVM) += board-omap2evm.o \
+ hsmmc.o
obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \
hsmmc.o \
usb-musb.o \
diff --git a/arch/arm/mach-omap2/board-omap2evm.c
b/arch/arm/mach-omap2/board-omap2evm.c
index 13c53cc..b6354e3 100644
--- a/arch/arm/mach-omap2/board-omap2evm.c
+++ b/arch/arm/mach-omap2/board-omap2evm.c
@@ -26,6 +26,7 @@
#include <asm/arch/gpio.h>
#include <asm/arch/board.h>
#include <asm/arch/common.h>
+#include <asm/arch/hsmmc.h>
static struct resource omap2evm_smc911x_resources[] = {
[0] = {
@@ -83,9 +84,17 @@ static struct omap_uart_config
omap2_evm_uart_config __initdata = {
.enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
};
+static struct omap_mmc_config omap2_evm_mmc_config __initdata = {
+ .mmc [0] = {
+ .enabled = 1,
+ .wire4 = 1,
+ },
+};
+
static struct omap_board_config_kernel omap2_evm_config[] __initdata = {
{ OMAP_TAG_UART, &omap2_evm_uart_config },
{ OMAP_TAG_LCD, &omap2_evm_lcd_config },
+ { OMAP_TAG_MMC, &omap2_evm_mmc_config },
};
static int __init omap2_evm_i2c_init(void)
@@ -110,6 +119,7 @@ static void __init omap2_evm_init(void)
omap_board_config = omap2_evm_config;
omap_board_config_size = ARRAY_SIZE(omap2_evm_config);
omap_serial_init();
+ hsmmc_init();
}
static void __init omap2_evm_map_io(void)
--
1.5.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP2EVM: Adding hsmmc support
2008-08-06 11:19 [PATCH] OMAP2EVM: Adding hsmmc support Arun KS
@ 2008-08-08 7:49 ` Tony Lindgren
2008-08-08 22:33 ` David Brownell
0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2008-08-08 7:49 UTC (permalink / raw)
To: Arun KS; +Cc: linux-omap
* Arun KS <arunks@mistralsolutions.com> [080806 14:19]:
> This patch enables high speed MMC support for OMAP2EVM board
Pushing today.
Tony
> Signed-off-by: Arun KS <arunks@mistralsolutions.com>
> ---
> arch/arm/mach-omap2/Makefile | 3 ++-
> arch/arm/mach-omap2/board-omap2evm.c | 10 ++++++++++
> 2 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
> index 10dc68f..0e982d3 100644
> --- a/arch/arm/mach-omap2/Makefile
> +++ b/arch/arm/mach-omap2/Makefile
> @@ -49,7 +49,8 @@ obj-$(CONFIG_MACH_OMAP_2430SDP) += board-2430sdp.o \
> hsmmc.o \
> usb-musb.o \
> usb-ehci.o
> -obj-$(CONFIG_MACH_OMAP2EVM) += board-omap2evm.o
> +obj-$(CONFIG_MACH_OMAP2EVM) += board-omap2evm.o \
> + hsmmc.o
> obj-$(CONFIG_MACH_OMAP_3430SDP) += board-3430sdp.o \
> hsmmc.o \
> usb-musb.o \
> diff --git a/arch/arm/mach-omap2/board-omap2evm.c
> b/arch/arm/mach-omap2/board-omap2evm.c
> index 13c53cc..b6354e3 100644
> --- a/arch/arm/mach-omap2/board-omap2evm.c
> +++ b/arch/arm/mach-omap2/board-omap2evm.c
> @@ -26,6 +26,7 @@
> #include <asm/arch/gpio.h>
> #include <asm/arch/board.h>
> #include <asm/arch/common.h>
> +#include <asm/arch/hsmmc.h>
>
> static struct resource omap2evm_smc911x_resources[] = {
> [0] = {
> @@ -83,9 +84,17 @@ static struct omap_uart_config
> omap2_evm_uart_config __initdata = {
> .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
> };
>
> +static struct omap_mmc_config omap2_evm_mmc_config __initdata = {
> + .mmc [0] = {
> + .enabled = 1,
> + .wire4 = 1,
> + },
> +};
> +
> static struct omap_board_config_kernel omap2_evm_config[] __initdata = {
> { OMAP_TAG_UART, &omap2_evm_uart_config },
> { OMAP_TAG_LCD, &omap2_evm_lcd_config },
> + { OMAP_TAG_MMC, &omap2_evm_mmc_config },
> };
>
> static int __init omap2_evm_i2c_init(void)
> @@ -110,6 +119,7 @@ static void __init omap2_evm_init(void)
> omap_board_config = omap2_evm_config;
> omap_board_config_size = ARRAY_SIZE(omap2_evm_config);
> omap_serial_init();
> + hsmmc_init();
> }
>
> static void __init omap2_evm_map_io(void)
> --
> 1.5.3.4
> --
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP2EVM: Adding hsmmc support
2008-08-08 7:49 ` Tony Lindgren
@ 2008-08-08 22:33 ` David Brownell
2008-08-11 5:22 ` Arun KS
0 siblings, 1 reply; 4+ messages in thread
From: David Brownell @ 2008-08-08 22:33 UTC (permalink / raw)
To: Tony Lindgren, Arun KS; +Cc: linux-omap
As I commented in
http://marc.info/?l=linux-omap&m=121792042504348&w=2
I can't quite see why anything is using "omap_mmc_config" for
anything related to hsmmc ... it contains two structs that
don't match what the hsmmc driver understands.
- Dave
> > @@ -83,9 +84,17 @@ static struct omap_uart_config
> > omap2_evm_uart_config __initdata = {
> > .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
> > };
> >
> > +static struct omap_mmc_config omap2_evm_mmc_config __initdata = {
> > + .mmc [0] = {
> > + .enabled = 1,
> > + .wire4 = 1,
> > + },
> > +};
> > +
> > static struct omap_board_config_kernel omap2_evm_config[] __initdata = {
> > { OMAP_TAG_UART, &omap2_evm_uart_config },
> > { OMAP_TAG_LCD, &omap2_evm_lcd_config },
> > + { OMAP_TAG_MMC, &omap2_evm_mmc_config },
> > };
> >
> > static int __init omap2_evm_i2c_init(void)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] OMAP2EVM: Adding hsmmc support
2008-08-08 22:33 ` David Brownell
@ 2008-08-11 5:22 ` Arun KS
0 siblings, 0 replies; 4+ messages in thread
From: Arun KS @ 2008-08-11 5:22 UTC (permalink / raw)
To: David Brownell; +Cc: linux-omap
Hi David Brownell,
Please see function omap_init_mmc() in file
arch/arm/plat-omap/devices.c
It is doing the device registration and pin muxing for mmc
depending upon the values initialized in structure omap_mmc_config.
Best Regards
Arun KS
On Sat, Aug 9, 2008 at 4:03 AM, David Brownell <david-b@pacbell.net> wrote:
> As I commented in
>
> http://marc.info/?l=linux-omap&m=121792042504348&w=2
>
> I can't quite see why anything is using "omap_mmc_config" for
> anything related to hsmmc ... it contains two structs that
> don't match what the hsmmc driver understands.
>
> - Dave
>
>> > @@ -83,9 +84,17 @@ static struct omap_uart_config
>> > omap2_evm_uart_config __initdata = {
>> > .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)),
>> > };
>> >
>> > +static struct omap_mmc_config omap2_evm_mmc_config __initdata = {
>> > + .mmc [0] = {
>> > + .enabled = 1,
>> > + .wire4 = 1,
>> > + },
>> > +};
>> > +
>> > static struct omap_board_config_kernel omap2_evm_config[] __initdata = {
>> > { OMAP_TAG_UART, &omap2_evm_uart_config },
>> > { OMAP_TAG_LCD, &omap2_evm_lcd_config },
>> > + { OMAP_TAG_MMC, &omap2_evm_mmc_config },
>> > };
>> >
>> > static int __init omap2_evm_i2c_init(void)
> --
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-08-11 5:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 11:19 [PATCH] OMAP2EVM: Adding hsmmc support Arun KS
2008-08-08 7:49 ` Tony Lindgren
2008-08-08 22:33 ` David Brownell
2008-08-11 5:22 ` Arun KS
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox