Lines Matching refs:uart
93 struct uart_8250_port uart;
103 memset(&uart, 0, sizeof(uart));
105 uart.port.membase = devm_ioremap(&pdev->dev, res->start,
107 if (!uart.port.membase)
116 dev_err(&pdev->dev, "uart clock not found\n");
134 dev_err(&pdev->dev, "unable to enable uart clock\n");
141 spin_lock_init(&uart.port.lock);
142 uart.port.dev = &pdev->dev;
143 uart.port.mapbase = res->start;
144 uart.port.type = PORT_16550A;
145 uart.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SKIP_TEST;
146 uart.port.uartclk = clk_get_rate(data->clk_uart);
147 uart.port.private_data = data;
148 uart.port.rs485_config = lpc18xx_rs485_config;
149 uart.port.rs485_supported = lpc18xx_rs485_supported;
150 uart.port.serial_out = lpc18xx_uart_serial_out;
152 ret = uart_read_port_properties(&uart.port);
156 uart.port.iotype = UPIO_MEM32;
157 uart.port.regshift = 2;
159 uart.dma = &data->dma;
160 uart.dma->rxconf.src_maxburst = 1;
161 uart.dma->txconf.dst_maxburst = 1;
163 ret = serial8250_register_8250_port(&uart);
191 { .compatible = "nxp,lpc1850-uart" },
200 .name = "lpc18xx-uart",