[U-Boot] [PATCH 3/6] mx35: Fix broken pin definitions

Stefano Babic
2012-08-20T10:15:12Z

On 14/08/2012 21:39, Beno?t Th?baudeau wrote:
> Signed-off-by: Beno?t Th?baudeau <benoit.thebaudeau@advansee.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
> .../arch/arm/include/asm/arch-mx35/mx35_pins.h | 3 ---
> .../board/CarMediaLab/flea3/flea3.c | 4 ++--
> 2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/mx35_pins.h u-boot-4d3c95f/arch/arm/include/asm/arch-mx35/mx35_pins.h
> index 8c38139..00e5e75 100644
> --- u-boot-4d3c95f.orig/arch/arm/include/asm/arch-mx35/mx35_pins.h
> +++ u-boot-4d3c95f/arch/arm/include/asm/arch-mx35/mx35_pins.h
> @@ -347,9 +347,6 @@ typedef enum iomux_pins {
> MX35_PIN_FEC_TDATA2 = _MXC_BUILD_GPIO_PIN(2, 21, 0x31C, 0x780),
> MX35_PIN_FEC_RDATA3 = _MXC_BUILD_GPIO_PIN(2, 22, 0x320, 0x784),
> MX35_PIN_FEC_TDATA3 = _MXC_BUILD_GPIO_PIN(2, 23, 0x324, 0x788),
> -
> - MX35_PIN_RTS2_UART3_RXD_MUX = _MXC_BUILD_NON_GPIO_PIN(0x1a0, 0x5e4),
> - MX35_PIN_CTS2_UART3_TXD_MUX = _MXC_BUILD_NON_GPIO_PIN(0x1a4, 0x5e8),
> } iomux_pin_name_t;
>
> #endif
> diff --git u-boot-4d3c95f.orig/board/CarMediaLab/flea3/flea3.c u-boot-4d3c95f/board/CarMediaLab/flea3/flea3.c
> index 34ede87..5015a1a 100644
> --- u-boot-4d3c95f.orig/board/CarMediaLab/flea3/flea3.c
> +++ u-boot-4d3c95f/board/CarMediaLab/flea3/flea3.c
> @@ -165,8 +165,8 @@ static void board_setup_sdram(void)
>
> static void setup_iomux_uart3(void)
> {
> - mxc_request_iomux(MX35_PIN_RTS2_UART3_RXD_MUX, MUX_CONFIG_ALT7);
> - mxc_request_iomux(MX35_PIN_CTS2_UART3_TXD_MUX, MUX_CONFIG_ALT7);
> + mxc_request_iomux(MX35_PIN_RTS2, MUX_CONFIG_ALT7);
> + mxc_request_iomux(MX35_PIN_CTS2, MUX_CONFIG_ALT7);
> }
>

That is correct, the pin was already defined.

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

Best regards,
Stefano Babic