mx35pdk:Use IMX_GPIO_NR macro
PATCH 1/1 mx35pdk:Use IMX_GPIO_NR macro
Use IMX_GPO_NR macro
Signed-off-by Ashok Kumar Reddy <[email protected]>
--- board/freescale/mx35pdk/mx35pdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx35pdk/mx35pdk.c +1 -1
@@ -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 ;
Signature · 1 line
1.7.9.5
PATCH 1/1 mx35pdk:Use IMX_GPIO_NR macro
Quoted 13 lines · Ashok Kumar Reddy
Use
IMX_GPO_NRmacroSigned-off-by Ashok Kumar Reddy <[email protected]>--- board/freescale/mx35pdk/mx35pdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/freescale/mx35pdk/mx35pdk.c +0
-0
board/freescale/mx35pdk/mx35pdk.c int board_late_init(void) · line 252
Quoted 8 lines
board/freescale/mx35pdk/mx35pdk.c +1
-1@@ -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 <[email protected]>
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 =====================================================================
PATCH 1/1 mx35pdk:Use IMX_GPIO_NR macro
In reply to Ashok Kumar ReddyQuoted 13 lines · Ashok Kumar Reddy
Use
IMX_GPO_NRmacroSigned-off-by Ashok Kumar Reddy <[email protected]>--- board/freescale/mx35pdk/mx35pdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)board/freescale/mx35pdk/mx35pdk.c +0
-0
board/freescale/mx35pdk/mx35pdk.c int board_late_init(void) · line 252
Quoted 8 lines
board/freescale/mx35pdk/mx35pdk.c +1
-1@@ -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
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 =====================================================================