Home
last modified time | relevance | path

Searched refs:uart_base (Results 1 – 9 of 9) sorted by relevance

/platform/amlogic-s912d/
A Duart.c70 static uintptr_t uart_base = 0; variable
77 UARTREG(uart_base, S912D_UART_WFIFO) = c; in uart_putc()
96 char c = UARTREG(uart_base, S912D_UART_RFIFO); in uart_irq_handler()
104 uart_base = UART0_AO_BASE; in uart_init_early()
108 UARTREG(uart_base,S912D_UART_CONTROL) |= S912D_UART_CONTROL_RSTRX | in uart_init_early()
116 UARTREG(uart_base,S912D_UART_CONTROL) |= S912D_UART_CONTROL_TXEN | in uart_init_early()
119 UARTREG(uart_base,S912D_UART_CONTROL) |= S912D_UART_CONTROL_INVRTS | in uart_init_early()
125 uart_base = UART0_AO_BASE; in uart_init()
143 UARTREG(uart_base,S912D_UART_CONTROL) |= S912D_UART_CONTROL_TXEN | in uart_init()
151 uint32_t temp2 = UARTREG(uart_base,S912D_UART_IRQ_CONTROL); in uart_init()
[all …]
/platform/sifive/
A Duart.c23 static volatile unsigned int *const uart_base = (unsigned int *)UART0_BASE; variable
43 while (uart_base[UART_TXDATA] & (1<<31)) in sifive_uart_write()
45 uart_base[UART_TXDATA] = (c & 0xff); in sifive_uart_write()
58 int i = uart_base[UART_RXDATA]; in sifive_uart_read()
71 int c = uart_base[UART_RXDATA]; in sifive_uart_irq()
84 uart_base[UART_DIV] = SIFIVE_FREQ / 115200; in sifive_uart_early_init()
85 uart_base[UART_TXCTRL] = 1; // txen in sifive_uart_early_init()
93 uart_base[UART_RXCTRL] = 1; // rxen, rxcnt = 0 in sifive_uart_init()
94 uart_base[UART_IE] |= (1<<1); // rxwvm in sifive_uart_init()
/platform/spacemit-k1/
A Duart.c23 static volatile uint8_t *const uart_base = (uint8_t *)UART0_BASE_VIRT; variable
30 return uart_base[offset * 4]; in uart_read_8()
34 uart_base[offset * 4] = val; in uart_write_8()
/platform/qemu-virt-riscv/
A Duart.c22 static volatile uint8_t *const uart_base = (uint8_t *)UART0_BASE_VIRT; variable
29 return uart_base[offset]; in uart_read_8()
33 uart_base[offset] = val; in uart_write_8()
/platform/jh7110/
A Duart.c23 static volatile uint8_t *const uart_base = (uint8_t *)UART0_BASE_VIRT; variable
30 return uart_base[offset * 4]; in uart_read_8()
34 uart_base[offset * 4] = val; in uart_write_8()
/platform/mediatek/mt6735/
A Duart.c88 void mtk_set_current_uart(MTK_UART uart_base) { in mtk_set_current_uart() argument
89 g_uart = uart_base; in mtk_set_current_uart()
/platform/mediatek/mt6797/
A Duart.c88 void mtk_set_current_uart(MTK_UART uart_base) { in mtk_set_current_uart() argument
89 g_uart = uart_base; in mtk_set_current_uart()
/platform/mediatek/mt6797/include/platform/
A Dmt_uart.h201 extern void mtk_set_current_uart(MTK_UART uart_base);
/platform/mediatek/mt6735/include/platform/
A Dmt_uart.h201 extern void mtk_set_current_uart(MTK_UART uart_base);

Completed in 682 milliseconds