Skip to content

Commit 4837bb3

Browse files
committed
drivers: clk: sam: select AUDIOPLL as the source for sama7g5 I2SMCC0 GCLK
Initialize the generic clock used by for sama7g5 I2SMCC0 peripheral. Signed-off-by: Tony Han <tony.han@microchip.com>
1 parent eb418fd commit 4837bb3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/drivers/clk/sam/sama7g5_clk.c

+7
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,13 @@ static TEE_Result pmc_setup_sama7g5(const void *fdt, int nodeoffset,
15911591
if (res)
15921592
panic();
15931593

1594+
clk = pmc_clk_get_by_name(sama7g5_pmc->ghws, sama7g5_pmc->ngck,
1595+
"i2smcc0_gclk");
1596+
assert(clk);
1597+
res = clk_set_parent(clk, pll_div_clk[PLL_ID_AUDIO]);
1598+
if (res)
1599+
panic();
1600+
15941601
res = clk_dt_register_clk_provider(fdt, nodeoffset, clk_dt_pmc_get,
15951602
sama7g5_pmc);
15961603
if (res)

0 commit comments

Comments
 (0)