uart_config
struct uart_config uart_config;
nxp_cmd5.payload_len = __cpu_to_le32(sizeof(uart_config));
} else if (req_len == sizeof(uart_config)) {
uart_config.clkdiv.address = __cpu_to_le32(clkdivaddr);
uart_config.clkdiv.value = __cpu_to_le32(0x01000000);
uart_config.clkdiv.value = __cpu_to_le32(0x00c00000);
uart_config.uartdiv.address = __cpu_to_le32(uartdivaddr);
uart_config.uartdiv.value = __cpu_to_le32(1);
uart_config.mcr.address = __cpu_to_le32(uartmcraddr);
uart_config.mcr.value = __cpu_to_le32(MCR);
uart_config.re_init.address = __cpu_to_le32(uartreinitaddr);
uart_config.re_init.value = __cpu_to_le32(INIT);
uart_config.icr.address = __cpu_to_le32(uarticraddr);
uart_config.icr.value = __cpu_to_le32(ICR);
uart_config.fcr.address = __cpu_to_le32(uartfcraddr);
uart_config.fcr.value = __cpu_to_le32(FCR);
uart_config.crc = __cpu_to_be32(crc32_be(0UL, (char *)&uart_config,
sizeof(uart_config) - 4));
serdev_device_write_buf(nxpdev->serdev, (u8 *)&uart_config, sizeof(uart_config));
port->fifosize = uart_config[up->port.type].fifo_size;
up->capabilities = uart_config[port->type].flags;
up->tx_loadsz = uart_config[port->type].tx_loadsz;
port->fifosize = uart_config[port->type].fifo_size;
up->tx_loadsz = uart_config[port->type].tx_loadsz;
up->capabilities = uart_config[port->type].flags;
const struct serial8250_config *conf_type = &uart_config[up->port.type];
const struct serial8250_config *conf_type = &uart_config[up->port.type];
const struct serial8250_config *conf_type = &uart_config[up->port.type];
up->fcr = uart_config[up->port.type].fcr;
ser->type >= ARRAY_SIZE(uart_config) || ser->type == PORT_CIRRUS ||
if (type >= ARRAY_SIZE(uart_config))
return uart_config[type].name;
up->port.fifosize = uart_config[type].fifo_size;
up->tx_loadsz = uart_config[type].tx_loadsz;
up->capabilities = uart_config[type].flags;
static const struct serial8250_config uart_config[] = {
up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size;
if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) {
static const struct serial_uart_config uart_config[] = {
if (uart_config[up->port.type].flags & UART_USE_FIFO) {
if (uart_config[up->port.type].flags & UART_STARTECH) {
if (type >= ARRAY_SIZE(uart_config))
return uart_config[type].name;