Lines Matching full:uartclk

189  * @uartclk:		Reference clock
199 struct clk *uartclk; member
456 calc_baud = cdns_uart_calc_baud_divs(port->uartclk, baud, &bdiv, &cd, in cdns_uart_set_baud_rate()
531 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
697 * min and max baud should be calculated here based on port->uartclk. in cdns_uart_set_termios()
700 minbaud = port->uartclk / in cdns_uart_set_termios()
702 maxbaud = port->uartclk / (CDNS_UART_BDIV_MIN + 1); in cdns_uart_set_termios()
1191 if (port->uartclk && device->baud) { in cdns_early_console_setup()
1196 cdns_uart_calc_baud_divs(port->uartclk, device->baud, in cdns_early_console_setup()
1371 ret = clk_enable(cdns_uart->uartclk); in cdns_uart_resume()
1395 clk_disable(cdns_uart->uartclk); in cdns_uart_resume()
1415 clk_disable(cdns_uart->uartclk); in cdns_runtime_suspend()
1430 ret = clk_enable(cdns_uart->uartclk); in cdns_runtime_resume()
1534 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "uart_clk"); in cdns_uart_probe()
1535 if (PTR_ERR(cdns_uart_data->uartclk) == -EPROBE_DEFER) { in cdns_uart_probe()
1536 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1540 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1541 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_uart_probe()
1542 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1543 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1554 rc = clk_prepare_enable(cdns_uart_data->uartclk); in cdns_uart_probe()
1575 if (clk_notifier_register(cdns_uart_data->uartclk, in cdns_uart_probe()
1598 port->uartclk = clk_get_rate(cdns_uart_data->uartclk); in cdns_uart_probe()
1652 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_probe()
1656 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_probe()
1679 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_remove()
1684 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_remove()