Home
last modified time | relevance | path

Searched refs:imx_uart_clocks (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/drivers/clk/imx/
H A Dclk.c161 static struct clk **imx_uart_clocks; variable
192 imx_uart_clocks = kcalloc(num, sizeof(struct clk *), GFP_KERNEL); in imx_register_uart_clocks()
193 if (!imx_uart_clocks) in imx_register_uart_clocks()
197 imx_uart_clocks[imx_enabled_uart_clocks] = of_clk_get(of_stdout, i); in imx_register_uart_clocks()
200 if (IS_ERR(imx_uart_clocks[imx_enabled_uart_clocks])) in imx_register_uart_clocks()
204 if (imx_uart_clocks[imx_enabled_uart_clocks]) in imx_register_uart_clocks()
205 clk_prepare_enable(imx_uart_clocks[imx_enabled_uart_clocks++]); in imx_register_uart_clocks()
217 clk_disable_unprepare(imx_uart_clocks[i]); in imx_clk_disable_uart()
218 clk_put(imx_uart_clocks[i]); in imx_clk_disable_uart()
222 kfree(imx_uart_clocks); in imx_clk_disable_uart()
[all...]
/kernel/linux/linux-5.10/drivers/clk/imx/
H A Dclk.c153 static struct clk **imx_uart_clocks; variable
175 imx_uart_clocks = kcalloc(clk_count, sizeof(struct clk *), GFP_KERNEL); in imx_register_uart_clocks()
181 imx_uart_clocks[imx_enabled_uart_clocks] = of_clk_get(of_stdout, i); in imx_register_uart_clocks()
184 if (IS_ERR(imx_uart_clocks[imx_enabled_uart_clocks])) in imx_register_uart_clocks()
188 if (imx_uart_clocks[imx_enabled_uart_clocks]) in imx_register_uart_clocks()
189 clk_prepare_enable(imx_uart_clocks[imx_enabled_uart_clocks++]); in imx_register_uart_clocks()
201 clk_disable_unprepare(imx_uart_clocks[i]); in imx_clk_disable_uart()
202 clk_put(imx_uart_clocks[i]); in imx_clk_disable_uart()
206 kfree(imx_uart_clocks); in imx_clk_disable_uart()

Completed in 1 milliseconds