[U-Boot] [PATCH v2] net: Add fixed phy driver

Andy Fleming afleming at gmail.com
Tue Sep 3 03:16:33 CEST 2013


On Mon, Sep 2, 2013 at 7:30 AM, Christian Gmeiner <
christian.gmeiner at gmail.com> wrote:

> This patch is needed if the MAC is directly connected to a ethernet switch.
> In my case the FEC MAC is connected to a Micrel KSZ8895. All I need to to
> is configure my fixed phy/link like:
>
> #define IMX_FEC_BASE                    ENET_BASE_ADDR
> #define CONFIG_FEC_XCV_TYPE             MII100
> #define CONFIG_ETHPRIME                 "FEC"
> #define CONFIG_FEC_MXC_PHYADDR          0x5
> #define CONFIG_PHYLIB
> #define CONFIG_PHY_FIXED
> #define CONFIG_PHY_FIXED_SPEED          SPEED_100
> #define CONFIG_PHY_FIXED_DUPLEX         DUPLEX_FULL
>
> Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
>

This doesn't work very well if you ever have more than one switch, or need
more than one fixed link for some other reason. It needs to be possible to
instantiate the fixed PHY interface(s) at runtime, IMO.

Andy


More information about the U-Boot mailing list