};
struct sci_of_data of_sci_rsci_data = {
- .type = SCI_PORT_RSCI,
+ .type = RSCI_PORT_SCIF16,
.ops = &rsci_port_ops,
.uart_ops = &rsci_uart_ops,
.params = &rsci_port_params,
static bool sci_is_rsci_type(u8 type)
{
- return (type == SCI_PORT_RSCI);
+ return (type == RSCI_PORT_SCIF16);
}
static int sci_handle_fifo_overrun(struct uart_port *port)
if (sci_port->type == PORT_HSCIF) {
clk_names[SCI_SCK] = "hsck";
- } else if (sci_port->type == SCI_PORT_RSCI) {
+ } else if (sci_port->type == RSCI_PORT_SCIF16) {
clk_names[SCI_FCK] = "operation";
clk_names[SCI_BRG_INT] = "bus";
}
if (IS_ERR(clk))
return PTR_ERR(clk);
- if (!clk && sci_port->type == SCI_PORT_RSCI &&
+ if (!clk && sci_port->type == RSCI_PORT_SCIF16 &&
(i == SCI_FCK || i == SCI_BRG_INT))
return dev_err_probe(dev, -ENODEV, "failed to get %s\n", name);
else
sci_port->rx_trigger = 8;
break;
- case SCI_PORT_RSCI:
+ case RSCI_PORT_SCIF16:
sci_port->rx_trigger = 16;
break;
default: