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