unsigned int lcrh_rx; /* vendor-specific */
bool oversampling; /* vendor-specific */
bool autorts;
+ char type[12];
};
/* There is by now at least one vendor with differing details, so handle it */
static const char *pl011_type(struct uart_port *port)
{
- return port->type == PORT_AMBA ? "AMBA/PL011" : NULL;
+ struct uart_amba_port *uap = (struct uart_amba_port *)port;
+ return uap->port.type == PORT_AMBA ? uap->type : NULL;
}
/*
uap->port.flags = UPF_BOOT_AUTOCONF;
uap->port.line = i;
+ snprintf(uap->type, sizeof(uap->type), "PL011 rev%u", amba_rev(dev));
+
amba_ports[i] = uap;
amba_set_drvdata(dev, uap);