uart_cpu_getdev
int uart_cpu_getdev(int, struct uart_devinfo *);
if (uart_cpu_getdev(UART_DEV_DBGPORT, &uart_dbgport))
if (uart_cpu_getdev(UART_DEV_CONSOLE, &uart_console))