AnsweredAssumed Answered

imx6q change uboot   debug uart 1 to  uart 2

Question asked by Richard destiny on Jun 30, 2015
Latest reply on Jun 30, 2015 by Richard destiny

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!

 

Outcomes