Lines Matching full:uart

44 	struct tegra_uart *uart;  in tegra_uart_probe()  local
49 uart = devm_kzalloc(&pdev->dev, sizeof(*uart), GFP_KERNEL); in tegra_uart_probe()
50 if (!uart) in tegra_uart_probe()
89 uart->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL); in tegra_uart_probe()
90 if (IS_ERR(uart->rst)) in tegra_uart_probe()
91 return PTR_ERR(uart->rst); in tegra_uart_probe()
95 uart->clk = devm_clk_get(&pdev->dev, NULL); in tegra_uart_probe()
96 if (IS_ERR(uart->clk)) { in tegra_uart_probe()
101 ret = clk_prepare_enable(uart->clk); in tegra_uart_probe()
105 port->uartclk = clk_get_rate(uart->clk); in tegra_uart_probe()
108 ret = reset_control_deassert(uart->rst); in tegra_uart_probe()
116 platform_set_drvdata(pdev, uart); in tegra_uart_probe()
117 uart->line = ret; in tegra_uart_probe()
122 clk_disable_unprepare(uart->clk); in tegra_uart_probe()
129 struct tegra_uart *uart = platform_get_drvdata(pdev); in tegra_uart_remove() local
131 serial8250_unregister_port(uart->line); in tegra_uart_remove()
132 reset_control_assert(uart->rst); in tegra_uart_remove()
133 clk_disable_unprepare(uart->clk); in tegra_uart_remove()
141 struct tegra_uart *uart = dev_get_drvdata(dev); in tegra_uart_suspend() local
142 struct uart_8250_port *port8250 = serial8250_get_port(uart->line); in tegra_uart_suspend()
145 serial8250_suspend_port(uart->line); in tegra_uart_suspend()
148 clk_disable_unprepare(uart->clk); in tegra_uart_suspend()
155 struct tegra_uart *uart = dev_get_drvdata(dev); in tegra_uart_resume() local
156 struct uart_8250_port *port8250 = serial8250_get_port(uart->line); in tegra_uart_resume()
160 clk_prepare_enable(uart->clk); in tegra_uart_resume()
162 serial8250_resume_port(uart->line); in tegra_uart_resume()
172 { .compatible = "nvidia,tegra20-uart", },
185 .name = "tegra-uart",