On Wed, Jul 27, 2005 at 10:42:47AM -0700, Matt Porter wrote:
> Adds support for the Bamboo board phys in the EMAC driver.
> Please apply.
>
> Signed-off-by: Wade Farnsworth <wfarnsworth@xxxxxxxxxx>
> Signed-off-by: Matt Porter <mporter@xxxxxxxxxxxxxxxxxxx>
>
[snip]
> +#ifdef CONFIG_BAMBOO
> +static int ac104_init(struct mii_phy *phy)
> +{
> + /*
> + * SW2 on the Bamboo is used for ethernet configuration and is accessed
> + * via the CONFIG2 register in the FPGA. If the ANEG pin is set,
> + * overwrite the supported features with the settings in SW2.
> + */
I wonder, how this SW2 works. Is it just a way to tell software not to
use autoneg and force some settings, or it disables autoneg on hw
level (I'm kinda doubt that)?
If this is just some board specific configuration option which doesn't
affect this PHY directly, let's drop this stuff completely and always
use autoneg, if user wants to force something - he should ethtool.
--
Eugene
|