| 86 | } |
| 87 | |
| 88 | unsigned char uart_rx_byte(unsigned int idx) |
| 89 | { |
| 90 | struct sifive_uart_registers *regs = uart_platform_baseptr(idx); |
| 91 | uint32_t rxdata; |
| 92 | |
| 93 | do { |
| 94 | rxdata = read32(®s->rxdata); |
| 95 | } while (rxdata & RXDATA_EMPTY); |
| 96 | |
| 97 | return rxdata & 0xff; |
| 98 | } |
| 99 | |
| 100 | unsigned int uart_input_clock_divider(void) |
| 101 | { |
nothing calls this directly
no test coverage detected