FEC MDIO

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FEC MDIO

1,017 Views
niklasmolin
Senior Contributor I

Hi.

I'm working on a custom board and we have a different PHY than the SabreSD board so I need to access that PHY via MDIO to make some changes in the PHY's setting.

Can I use the FEC to access the MDIO bus?

If so, how do I do that (is there some example code)?

Also, how do I set the MDIO address that the board should use?

Best regards,

NIklas

Labels (2)
0 Kudos
3 Replies

645 Views
niklasmolin
Senior Contributor I

I ended up to create some function in my mach-imx6q.c function, which I accessed with a module, which I called from userspace.

645 Views
Yuri
NXP Employee
NXP Employee

Please use the platform SDK, in paricular, please take a look at

C function "enet_phy_rework_ar803" in 

"imx6_platform_sdk_v1.1.0.tar\iMX6_Platform_SDK\sdk\drivers\enet\src\"

"Bare-metal SDK for the i.MX 6 series, including reusable drivers and tests for

many peripherals, and much example code. Also includes register definition

headers files, and register definitions for debuggers"

https://www.freescale.com/webapp/Download?colCode=i.MX6_PLATFORM_SDK&location=null

0 Kudos

645 Views
niklasmolin
Senior Contributor I

Thanks Yuri.

I'll take a look at this.