Searched refs:avr_addr (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c23 static void __iomem *avr_addr; variable
36 char lsr = in_8(avr_addr + UART_LSR); wd_stop()
40 out_8(avr_addr + UART_TX, string[i]); wd_stop()
46 while (in_8(avr_addr + UART_LSR) & UART_LSR_DR) wd_stop()
47 printk("%c", in_8(avr_addr + UART_RX)); wd_stop()
63 if (!avr_addr || !avr_clock) avr_uart_configure()
66 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ avr_uart_configure()
67 out_8(avr_addr + UART_MCR, 0); avr_uart_configure()
68 out_8(avr_addr + UART_IER, 0); avr_uart_configure()
72 out_8(avr_addr + UART_LCR, cval); /* Set character format */ avr_uart_configure()
74 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ avr_uart_configure()
75 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ avr_uart_configure()
76 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ avr_uart_configure()
77 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ avr_uart_configure()
78 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO); /* enable FIFO */ avr_uart_configure()
83 if (!avr_addr || !avr_clock) avr_uart_send()
86 out_8(avr_addr + UART_TX, c); avr_uart_send()
87 out_8(avr_addr + UART_TX, c); avr_uart_send()
88 out_8(avr_addr + UART_TX, c); avr_uart_send()
89 out_8(avr_addr + UART_TX, c); avr_uart_send()
97 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO); /* enable FIFO */ ls_uart_init()
98 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO | ls_uart_init()
100 out_8(avr_addr + UART_FCR, 0); ls_uart_init()
101 out_8(avr_addr + UART_IER, 0); ls_uart_init()
104 (void) in_8(avr_addr + UART_LSR); ls_uart_init()
105 (void) in_8(avr_addr + UART_RX); ls_uart_init()
106 (void) in_8(avr_addr + UART_IIR); ls_uart_init()
107 (void) in_8(avr_addr + UART_MSR); ls_uart_init()
130 avr_addr = ioremap(phys_addr, 32); ls_uarts_init()
131 if (!avr_addr) ls_uarts_init()

Completed in 30 milliseconds