Skip to content

Commit

Permalink
i.mx6q: mx6qsabrelite: Setup uart1 pinmux
Browse files Browse the repository at this point in the history
This allows the Linux kernel to use UART1 before pinmux
support is added for UART1

Signed-off-by: Troy Kisky <[email protected]>
CC: Troy Kisky <[email protected]>
CC: Jason Liu <[email protected]>
CC: Stefano Babic <[email protected]>
Acked-by: Jason Liu <[email protected]>
  • Loading branch information
tkisky authored and albert-aribaud-u-boot committed Feb 12, 2012
1 parent 4591f52 commit 8e7d7b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/freescale/mx6qsabrelite/mx6qsabrelite.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ int dram_init(void)
return 0;
}

iomux_v3_cfg_t uart1_pads[] = {
MX6Q_PAD_SD3_DAT6__UART1_RXD | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6Q_PAD_SD3_DAT7__UART1_TXD | MUX_PAD_CTRL(UART_PAD_CTRL),
};

iomux_v3_cfg_t uart2_pads[] = {
MX6Q_PAD_EIM_D26__UART2_TXD | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6Q_PAD_EIM_D27__UART2_RXD | MUX_PAD_CTRL(UART_PAD_CTRL),
Expand Down Expand Up @@ -74,6 +79,7 @@ iomux_v3_cfg_t usdhc4_pads[] = {

static void setup_iomux_uart(void)
{
imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));
imx_iomux_v3_setup_multiple_pads(uart2_pads, ARRAY_SIZE(uart2_pads));
}

Expand Down

0 comments on commit 8e7d7b6

Please sign in to comment.