Lines Matching refs:uart
93 struct uart_8250_port uart;
107 memset(&uart, 0, sizeof(uart));
109 uart.port.membase = devm_ioremap(&pdev->dev, res->start,
111 if (!uart.port.membase)
120 dev_err(&pdev->dev, "uart clock not found\n");
138 dev_err(&pdev->dev, "unable to enable uart clock\n");
144 uart.port.line = ret;
149 spin_lock_init(&uart.port.lock);
150 uart.port.dev = &pdev->dev;
151 uart.port.irq = irq;
152 uart.port.iotype = UPIO_MEM32;
153 uart.port.mapbase = res->start;
154 uart.port.regshift = 2;
155 uart.port.type = PORT_16550A;
156 uart.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SKIP_TEST;
157 uart.port.uartclk = clk_get_rate(data->clk_uart);
158 uart.port.private_data = data;
159 uart.port.rs485_config = lpc18xx_rs485_config;
160 uart.port.rs485_supported = lpc18xx_rs485_supported;
161 uart.port.serial_out = lpc18xx_uart_serial_out;
163 uart.dma = &data->dma;
164 uart.dma->rxconf.src_maxburst = 1;
165 uart.dma->txconf.dst_maxburst = 1;
167 ret = serial8250_register_8250_port(&uart);
197 { .compatible = "nxp,lpc1850-uart" },
206 .name = "lpc18xx-uart",