Lines Matching refs:uart
44 static void meson_serial_init(struct meson_uart *uart) in meson_serial_init() argument
48 val = readl(&uart->control); in meson_serial_init()
50 writel(val, &uart->control); in meson_serial_init()
52 writel(val, &uart->control); in meson_serial_init()
54 writel(val, &uart->control); in meson_serial_init()
60 struct meson_uart *const uart = plat->reg; in meson_serial_probe() local
62 meson_serial_init(uart); in meson_serial_probe()
70 struct meson_uart *const uart = plat->reg; in meson_serial_getc() local
72 if (readl(&uart->status) & AML_UART_RX_EMPTY) in meson_serial_getc()
75 return readl(&uart->rfifo) & 0xff; in meson_serial_getc()
81 struct meson_uart *const uart = plat->reg; in meson_serial_putc() local
83 if (readl(&uart->status) & AML_UART_TX_FULL) in meson_serial_putc()
86 writel(ch, &uart->wfifo); in meson_serial_putc()
94 struct meson_uart *const uart = plat->reg; in meson_serial_pending() local
95 uint32_t status = readl(&uart->status); in meson_serial_pending()