]> git.sur5r.net Git - u-boot/blobdiff - board/broadcom/bcm_ep/board.c
pinctrl: renesas: Add PORT_GP_11 helper macro
[u-boot] / board / broadcom / bcm_ep / board.c
index e48cd3f76735cc7456a9c4da672cafe2bb279856..b2469dcb52a3e61588d74b0551cf7688162f3afa 100644 (file)
@@ -1,12 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2014 Broadcom Corporation.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <asm/io.h>
 #include <config.h>
+#include <netdev.h>
 #include <asm/system.h>
 #include <asm/iproc-common/armpll.h>
 
@@ -36,10 +36,12 @@ int dram_init(void)
        return 0;
 }
 
-void dram_init_banksize(void)
+int dram_init_banksize(void)
 {
        gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
        gd->bd->bi_dram[0].size = gd->ram_size;
+
+       return 0;
 }
 
 int board_early_init_f(void)
@@ -53,3 +55,27 @@ int board_early_init_f(void)
 
        return status;
 }
+
+#ifdef CONFIG_ARMV7_NONSEC
+void smp_set_core_boot_addr(unsigned long addr, int corenr)
+{
+}
+
+void smp_kick_all_cpus(void)
+{
+}
+
+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