OMAP2EVM: Adding hsmmc support
Subsystems (3)
PATCH 1/1 OMAP2EVM: Adding hsmmc support
This patch enables high speed MMC support for OMAP2EVM board
--- arch/arm/mach-omap2/Makefile | 3 ++- arch/arm/mach-omap2/board-omap2evm.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Makefile +2 -1
@@ -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 \
(quoted diff) +0 -0
b/arch/arm/mach-omap2/board-omap2evm.c
index 13c53cc..b6354e3 100644
arch/arm/mach-omap2/board-omap2evm.c +1 -0
@@ -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)
Signature · 1 line
1.5.3.4
Tony Lindgren
maintainerQuoted 1 line · Arun KS
This patch enables high speed MMC support for OMAP2EVM board
Pushing today.
Tony
Quoted 66 lines
Signed-off-by Arun KS <[email protected]>--- arch/arm/mach-omap2/Makefile | 3 ++- arch/arm/mach-omap2/board-omap2evm.c | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-)arch/arm/mach-omap2/Makefile +2
-1@@ -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 \arch/arm/mach-omap2/board-omap2evm.c +9
-0@@ -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
__initomap2_evm_i2c_init(void)arch/arm/mach-omap2/board-omap2evm.c +1
-0@@ -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 )Signature · 5 lines
1.5.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
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
Quoted 19 lines
Quoted 19 lines
(quoted diff) +8
-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
__initomap2_evm_i2c_init(void)
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
Quoted 34 lines · David Brownell
As I commented in
http://marc.info/?l=linux-omap&m=121792042504348&w=2I 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
Quoted 18 lines
Quoted 18 lines
(quoted diff) +8
-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 }, };Quoted 1 line
Quoted 1 line
static int
__initomap2_evm_i2c_init(void)--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html