From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Thu, 23 Feb 2012 12:52:26 +0100 Subject: [U-Boot] [PATCH 3/8] microblaze: Enable phylib and mii support In-Reply-To: <8391356dc7b1eae482f6566b9cb36f1981913146.1327848193.git.linz@li-pro.net> References: <1327852301.3638.177.camel@keto> <8391356dc7b1eae482f6566b9cb36f1981913146.1327848193.git.linz@li-pro.net> Message-ID: <4F46287A.4020001@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Stephan Linz wrote: > From: Michal Simek > > Enable phylib and mii support for LLTEMAC or AXI EMAC > ethernet drivers on Microblaze systems. > > Signed-off-by: Michal Simek > Acked-by: Stephan Linz > --- > include/configs/microblaze-generic.h | 21 +++++++++++++++++++++ > 1 files changed, 21 insertions(+), 0 deletions(-) > > diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h > index 09ac870..69fcdb6 100644 > --- a/include/configs/microblaze-generic.h > +++ b/include/configs/microblaze-generic.h > @@ -342,4 +342,25 @@ > #define CONFIG_FIT 1 > #define CONFIG_OF_LIBFDT 1 > > +#if defined(CONFIG_XILINX_LL_TEMAC) || defined(CONFIG_XILINX_AXIEMAC) > +# define CONFIG_MII 1 > +# define CONFIG_CMD_MII 1 > +# define CONFIG_PHY_GIGE 1 > +# define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1 > +# define CONFIG_PHYLIB 1 > +# define CONFIG_PHY_ATHEROS 1 > +# define CONFIG_PHY_BROADCOM 1 > +# define CONFIG_PHY_DAVICOM 1 > +# define CONFIG_PHY_LXT 1 > +# define CONFIG_PHY_MARVELL 1 > +# define CONFIG_PHY_MICREL 1 > +# define CONFIG_PHY_NATSEMI 1 > +# define CONFIG_PHY_REALTEK 1 > +# define CONFIG_PHY_VITESSE 1 > +#else > +# undef CONFIG_MII > +# undef CONFIG_CMD_MII > +# undef CONFIG_PHYLIB > +#endif > + > #endif /* __CONFIG_H */ This is OK and should be enable at least for AXIEMAC even if ll_temac won't go to mainline. Maybe make sense to do so without waiting for this patchset. Michal -- Michal Simek, Ing. (M.Eng) w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/ Microblaze U-BOOT custodian