Lines Matching refs:cdns_uart_data

1423 	struct cdns_uart *cdns_uart_data;  in cdns_uart_probe()  local
1426 cdns_uart_data = devm_kzalloc(&pdev->dev, sizeof(*cdns_uart_data), in cdns_uart_probe()
1428 if (!cdns_uart_data) in cdns_uart_probe()
1438 cdns_uart_data->quirks = data->quirks; in cdns_uart_probe()
1441 cdns_uart_data->pclk = devm_clk_get(&pdev->dev, "pclk"); in cdns_uart_probe()
1442 if (IS_ERR(cdns_uart_data->pclk)) { in cdns_uart_probe()
1443 cdns_uart_data->pclk = devm_clk_get(&pdev->dev, "aper_clk"); in cdns_uart_probe()
1444 if (!IS_ERR(cdns_uart_data->pclk)) in cdns_uart_probe()
1447 if (IS_ERR(cdns_uart_data->pclk)) { in cdns_uart_probe()
1449 return PTR_ERR(cdns_uart_data->pclk); in cdns_uart_probe()
1452 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "uart_clk"); in cdns_uart_probe()
1453 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1454 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_uart_probe()
1455 if (!IS_ERR(cdns_uart_data->uartclk)) in cdns_uart_probe()
1458 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1460 return PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1463 rc = clk_prepare_enable(cdns_uart_data->pclk); in cdns_uart_probe()
1468 rc = clk_prepare_enable(cdns_uart_data->uartclk); in cdns_uart_probe()
1487 cdns_uart_data->clk_rate_change_nb.notifier_call = in cdns_uart_probe()
1489 if (clk_notifier_register(cdns_uart_data->uartclk, in cdns_uart_probe()
1490 &cdns_uart_data->clk_rate_change_nb)) in cdns_uart_probe()
1524 port->uartclk = clk_get_rate(cdns_uart_data->uartclk); in cdns_uart_probe()
1525 port->private_data = cdns_uart_data; in cdns_uart_probe()
1526 cdns_uart_data->port = port; in cdns_uart_probe()
1566 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_probe()
1567 &cdns_uart_data->clk_rate_change_nb); in cdns_uart_probe()
1570 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_probe()
1572 clk_disable_unprepare(cdns_uart_data->pclk); in cdns_uart_probe()
1586 struct cdns_uart *cdns_uart_data = port->private_data; in cdns_uart_remove() local
1591 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_remove()
1592 &cdns_uart_data->clk_rate_change_nb); in cdns_uart_remove()
1596 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_remove()
1597 clk_disable_unprepare(cdns_uart_data->pclk); in cdns_uart_remove()