diff options
author | Tony Lindgren <tony@atomide.com> | 2008-12-10 20:37:17 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-12-10 20:37:17 -0500 |
commit | 90c62bf08f5823faa097271f3346a9142769b9ac (patch) | |
tree | aa3bf442380815268b03092fd4b9c47924f9c3ee /arch/arm/mach-omap2/devices.c | |
parent | d88746652b4d133284d1fdd05b5e999e8f44c998 (diff) |
omap mmc: Add low-level initialization for hsmmc controller
Add low-level initialization for hsmmc controller. Merged into
this patch patch are various improvments and board support by
Grazvydas Ignotas and David Brownell.
Also change wire4 to be wires, as some newer controllers support
8 data lines.
Cc: Pierre Ossman <drzeus-mmc@drzeus.cx>
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 8ccdfcf2942c..6e03272b0521 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/mach-types.h> | 19 | #include <asm/mach-types.h> |
20 | #include <asm/mach/map.h> | 20 | #include <asm/mach/map.h> |
21 | 21 | ||
22 | #include <mach/control.h> | ||
22 | #include <mach/tc.h> | 23 | #include <mach/tc.h> |
23 | #include <mach/board.h> | 24 | #include <mach/board.h> |
24 | #include <mach/mux.h> | 25 | #include <mach/mux.h> |
@@ -311,7 +312,7 @@ static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller, | |||
311 | omap_cfg_reg(F20_24XX_MMC_DAT0); | 312 | omap_cfg_reg(F20_24XX_MMC_DAT0); |
312 | omap_cfg_reg(F19_24XX_MMC_DAT_DIR0); | 313 | omap_cfg_reg(F19_24XX_MMC_DAT_DIR0); |
313 | omap_cfg_reg(G18_24XX_MMC_CMD_DIR); | 314 | omap_cfg_reg(G18_24XX_MMC_CMD_DIR); |
314 | if (mmc_controller->slots[0].wire4) { | 315 | if (mmc_controller->slots[0].wires == 4) { |
315 | omap_cfg_reg(H14_24XX_MMC_DAT1); | 316 | omap_cfg_reg(H14_24XX_MMC_DAT1); |
316 | omap_cfg_reg(E19_24XX_MMC_DAT2); | 317 | omap_cfg_reg(E19_24XX_MMC_DAT2); |
317 | omap_cfg_reg(D19_24XX_MMC_DAT3); | 318 | omap_cfg_reg(D19_24XX_MMC_DAT3); |