AM67A: How to read and write the registers of the phy chip in the kernel driver?

Part Number: AM67A

Tool/software:

I would like to know how I need to add the code to include the kernel so that the cpsw and mdio drivers can perform register configuration for my PHY chip during the initialization stage.