Patchwork [U-Boot] mx35pdk:Use IMX_GPIO_NR macro

login
register
mail settings
Submitter Ashok
Date Nov. 7, 2012, 5:37 p.m.
Message ID <509A9C4B.9030301@gmail.com>
Download mbox | patch
Permalink /patch/197689/
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Comments

Ashok - Nov. 7, 2012, 5:37 p.m.
Use IMX_GPO_NR macro

Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.com>
---
 board/freescale/mx35pdk/mx35pdk.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Stefano Babic - Nov. 7, 2012, 5:49 p.m.
On 07/11/2012 18:37, Ashok Kumar Reddy wrote:
> Use IMX_GPO_NR macro
> 
> Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.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 7cb6b30..e9b3827 100644
> --- a/board/freescale/mx35pdk/mx35pdk.c
> +++ b/board/freescale/mx35pdk/mx35pdk.c
> @@ -246,7 +246,7 @@ int board_late_init(void)
>  		mxc_request_iomux(MX35_PIN_COMPARE, MUX_CONFIG_GPIO);
>  		mxc_iomux_set_input(MUX_IN_GPIO1_IN_5, INPUT_CTL_PATH0);
>  
> -		gpio_direction_output(37, 1);
> +		gpio_direction_output(IMX_GPIO_NR(2, 5), 1);
>  	}
>  
>  	val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
Stefano Babic - Jan. 5, 2013, 4:45 p.m.
On 07/11/2012 18:37, Ashok Kumar Reddy wrote:
> Use IMX_GPO_NR macro
> 
> Signed-off-by: Ashok Kumar Reddy <ashokkourla2000@gmail.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 7cb6b30..e9b3827 100644
> --- a/board/freescale/mx35pdk/mx35pdk.c
> +++ b/board/freescale/mx35pdk/mx35pdk.c
> @@ -246,7 +246,7 @@ int board_late_init(void)
>  		mxc_request_iomux(MX35_PIN_COMPARE, MUX_CONFIG_GPIO);
>  		mxc_iomux_set_input(MUX_IN_GPIO1_IN_5, INPUT_CTL_PATH0);
>  
> -		gpio_direction_output(37, 1);
> +		gpio_direction_output(IMX_GPIO_NR(2, 5), 1);
>  	}
>  
>  	val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;
> 

Sorry for delay.

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Patch

diff --git a/board/freescale/mx35pdk/mx35pdk.c b/board/freescale/mx35pdk/mx35pdk.c
index 7cb6b30..e9b3827 100644
--- a/board/freescale/mx35pdk/mx35pdk.c
+++ b/board/freescale/mx35pdk/mx35pdk.c
@@ -246,7 +246,7 @@  int board_late_init(void)
 		mxc_request_iomux(MX35_PIN_COMPARE, MUX_CONFIG_GPIO);
 		mxc_iomux_set_input(MUX_IN_GPIO1_IN_5, INPUT_CTL_PATH0);
 
-		gpio_direction_output(37, 1);
+		gpio_direction_output(IMX_GPIO_NR(2, 5), 1);
 	}
 
 	val = mc9sdz60_reg_read(MC9SDZ60_REG_GPIO_1) | 0x04;