imx6q change uboot debug uart 1 to uart 2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6q change uboot debug uart 1 to uart 2

ソリューションへジャンプ
2,096件の閲覧回数
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,551件の閲覧回数
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,552件の閲覧回数
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,551件の閲覧回数
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 件の賞賛
返信