diff mbox

[U-Boot] imx: mx35pdk: Fix MUX2_CTR GPIO

Message ID 1367840031-25944-1-git-send-email-benoit.thebaudeau@advansee.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Benoît Thébaudeau May 6, 2013, 11:33 a.m. UTC
MUX2_CTR is on GPIO1[5], not GPIO2[5], and it needs to be set high in order to
connect the FEC.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
---
 board/freescale/mx35pdk/mx35pdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic May 6, 2013, 1:22 p.m. UTC | #1
On 06/05/2013 13:33, Benoît Thébaudeau wrote:
> MUX2_CTR is on GPIO1[5], not GPIO2[5], and it needs to be set high in order to
> connect the FEC.
> 
> Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
> ---
>  board/freescale/mx35pdk/mx35pdk.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/board/freescale/mx35pdk/mx35pdk.c b/board/freescale/mx35pdk/mx35pdk.c
> index 12e84d7..9f667d2 100644
> --- a/board/freescale/mx35pdk/mx35pdk.c
> +++ b/board/freescale/mx35pdk/mx35pdk.c
> @@ -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
diff mbox

Patch

diff --git a/board/freescale/mx35pdk/mx35pdk.c b/board/freescale/mx35pdk/mx35pdk.c
index 12e84d7..9f667d2 100644
--- a/board/freescale/mx35pdk/mx35pdk.c
+++ b/board/freescale/mx35pdk/mx35pdk.c
@@ -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;