[U-Boot] [PATCH 3/4] SSP1 pins configured for MMC1

robert at delien.nl robert at delien.nl
Tue Feb 7 17:52:34 CET 2012


From: Robert Delien <robert at delien.nl>


Signed-off-by: Robert Delien <robert at delien.nl>
---
 board/freescale/mx28evk/iomux.c |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/board/freescale/mx28evk/iomux.c b/board/freescale/mx28evk/iomux.c
index 178bde2..d6f9d0a 100644
--- a/board/freescale/mx28evk/iomux.c
+++ b/board/freescale/mx28evk/iomux.c
@@ -26,9 +26,9 @@
 #include <asm/arch/sys_proto.h>
 
 #define	MUX_CONFIG_SSP0	(MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
+#define	MUX_CONFIG_SSP1	(MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
 #define	MUX_CONFIG_ENET	(MXS_PAD_3V3 | MXS_PAD_8MA | MXS_PAD_PULLUP)
 #define	MUX_CONFIG_EMI	(MXS_PAD_3V3 | MXS_PAD_12MA | MXS_PAD_NOPULL)
-#define	MUX_CONFIG_SSP2	(MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP)
 
 const iomux_cfg_t iomux_setup[] = {
 	/* Debug UART (DUART) */
@@ -53,6 +53,31 @@ const iomux_cfg_t iomux_setup[] = {
 	MX28_PAD_PWM3__GPIO_3_28 |
 		MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP,
 
+#ifndef CONFIG_CMD_NAND
+	/* Left-hand side MMC slot (MMC1) */
+	MX28_PAD_GPMI_D00__SSP1_D0 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D01__SSP1_D1 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D02__SSP1_D2 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D03__SSP1_D3 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D04__SSP1_D4 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D05__SSP1_D5 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D06__SSP1_D6 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_D07__SSP1_D7 | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_RDY1__SSP1_CMD | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_RDY0__SSP1_CARD_DETECT | MUX_CONFIG_SSP1,
+	MX28_PAD_GPMI_WRN__SSP1_SCK | MUX_CONFIG_SSP1,
+	/* MMC1 Write-protect */
+	MX28_PAD_GPMI_RESETN__GPIO_0_28 | MXS_PAD_3V3 | MXS_PAD_PULLUP,
+	/* MMC1 slot power enable */
+	MX28_PAD_PWM4__GPIO_3_29 |
+		MXS_PAD_3V3 | MXS_PAD_4MA | MXS_PAD_PULLUP,
+	/* Not used for MMC1 */
+	MX28_PAD_GPMI_RDN__GPIO_0_24 | MXS_PAD_3V3,
+	MX28_PAD_GPMI_CLE__GPIO_0_27 | MXS_PAD_3V3,
+	MX28_PAD_GPMI_ALE__GPIO_0_26 | MXS_PAD_3V3,
+	MX28_PAD_GPMI_CE1N__GPIO_0_17 | MXS_PAD_3V3,
+	MX28_PAD_GPMI_CE0N__GPIO_0_16 | MXS_PAD_3V3,
+#endif /* nCONFIG_CMD_NAND */
 	/* FEC0 */
 	MX28_PAD_ENET0_MDC__ENET0_MDC | MUX_CONFIG_ENET,
 	MX28_PAD_ENET0_MDIO__ENET0_MDIO | MUX_CONFIG_ENET,
-- 
1.7.0.4



More information about the U-Boot mailing list