HomeFreeBSD

if_cgem: Rewrite clock part

Description

if_cgem: Rewrite clock part

  • pclk and hclk are mandatory so always try to get them. Don't make it fatal if it fails as some platform (like Zynq) don't have a proper clock driver.
  • Always use pclk for the reference clock.
  • Try to get all the possible clocks and enable them.

Reviewed-by: mhorne
Tested-by: Milan Obuch <bsd@dino.sk>
Differential Revision: https://reviews.freebsd.org/D41857
Sponsored by: Beckhoff Automation GmbH & Co. KG

(cherry picked from commit 4c52dde5bda099936d43820da84e569dccc6f475)

Details

Provenance
manuAuthored on Sep 14 2023, 8:57 AM
Differential Revision
D41857: if_cgem: Rewrite clock part
Parents
rG770b790eabac: if_cgem: Cleanup compatible and add new ones
Branches
Unknown
Tags
Unknown