Lines Matching refs:uartclk

199 	struct clk		*uartclk;  member
468 calc_baud = cdns_uart_calc_baud_divs(port->uartclk, baud, &bdiv, &cd, in cdns_uart_set_baud_rate()
543 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
711 minbaud = port->uartclk / in cdns_uart_set_termios()
713 maxbaud = port->uartclk / (CDNS_UART_BDIV_MIN + 1); in cdns_uart_set_termios()
1175 if (port->uartclk && device->baud) { in cdns_early_console_setup()
1180 cdns_uart_calc_baud_divs(port->uartclk, device->baud, in cdns_early_console_setup()
1351 clk_enable(cdns_uart->uartclk); in cdns_uart_resume()
1371 clk_disable(cdns_uart->uartclk); in cdns_uart_resume()
1391 clk_disable(cdns_uart->uartclk); in cdns_runtime_suspend()
1402 clk_enable(cdns_uart->uartclk); in cdns_runtime_resume()
1502 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "uart_clk"); in cdns_uart_probe()
1503 if (PTR_ERR(cdns_uart_data->uartclk) == -EPROBE_DEFER) { in cdns_uart_probe()
1504 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1508 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1509 cdns_uart_data->uartclk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_uart_probe()
1510 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
1511 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1522 rc = clk_prepare_enable(cdns_uart_data->uartclk); in cdns_uart_probe()
1543 if (clk_notifier_register(cdns_uart_data->uartclk, in cdns_uart_probe()
1566 port->uartclk = clk_get_rate(cdns_uart_data->uartclk); in cdns_uart_probe()
1618 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_probe()
1622 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_probe()
1645 clk_notifier_unregister(cdns_uart_data->uartclk, in cdns_uart_remove()
1650 clk_disable_unprepare(cdns_uart_data->uartclk); in cdns_uart_remove()