Lines Matching refs:avr_addr
24 static void __iomem *avr_addr; variable
37 char lsr = in_8(avr_addr + UART_LSR); in wd_stop()
41 out_8(avr_addr + UART_TX, string[i]); in wd_stop()
47 while (in_8(avr_addr + UART_LSR) & UART_LSR_DR) in wd_stop()
48 printk("%c", in_8(avr_addr + UART_RX)); in wd_stop()
64 if (!avr_addr || !avr_clock) in avr_uart_configure()
67 out_8(avr_addr + UART_LCR, cval); /* initialise UART */ in avr_uart_configure()
68 out_8(avr_addr + UART_MCR, 0); in avr_uart_configure()
69 out_8(avr_addr + UART_IER, 0); in avr_uart_configure()
73 out_8(avr_addr + UART_LCR, cval); /* Set character format */ in avr_uart_configure()
75 out_8(avr_addr + UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ in avr_uart_configure()
76 out_8(avr_addr + UART_DLL, quot & 0xff); /* LS of divisor */ in avr_uart_configure()
77 out_8(avr_addr + UART_DLM, quot >> 8); /* MS of divisor */ in avr_uart_configure()
78 out_8(avr_addr + UART_LCR, cval); /* reset DLAB */ in avr_uart_configure()
79 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO); /* enable FIFO */ in avr_uart_configure()
84 if (!avr_addr || !avr_clock) in avr_uart_send()
87 out_8(avr_addr + UART_TX, c); in avr_uart_send()
88 out_8(avr_addr + UART_TX, c); in avr_uart_send()
89 out_8(avr_addr + UART_TX, c); in avr_uart_send()
90 out_8(avr_addr + UART_TX, c); in avr_uart_send()
98 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO); /* enable FIFO */ in ls_uart_init()
99 out_8(avr_addr + UART_FCR, UART_FCR_ENABLE_FIFO | in ls_uart_init()
101 out_8(avr_addr + UART_FCR, 0); in ls_uart_init()
102 out_8(avr_addr + UART_IER, 0); in ls_uart_init()
105 (void) in_8(avr_addr + UART_LSR); in ls_uart_init()
106 (void) in_8(avr_addr + UART_RX); in ls_uart_init()
107 (void) in_8(avr_addr + UART_IIR); in ls_uart_init()
108 (void) in_8(avr_addr + UART_MSR); in ls_uart_init()
135 avr_addr = ioremap(res.start, 32); in ls_uarts_init()
136 if (!avr_addr) in ls_uarts_init()