Skip to contentSkip to conversation

imx: mx35pdk: Fix MUX2_CTR GPIO

PATCH New Benoît Thébaudeau 2 participants 2 messages May 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: mx35pdk: Fix MUX2_CTR GPIO

MUX2_CTR is on GPIO1[5], not GPIO2[5], and it needs to be set high in order to connect the FEC.

---
 board/freescale/mx35pdk/mx35pdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx35pdk/mx35pdk.c +1 -1
index 12e84d7..9f667d2 100644
@@ -245,7 +245,7 @@ int board_late_init(void)
 
 		imx_iomux_v3_setup_pad(MX35_PAD_COMPARE__GPIO1_5);
 
-		gpio_direction_output(IMX_GPIO_NR(2, 5), 1);
+		gpio_direction_output(IMX_GPIO_NR(1, 5), 1);
 	}
 
 	val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 imx: mx35pdk: Fix MUX2_CTR GPIO

Quoted 14 lines · Beno?t Th?baudeau

MUX2_CTR is on GPIO1[5], not GPIO2[5], and it needs to be set high in order to connect the FEC.

---
 board/freescale/mx35pdk/mx35pdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx35pdk/mx35pdk.c +0 -0
index 12e84d7..9f667d2 100644

board/freescale/mx35pdk/mx35pdk.c int board_late_init(void) · line 251

Quoted 8 lines
board/freescale/mx35pdk/mx35pdk.c +1 -1
@@ -245,7 +245,7 @@ int board_late_init(void)
 
 		imx_iomux_v3_setup_pad(MX35_PAD_COMPARE__GPIO1_5);
 
-		gpio_direction_output(IMX_GPIO_NR(2, 5), 1);
+		gpio_direction_output(IMX_GPIO_NR(1, 5), 1);
 	}
 
 	val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;

Thanks for fixing it !

Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================