]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
net: phy: make autonegotiation configurable
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 9 Jan 2015 11:22:56 +0000 (12:22 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 9 Jan 2015 12:08:02 +0000 (13:08 +0100)
commit250c4d38baf13e723ea8d83f25f07a54dcb3ce48
tree08f9fac2a849b87ac925435218a46316b8da0b28
parentd717b5e449e2ee11c2624944704c61085e80b5af
net: phy: make autonegotiation configurable

Introduce environment variables to configure the use of
ethernet autonegotiation.
The variable names are derived from the ethernet device name
('FEC' for TX51,TX53,TX6;  'FEC0','FEC1' for TX28; 'cpsw' for TX48)
with the suffix '_aneg' appended.
If the '*_aneg' variable is unset or set to a string starting in
'y','t' or '1' autonegotiation will be enabled and the '*_speed' and
'*_duplex' variables have no meaning.
Otherwise autonegotiation is disabled and the link speed and duplex
settings can be configured with the variables: '*_speed' and
'*_duplex' (with '*' replaced with the prefix described above).
drivers/net/phy/phy.c