sama5d4, configure pck1 with dt?

Peter Meerwald-Stadler pmeerw at pmeerw.net
Wed Jul 6 14:17:07 PDT 2016


Hello,

how do I configure pck1 using devicetree to be used as the master 
clock for an audio codec?

in particular how do I choose the clock source and frequency for pck1?
is there a way to do this using devicetree?

or is the code in at91sam9g20ek_audio_probe() the way to go?
i.e mclk=clk_get(0, "pck1"); pllb=clk_get(0, "pllb"); clk_set_parent(mclk, 
pllb); clk_set_rate(mclk, 12000000);

confused...

thanks, regards, p.

-- 

Peter Meerwald-Stadler
+43-664-2444418 (mobile)



More information about the linux-arm-kernel mailing list