public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] tegra: add SDMMC1 on SDIO1 funcmux entry
@ 2012-05-16 23:54 Stephen Warren
  2012-05-16 23:54 ` [U-Boot] [PATCH 2/2] tegra: Compulab TrimSlice board support Stephen Warren
  2012-05-22  0:41 ` [U-Boot] [PATCH 1/2] tegra: add SDMMC1 on SDIO1 funcmux entry Simon Glass
  0 siblings, 2 replies; 5+ messages in thread
From: Stephen Warren @ 2012-05-16 23:54 UTC (permalink / raw)
  To: u-boot

From: Stephen Warren <swarren@nvidia.com>

This will be used on TrimSlice.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 arch/arm/cpu/armv7/tegra2/funcmux.c        |    7 +++++++
 arch/arm/include/asm/arch-tegra2/funcmux.h |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c b/arch/arm/cpu/armv7/tegra2/funcmux.c
index 1559869..820ba4e 100644
--- a/arch/arm/cpu/armv7/tegra2/funcmux.c
+++ b/arch/arm/cpu/armv7/tegra2/funcmux.c
@@ -127,6 +127,13 @@ int funcmux_select(enum periph_id id, int config)
 		}
 		break;
 
+	case PERIPH_ID_SDMMC1:
+		if (config == FUNCMUX_SDMMC1_SDIO1_4BIT) {
+			pinmux_set_func(PINGRP_SDIO1, PMUX_FUNC_SDIO1);
+			pinmux_tristate_disable(PINGRP_SDIO1);
+		}
+		break;
+
 	case PERIPH_ID_SDMMC2:
 		if (config == FUNCMUX_SDMMC2_DTA_DTD_8BIT) {
 			pinmux_set_func(PINGRP_DTA, PMUX_FUNC_SDIO2);
diff --git a/arch/arm/include/asm/arch-tegra2/funcmux.h b/arch/arm/include/asm/arch-tegra2/funcmux.h
index 19184d1..b16c496 100644
--- a/arch/arm/include/asm/arch-tegra2/funcmux.h
+++ b/arch/arm/include/asm/arch-tegra2/funcmux.h
@@ -44,6 +44,7 @@ enum {
 	FUNCMUX_I2C3_DTF = 0,
 
 	/* SDMMC configs */
+	FUNCMUX_SDMMC1_SDIO1_4BIT = 0,
 	FUNCMUX_SDMMC2_DTA_DTD_8BIT = 0,
 	FUNCMUX_SDMMC3_SDB_4BIT = 0,
 	FUNCMUX_SDMMC3_SDB_SLXA_8BIT,
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-05-31 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 23:54 [U-Boot] [PATCH 1/2] tegra: add SDMMC1 on SDIO1 funcmux entry Stephen Warren
2012-05-16 23:54 ` [U-Boot] [PATCH 2/2] tegra: Compulab TrimSlice board support Stephen Warren
2012-05-22  0:41 ` [U-Boot] [PATCH 1/2] tegra: add SDMMC1 on SDIO1 funcmux entry Simon Glass
2012-05-22  2:48   ` Stephen Warren
2012-05-31 23:35     ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox