[U-Boot] 83xx, uec: adjust enet_interface settings on the fly.

Heiko Schocher hs at denx.de
Fri Jan 8 09:12:29 CET 2010


Hello Liu,

Liu Dave-R63238 wrote:
>>> I don't remember why I added the eth_type==GIGA_ETH condition.
>>> If it is possible, please refactor it as Kim.
>> Hmm.. while looking at this code, a question comes in mind:
>> Did this code (eth_type==GIGA_ETH) work correctly?
> 
> Yes, It worked correctly. But later there are lots of change,
> I'm not sure if it is correct right now. 
> 
>> I see there is a switching possible from 1000 to 100 or 10, 
>> but never back to 1000, because the 1000 case did nothing ...?
>> Is this intentionally?
> 
> The code was assuming the initial speed is 1000Mbps, so
> the 1000 case did nothing. 

Hmm.. but what happend, if you connect a 100Mbps, and then
back to the 1000Mpbs?

>> Also uec->uec_info->enet_interface is never updated, which 
>> should be done ... or?
> 
> IIRC, the enet_interface was designed for interface type according
> to board design. So it was placed on uec_info, it is never updated.
> eg: SGMII if board is SGMII connection
>       RGMII if board is RGMII connection...
>       RMII if board is RMII....

Ah, OK, thanks.

bye
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list