From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Linz Date: Thu, 23 Feb 2012 20:02:46 +0100 Subject: [U-Boot] [PATCH 8/8] microblaze: ll_temac: export xilinx_ll_temac_eth_init() for evaluation In-Reply-To: <4F46295E.40000@monstr.eu> References: <1327852301.3638.177.camel@keto> <4F46295E.40000@monstr.eu> Message-ID: <1330023766.3642.18.camel@keto> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Donnerstag, den 23.02.2012, 12:56 +0100 schrieb Michal Simek: > 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. :) right -- This snippet was only intended for illustration of the differences Stephan