imx6q change uboot debug uart 1 to uart 2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6q change uboot debug uart 1 to uart 2

Jump to solution
1,574 Views
richarddestiny
Contributor III

Hi,ALL

         I want to  change imx6q  debug uart  form  uart1 to uart2,and  i made the  following changes:

board/freescale/mx6qsabresd/mx6qsabresd.c:

iomux_v3_cfg_t const uart4_pads[] = {

  MX6_PAD_CSI0_DAT12__UART4_TXD | MUX_PAD_CTRL(UART_PAD_CTRL),

  MX6_PAD_CSI0_DAT13__UART4_RXD | MUX_PAD_CTRL(UART_PAD_CTRL),

};

static void setup_iomux_uart(void)

{

      imx_iomux_v3_setup_multiple_pads(uart1_pads, ARRAY_SIZE(uart1_pads));

      imx_iomux_v3_setup_multiple_pads(uart4_pads, ARRAY_SIZE(uart4_pads));

}

board/freescale/mx6qsabresd/mx6qsabresd.h:

#define CONFIG_MAC_UART_BASE    UART4_BASE

#define CONFIG_CONSOLE_DEV        "ttymxc3"

but it didn't work, where should I need to change?  thanks!

                 best regards!

Labels (1)
0 Kudos
Reply
1 Solution
1,029 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hello Richard destiny,

Here I send you a document you can refer to.

Have a nice day.

Best Regards

Dan

View solution in original post

0 Kudos
Reply
2 Replies
1,030 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hello Richard destiny,

Here I send you a document you can refer to.

Have a nice day.

Best Regards

Dan

0 Kudos
Reply
1,029 Views
richarddestiny
Contributor III

Hi,Dan Wang

       thanks for  your reply.

        the document you send has fix my probem,thank you very mach!

the details:

iomux_v3_cfg_t const uart4_pads[] = {

  MX6_PAD_CSI0_DAT12__UART4_TXD | MUX_PAD_CTRL(UART_PAD_CTRL),

  MX6_PAD_CSI0_DAT13__UART4_RXD | MUX_PAD_CTRL(UART_PAD_CTRL),

};

change to:

iomux_v3_cfg_t const uart4_pads[] = {

  MX6_PAD_KEY_COL0__UART4_TXD | MUX_PAD_CTRL(UART_PAD_CTRL),

  MX6_PAD_KEY_ROW0__UART4_RXD | MUX_PAD_CTRL(UART_PAD_CTRL),

};

Best Regards

Richard

0 Kudos
Reply