I have a board with T1024 processor and I want to connect it with a peripheral by MDIO interface. I have booted the linux on the T1024. Now, I want to run a C code on the T1024, in which the peripheral can be configured by the MDIO interface. In other words, I should have a C code, which config the peripheral by MDIO interface.
Is there any C code example that can help me? Is there any library for MDIO interface specifically for T1024 processor? How I can write a C code to config the peripheral by MDIO interface?