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>
This commit is contained in:
parent
15ea9f22fd
commit
c9e1df54c5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue