P2040:How to access TBI-SGMII registers in linux?

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

P2040:How to access TBI-SGMII registers in linux?

656 Views
gouravjain
Contributor IV

Hi all,

In my custom board, which is based on P2040rdb, i want to change some TBI registers in linux. In order to disable TBI-phy autonegotiation. But i'm not getting how to access TBI registers. Basically serdes initialization should happen in dtsec_init_phy () before of_phy_connect () function  ["drivers/net/ethernet/freescale/dpa/mac-api.c"]

I have done changes in u-boot  function called: dtsec_configure_serdes () ["drivers/net/fm/eth.c"]

Can any one pls tell me any where is the equivalent function of dtsec_configure_serdes () in linux ?? or how to access TBI registers from linux.

Note: SDK: Linux-3.8.13-rt9-QorIQ-SDK-V1.4

Any help would be highly appreciated.

--

Gourav 

Labels (1)
2 Replies

479 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Gourav,

Please refer to the section "/* Configure the TBI PHY Control Register */" in the function "DtsecInit" in Linux  Kernel source file drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/MAC/dtsec.c.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

479 Views
gouravjain
Contributor IV

Hello Yiping,

Thanks for your help. This thread is bit old, and issue has been fixed already.

regards,

Gourav

0 Kudos