Page MenuHomeFreeBSD

rockchip: add audio-related clocks to the CRU driver
ClosedPublic

Authored by gonzo on Dec 30 2020, 12:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 9, 6:18 AM
Unknown Object (File)
Thu, Jan 9, 2:09 AM
Unknown Object (File)
Sat, Jan 4, 1:18 PM
Unknown Object (File)
Sat, Dec 14, 4:48 PM
Unknown Object (File)
Dec 12 2024, 4:49 AM
Unknown Object (File)
Dec 2 2024, 11:22 PM
Unknown Object (File)
Nov 28 2024, 10:04 PM
Unknown Object (File)
Nov 19 2024, 3:37 AM

Details

Summary
  • Add I2S and CODEC clocks to CRU driver
  • Add support for gate selection to frac clock
  • Add setfreq support to mux clock

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/arm64/rockchip/clk/rk_clk_mux.c
166

We should honor the CLK_SET_ROUND* here.

sys/arm64/rockchip/clk/rk_clk_mux.c
166

Isn't it handled by line 151? We just pick any parent that can deliver a requested frequency with specified flags.
If we want the best suitable parent according to flags, additional modifications required to clknode_set_freq to get an actual freq achievable by the clock.

  • Add Allwinner codecs and I2S driver as an example for the framework usage
  • simple-amplifier: make gpio-enable optional

Revert back to the correct diff

manu added inline comments.
sys/arm64/rockchip/clk/rk_clk_mux.c
166

Yes you're right, I've miss read this part.

This revision is now accepted and ready to land.Dec 31 2020, 10:34 AM