opnsense-src/sys/dev/cadence
Emmanuel Vadot 1e685c7dd5 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)
2023-10-18 16:31:13 +02:00
..
if_cgem.c if_cgem: Rewrite clock part 2023-10-18 16:31:13 +02:00
if_cgem_hw.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00