From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Thu, 23 Feb 2012 12:56:14 +0100 Subject: [U-Boot] [PATCH 8/8] microblaze: ll_temac: export xilinx_ll_temac_eth_init() for evaluation In-Reply-To: References: <1327852301.3638.177.camel@keto> Message-ID: <4F46295E.40000@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: > Signed-off-by: Stephan Linz > --- > .../xilinx/microblaze-generic/microblaze-generic.c | 57 ++++++++++++++++++++ > drivers/net/xilinx_ll_temac.c | 2 +- > include/xilinx_ll_temac.h | 3 + > 3 files changed, 61 insertions(+), 1 deletions(-) > > diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c > index 517b2f1..d2f56b9 100644 > --- a/board/xilinx/microblaze-generic/microblaze-generic.c > +++ b/board/xilinx/microblaze-generic/microblaze-generic.c > @@ -31,6 +31,10 @@ > #include > #include > > +#ifdef CONFIG_XILINX_LL_TEMAC > +#include > +#endif > + > int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) > { > #ifdef CONFIG_SYS_GPIO_0 > @@ -92,7 +96,60 @@ int board_eth_init(bd_t *bis) > #endif > > #ifdef CONFIG_XILINX_LL_TEMAC > +#if 1 > + /* This should be the preferred way to initialize > + * all the interfaces. */ > ret |= xilinx_ll_temac_standard_init(bis); if 1 is not the best for mainline because it means that below is dead code. 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