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!
Solved! Go to Solution.
Hello Richard destiny,
Here I send you a document you can refer to.
Have a nice day.
Best Regards
Dan
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