Hi Alexey,
On 5/4/26 3:45 PM, Alexey Charkov wrote:
Rockchip RK3576 SoC has two built-in GMACs which connect to external PHYs
via RGMII interface. The RGMII link can be clocked by either the PHY or
the SoC. When the SoC is the master, as is the case on the RK3576 EVB1,
the output clock needs to be configured in the CRU.
Add the respective logic for getting and setting the RGMII reference clock
output for both GMAC0 and GMAC1.
Signed-off-by: Alexey Charkov <[email protected]>
Reviewed-by: Quentin Schulz <[email protected]>
We should think about migrating to FIELD_PREP, FIELD_GET and similar
macros to make this a bit more readable and less error-prone though.
Some job for future us, not a blocker for sure :)
Thanks!
Quentin