HI ,
I am facing the problem related to serial console . The default console given for our board is at UART1 bu I change it to UART 2.For that I made the below changes in U-boot:
#define CONFIG_MXC_UART_BASE UART2_BASE
#define CONFIG_CONSOLE_DEV "ttymxc1"
also configured the UART in customboard.c file like
iomux_v3_cfg_t const uart2_pads[] = {
MX6_PAD_SD3_DAT5__UART2_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_SD3_DAT4__UART2_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_SD3_CMD__UART2_RTS_B | MUX_PAD_CTRL(UART_PAD_CTRL),
MX6_PAD_SD3_CLK__UART2_CTS_B | 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(uart2_pads, ARRAY_SIZE(uart2_pads));
}
int board_early_init_f(void)
{
setup_iomux_uart();
}
After doing all these changes when we connect the board its showing garbage value.. But when kernel is loaded then its showing messages on UART2.Please Suggest the solution.
Regards,
hrushi
Solved! Go to Solution.
Hi Hrushi
one can debug it using attached Porting Guide
sect.1.4 Debugging, please check uboot/drivers/serial/serial_mxc.c
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Hrushi
one can debug it using attached Porting Guide
sect.1.4 Debugging, please check uboot/drivers/serial/serial_mxc.c
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------