Lines Matching refs:cdns_uart_data
1001 struct cdns_uart *cdns_uart_data = port->private_data; in cdns_uart_get_mctrl() local
1003 if (cdns_uart_data->cts_override) in cdns_uart_get_mctrl()
1023 struct cdns_uart *cdns_uart_data = port->private_data; in cdns_uart_set_mctrl() local
1025 if (cdns_uart_data->cts_override) in cdns_uart_set_mctrl()
1469 struct cdns_uart *cdns_uart_data; in cdns_uart_probe() local
1472 cdns_uart_data = devm_kzalloc(&pdev->dev, sizeof(*cdns_uart_data), in cdns_uart_probe()
1474 if (!cdns_uart_data) in cdns_uart_probe()
1508 cdns_uart_data->cdns_uart_driver = &cdns_uart_uart_driver; in cdns_uart_probe()
1514 cdns_uart_data->quirks = data->quirks; in cdns_uart_probe()
1517 cdns_uart_data->pclk = devm_clk_get(&pdev->dev, "pclk"); in cdns_uart_probe()
1518 if (PTR_ERR(cdns_uart_data->pclk) == -EPROBE_DEFER) { in cdns_uart_probe()
1519 rc = PTR_ERR(cdns_uart_data->pclk); in cdns_uart_probe()
1523 if (IS_ERR(cdns_uart_data->pclk)) { in cdns_uart_probe()
1524 cdns_uart_data->pclk = devm_clk_get(&pdev->dev, "aper_clk"); in cdns_uart_probe()
1525 if (IS_ERR(cdns_uart_data->pclk)) { in cdns_uart_probe()
1526 rc = PTR_ERR(cdns_uart_data->pclk); in cdns_uart_probe()
1532 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "uart_clk"); in cdns_uart_probe()
1533 if (PTR_ERR(cdns_uart_data->uartclk) == -EPROBE_DEFER) { in cdns_uart_probe()
1534 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1538 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1539 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_uart_probe()
1540 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1541 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1547 rc = clk_prepare_enable(cdns_uart_data->pclk); in cdns_uart_probe()
1552 rc = clk_prepare_enable(cdns_uart_data->uartclk); in cdns_uart_probe()
1571 cdns_uart_data->clk_rate_change_nb.notifier_call = in cdns_uart_probe()
1573 if (clk_notifier_register(cdns_uart_data->uartclk, in cdns_uart_probe()
1574 &cdns_uart_data->clk_rate_change_nb)) in cdns_uart_probe()
1596 port->uartclk = clk_get_rate(cdns_uart_data->uartclk); in cdns_uart_probe()
1597 port->private_data = cdns_uart_data; in cdns_uart_probe()
1600 cdns_uart_data->port = port; in cdns_uart_probe()
1638 cdns_uart_data->cts_override = of_property_read_bool(pdev->dev.of_node, in cdns_uart_probe()
1650 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_probe()
1651 &cdns_uart_data->clk_rate_change_nb); in cdns_uart_probe()
1654 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_probe()
1656 clk_disable_unprepare(cdns_uart_data->pclk); in cdns_uart_probe()
1659 uart_unregister_driver(cdns_uart_data->cdns_uart_driver); in cdns_uart_probe()
1672 struct cdns_uart *cdns_uart_data = port->private_data; in cdns_uart_remove() local
1676 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_remove()
1677 &cdns_uart_data->clk_rate_change_nb); in cdns_uart_remove()
1679 uart_remove_one_port(cdns_uart_data->cdns_uart_driver, port); in cdns_uart_remove()
1681 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_remove()
1682 clk_disable_unprepare(cdns_uart_data->pclk); in cdns_uart_remove()
1694 uart_unregister_driver(cdns_uart_data->cdns_uart_driver); in cdns_uart_remove()