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

Joe Hershberger joe.hershberger at gmail.com
Thu Nov 21 20:02:23 CET 2013


Hi Christian / Andy,

On Mon, Sep 2, 2013 at 8:16 PM, Andy Fleming <afleming at gmail.com> wrote:
> 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.

Do you plan to implement this in a more flexible way?

Thanks,
-Joe


More information about the U-Boot mailing list