FEC MDIO

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FEC MDIO

1,018 次查看
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

标签 (2)
0 项奖励
3 回复数

646 次查看
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.

646 次查看
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 项奖励

646 次查看
niklasmolin
Senior Contributor I

Thanks Yuri.

I'll take a look at this.