X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fbroadcom%2Fbcm_ep%2Fboard.c;h=c28b203ceaac8555dd16420ff70caf7678fa9f1a;hb=c5938c10ef70c9b713415cc053b464a64f7c05f8;hp=6a70a2e3056007a38958e0df03d63e75a6c9879b;hpb=878cd63e02f63f245182a101807186b44e20f116;p=u-boot diff --git a/board/broadcom/bcm_ep/board.c b/board/broadcom/bcm_ep/board.c index 6a70a2e305..c28b203cea 100644 --- a/board/broadcom/bcm_ep/board.c +++ b/board/broadcom/bcm_ep/board.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -54,7 +55,7 @@ int board_early_init_f(void) return status; } -#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT) +#ifdef CONFIG_ARMV7_NONSEC void smp_set_core_boot_addr(unsigned long addr, int corenr) { } @@ -67,3 +68,13 @@ void smp_waitloop(unsigned previous_address) { } #endif + +#ifdef CONFIG_BCM_SF2_ETH +int board_eth_init(bd_t *bis) +{ + int rc = -1; + printf("Registering BCM sf2 eth\n"); + rc = bcm_sf2_eth_register(bis, 0); + return rc; +} +#endif