diff options
author | Madhu <madhu.cr@ti.com> | 2009-11-22 13:11:08 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-11-22 13:24:32 -0500 |
commit | 4679232d3a2085fa5080f260d68b4049c14d5b76 (patch) | |
tree | d47d508d9880c41d9a9163b0dea4d3b16130dacc /arch | |
parent | 555d503ff30b3b1292d743bb77b19212b6befb59 (diff) |
omap3: HSMMC2 8-bit mux configuration
Add support for omap hsmmc2 8-bit mux configuration.
Signed-off-by: Madhusudhan Chikkature <madhu.cr@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/mux.c | 8 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/mux.h | 4 |
3 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 8d23e1f7f84b..8b6cd8c82dd2 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -609,6 +609,12 @@ static inline void omap2_mmc_mux(struct omap_mmc_platform_data *mmc_controller, | |||
609 | omap_cfg_reg(AG4_3430_MMC2_DAT2); | 609 | omap_cfg_reg(AG4_3430_MMC2_DAT2); |
610 | omap_cfg_reg(AF4_3430_MMC2_DAT3); | 610 | omap_cfg_reg(AF4_3430_MMC2_DAT3); |
611 | } | 611 | } |
612 | if (mmc_controller->slots[0].wires == 8) { | ||
613 | omap_cfg_reg(AE4_3430_MMC2_DAT4); | ||
614 | omap_cfg_reg(AH3_3430_MMC2_DAT5); | ||
615 | omap_cfg_reg(AF3_3430_MMC2_DAT6); | ||
616 | omap_cfg_reg(AE3_3430_MMC2_DAT7); | ||
617 | } | ||
612 | } | 618 | } |
613 | 619 | ||
614 | /* | 620 | /* |
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 32c953e608db..83256d349444 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c | |||
@@ -532,6 +532,14 @@ MUX_CFG_34XX("AG4_3430_MMC2_DAT2", 0x160, | |||
532 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) | 532 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) |
533 | MUX_CFG_34XX("AF4_3430_MMC2_DAT3", 0x162, | 533 | MUX_CFG_34XX("AF4_3430_MMC2_DAT3", 0x162, |
534 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) | 534 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) |
535 | MUX_CFG_34XX("AE4_3430_MMC2_DAT4", 0x164, | ||
536 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) | ||
537 | MUX_CFG_34XX("AH3_3430_MMC2_DAT5", 0x166, | ||
538 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) | ||
539 | MUX_CFG_34XX("AF3_3430_MMC2_DAT6", 0x168, | ||
540 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) | ||
541 | MUX_CFG_34XX("AE3_3430_MMC2_DAT7", 0x16A, | ||
542 | OMAP34XX_MUX_MODE0 | OMAP34XX_PIN_INPUT_PULLUP) | ||
535 | 543 | ||
536 | /* MMC3 */ | 544 | /* MMC3 */ |
537 | MUX_CFG_34XX("AF10_3430_MMC3_CLK", 0x5d8, | 545 | MUX_CFG_34XX("AF10_3430_MMC3_CLK", 0x5d8, |
diff --git a/arch/arm/plat-omap/include/plat/mux.h b/arch/arm/plat-omap/include/plat/mux.h index 56e357e9ec4e..f74331d4a9c3 100644 --- a/arch/arm/plat-omap/include/plat/mux.h +++ b/arch/arm/plat-omap/include/plat/mux.h | |||
@@ -834,6 +834,10 @@ enum omap34xx_index { | |||
834 | AH4_3430_MMC2_DAT1, | 834 | AH4_3430_MMC2_DAT1, |
835 | AG4_3430_MMC2_DAT2, | 835 | AG4_3430_MMC2_DAT2, |
836 | AF4_3430_MMC2_DAT3, | 836 | AF4_3430_MMC2_DAT3, |
837 | AE4_3430_MMC2_DAT4, | ||
838 | AH3_3430_MMC2_DAT5, | ||
839 | AF3_3430_MMC2_DAT6, | ||
840 | AE3_3430_MMC2_DAT7, | ||
837 | 841 | ||
838 | /* MMC3 */ | 842 | /* MMC3 */ |
839 | AF10_3430_MMC3_CLK, | 843 | AF10_3430_MMC3_CLK, |