AnsweredAssumed Answered

Additional UART in u-boot

Question asked by David Schmidt on Sep 21, 2018
Latest reply on Sep 28, 2018 by David Schmidt

Hi,

 

I need to use an additional UART interface (UART2) in my case during u-boot to send and recevice data to a peripheral. My u-boot console should still work with my current UART interface (UART1).

 

I have added my UART2 to my dtsi file:

&uart2 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_uart2>;
    status = "okay";
};

I suppose I need 3 functions, uart_init, uart_putc and uart_getc.

 

Can I use the routines from /drivers/serial/serial_mxc.c?

It allows only using one UART interface, defined by

#define UART_PHYS   CONFIG_MXC_UART_BASE

Thanks for the help.

Outcomes