imx6q change uboot debug uart 1 to uart 2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6q change uboot debug uart 1 to uart 2

跳至解决方案
2,085 次查看
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!

标签 (1)
0 项奖励
回复
1 解答
1,540 次查看
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 项奖励
回复
2 回复数
1,541 次查看
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 项奖励
回复
1,540 次查看
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 项奖励
回复