1
0
Fork 0

clk: imx: Add uart from osc support on imx6ul/ull

Add 'uart_from_osc' support on i.MX6UL/ULL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
[ Aisheng: update to CLK HW APIs ]
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Jacky Bai 2019-04-30 15:16:29 +08:00 committed by Dong Aisheng
parent 15ea9f22fd
commit c9e1df54c5
1 changed files with 6 additions and 0 deletions

View File

@ -495,6 +495,12 @@ static void __init imx6ul_clocks_init(struct device_node *ccm_node)
clk_set_rate(hws[IMX6UL_CLK_ENET2_REF]->clk, 50000000);
clk_set_rate(hws[IMX6UL_CLK_CSI]->clk, 24000000);
/* Set the UART parent if needed */
if (uart_from_osc)
clk_set_parent(hws[IMX6UL_CLK_UART_SEL]->clk, hws[IMX6UL_CLK_OSC]->clk);
else
clk_set_parent(hws[IMX6UL_CLK_UART_SEL]->clk, hws[IMX6UL_CLK_PLL3_80M]->clk);
if (clk_on_imx6ull())
clk_prepare_enable(hws[IMX6UL_CLK_AIPSTZ3]->clk);