Go to the documentation of this file.
21 #define ULITE_STATUS 0x08
22 #define ULITE_CONTROL 0x0c
24 #define ULITE_STATUS_RXVALID 0x01
25 #define ULITE_STATUS_TXFULL 0x08
27 #define ULITE_CONTROL_RST_RX 0x02
29 static void * reg_base;
31 static int uartlite_open(
void)
38 static void uartlite_putc(
unsigned char c)
46 static unsigned char uartlite_getc(
void)
54 static u8 uartlite_tstc(
void)
63 unsigned long reg_phys;
65 n = getprop(devp,
"virtual-reg", ®_base,
sizeof(reg_base));
66 if (n !=
sizeof(reg_base)) {
70 reg_base = (
void *)reg_phys;
73 scdp->
open = uartlite_open;
74 scdp->
putc = uartlite_putc;
75 scdp->
getc = uartlite_getc;
76 scdp->
tstc = uartlite_tstc;