Lines Matching full:uartclk

192  * @uartclk:		Reference clock
206 struct clk *uartclk; member
580 calc_baud = cdns_uart_calc_baud_divs(port->uartclk, baud, &bdiv, &cd, in cdns_uart_set_baud_rate()
655 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
833 * min and max baud should be calculated here based on port->uartclk. in cdns_uart_set_termios()
836 minbaud = port->uartclk / in cdns_uart_set_termios()
838 maxbaud = port->uartclk / (CDNS_UART_BDIV_MIN + 1); in cdns_uart_set_termios()
1340 if (port->uartclk && device->baud) { in cdns_early_console_setup()
1345 cdns_uart_calc_baud_divs(port->uartclk, device->baud, in cdns_early_console_setup()
1520 ret = clk_enable(cdns_uart->uartclk); in cdns_uart_resume()
1544 clk_disable(cdns_uart->uartclk); in cdns_uart_resume()
1564 clk_disable(cdns_uart->uartclk); in cdns_runtime_suspend()
1579 ret = clk_enable(cdns_uart->uartclk); in cdns_runtime_resume()
1716 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "uart_clk"); in cdns_uart_probe()
1717 if (PTR_ERR(cdns_uart_data->uartclk) == -EPROBE_DEFER) { in cdns_uart_probe()
1718 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1722 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1723 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_uart_probe()
1724 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1725 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1743 rc = clk_prepare_enable(cdns_uart_data->uartclk); in cdns_uart_probe()
1764 if (clk_notifier_register(cdns_uart_data->uartclk, in cdns_uart_probe()
1787 port->uartclk = clk_get_rate(cdns_uart_data->uartclk); in cdns_uart_probe()
1858 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_probe()
1862 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_probe()
1882 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_remove()
1887 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_remove()