Skip to contentSkip to conversation

LXT971A PHY debugging on MPC8540 Custom Board

U-Boot-Users New Shirasat Girish-ags032 3 participants 4 messages Jun 13, 2005 – Mar 12, 2006

lore
Share & tools
lore
#0 lore raw

Hi ,
I have partially ported Uboot on one of our MPC8540 based custom boards.
I am currently facing problems in bringing up the 10/100Mbps FEC interface. We are using the LXT971A PHY for the FEC interface. Well the problem is that , the MAC is putting out the data but the PHY is failing to put the data on the line. The PHY is successfully able to auto- negotiate. The MAC putting out data was confirmed by the MAC debug registers and by probing the Tx_EN,clock and TX_D lines.
I carried out the MAC loop back test which passed . Then went on

for the PHY internal loop back test. Well, when the loop back is enabled the MAC fails to transmit the frame successfully. The thing confusing me is that why the MAC frame transmission is getting affected when i enable the PHY loopback test.
Any pointers will be very helpful.

Regards,
Girish

#1 lore raw
Quoted 10 lines · On Monday 13 June 2005 19:55, Shirasat Girish-ags032 wrote:

Hi ,
I have partially ported Uboot on one of our MPC8540 based custom boards.
I am currently facing problems in bringing up the 10/100Mbps FEC interface. We are using the LXT971A PHY for the FEC interface. Well the problem is that , the MAC is putting out the data but the PHY is failing to put the data on the line. The PHY is successfully able to auto- negotiate. The MAC putting out data was confirmed by the MAC debug registers and by probing the Tx_EN,clock and TX_D lines.
I carried out the MAC loop back test which passed . Then went on

Quoted 9 lines

for the PHY internal loop back test. Well, when the loop back is enabled the MAC fails to transmit the frame successfully. The thing confusing me is that why the MAC frame transmission is getting affected when i enable the PHY loopback test.
Any pointers will be very helpful.

Regards,
Girish

Hi,

as I'm also doing some work on a custom MPC8540 board with a LTX971, I noticed, that the register definitions and masks for the status-register 2 in cpu/mpc85xx/tsec.h are wrong, maybe this has also something to do with your problem! The attached patch fixes that.

Maybe Wolfgang will also put that to CVS, as this is an obvious bug!

regards,
Gerhard

Signature · 10 lines
Gerhard Jaeger <[email protected]>            
SYSGO AG                      Embedded and Real-Time Software
www.sysgo.com | www.elinos.com | www.pikeos.com | www.osek.de 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpc85xx_tsec.patch
Type: text/x-diff
Size: 1119 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050614/49a25e41/attachment.patch 
#2 lore raw

PATCH 1/1 Fix for LXT971PHY register definitions

In reply to Shirasat Girish-ags032

Hi,

seems my previous patch got somehow lost, so let's try again. Ciao,
Gerhard

CHANGELOG:
* Patch by Gerhard Jaeger, 21-June-2005:
Fixes wrong status register 2 definitions for LTX971 phy handling on mpc85xx boards.

Patch is attached...

Signature · 10 lines
Gerhard Jaeger <[email protected]>            
SYSGO AG                      Embedded and Real-Time Software
www.sysgo.com | www.elinos.com | www.pikeos.com | www.osek.de 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpc85xx_tsec.patch
Type: text/x-diff
Size: 1119 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050621/eeb1070b/attachment.patch 
#3 lore raw

PATCH 1/1 Fix for LXT971PHY register definitions

Quoted 5 lines · In message <[email protected]> you wrote:

CHANGELOG:
* Patch by Gerhard Jaeger, 21-June-2005:
Fixes wrong status register 2 definitions for LTX971 phy handling on mpc85xx boards.

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 7 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Every revolutionary idea - in science, politics, art, or  whatever  -
evokes three stages of reaction in a hearer:
  1. It is completely impossible - don't waste my time.
  2. It is possible, but it is not worth doing.
  3. I said it was a good idea all along.