Searched refs:com_port (Results 1 – 5 of 5) sorted by relevance
/openbmc/u-boot/drivers/serial/ |
H A D | ns16550.c | 130 ns16550_writeb(com_port, \ 131 (unsigned char *)addr - (unsigned char *)com_port, value) 133 ns16550_readb(com_port, \ 134 (unsigned char *)addr - (unsigned char *)com_port) 149 static void NS16550_setbrg(NS16550_t com_port, int baud_divisor) in NS16550_setbrg() argument 152 int lcr_val = serial_in(&com_port->lcr) & ~UART_LCR_BKSE; in NS16550_setbrg() 154 serial_out(UART_LCR_BKSE | lcr_val, &com_port->lcr); in NS16550_setbrg() 155 serial_out(baud_divisor & 0xff, &com_port->dll); in NS16550_setbrg() 156 serial_out((baud_divisor >> 8) & 0xff, &com_port->dlm); in NS16550_setbrg() 157 serial_out(lcr_val, &com_port->lcr); in NS16550_setbrg() [all …]
|
H A D | serial_omap.c | 67 struct NS16550 *com_port = (struct NS16550 *)CONFIG_DEBUG_UART_BASE; in _debug_uart_init() local 70 baud_divisor = ns16550_calc_divisor(com_port, CONFIG_DEBUG_UART_CLOCK, in _debug_uart_init() 72 serial_dout(&com_port->ier, CONFIG_SYS_NS16550_IER); in _debug_uart_init() 73 serial_dout(&com_port->mdr1, 0x7); in _debug_uart_init() 74 serial_dout(&com_port->mcr, UART_MCRVAL); in _debug_uart_init() 75 serial_dout(&com_port->fcr, UART_FCR_DEFVAL); in _debug_uart_init() 77 serial_dout(&com_port->lcr, UART_LCR_BKSE | UART_LCRVAL); in _debug_uart_init() 78 serial_dout(&com_port->dll, baud_divisor & 0xff); in _debug_uart_init() 79 serial_dout(&com_port->dlm, (baud_divisor >> 8) & 0xff); in _debug_uart_init() 80 serial_dout(&com_port->lcr, UART_LCRVAL); in _debug_uart_init() [all …]
|
/openbmc/u-boot/include/ |
H A D | debug_uart.h | 114 serial_out_shift((char *)com_port + \ 115 ((char *)reg - (char *)com_port) * \ 119 serial_in_shift((char *)com_port + \ 120 ((char *)reg - (char *)com_port) * \
|
H A D | ns16550.h | 206 void NS16550_init(NS16550_t com_port, int baud_divisor); 207 void NS16550_putc(NS16550_t com_port, char c); 208 char NS16550_getc(NS16550_t com_port); 209 int NS16550_tstc(NS16550_t com_port); 210 void NS16550_reinit(NS16550_t com_port, int baud_divisor);
|
/openbmc/u-boot/lib/efi/ |
H A D | efi_stub.c | 69 NS16550_t com_port = (NS16550_t)0x3f8; in putc() local 71 while ((inb((ulong)&com_port->lsr) & UART_LSR_THRE) == 0) in putc() 73 outb(ch, (ulong)&com_port->thr); in putc()
|