[U-Boot] [PATCH 8/8] microblaze: ll_temac: export xilinx_ll_temac_eth_init() for evaluation
Michal Simek
monstr at monstr.eu
Thu Feb 23 12:56:14 CET 2012
Stephan Linz wrote:
> Signed-off-by: Stephan Linz <linz at li-pro.net>
> ---
> .../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 <asm/microblaze_intc.h>
> #include <asm/asm.h>
>
> +#ifdef CONFIG_XILINX_LL_TEMAC
> +#include <xilinx_ll_temac.h>
> +#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
More information about the U-Boot
mailing list