2 * Copyright 2014 Broadcom Corporation.
4 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/system.h>
12 #include <asm/iproc-common/armpll.h>
14 DECLARE_GLOBAL_DATA_PTR;
17 * board_init - early hardware init
22 * Address of boot parameters passed to kernel
23 * Use default offset 0x100
25 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
31 * dram_init - sets u-boot's idea of sdram size
35 gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
36 CONFIG_SYS_SDRAM_SIZE);
40 void dram_init_banksize(void)
42 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
43 gd->bd->bi_dram[0].size = gd->ram_size;
46 int board_early_init_f(void)
50 /* Setup PLL if required */
51 #if defined(CONFIG_ARMCLK)
52 armpll_config(CONFIG_ARMCLK);
58 #ifdef CONFIG_ARMV7_NONSEC
59 void smp_set_core_boot_addr(unsigned long addr, int corenr)
63 void smp_kick_all_cpus(void)
67 void smp_waitloop(unsigned previous_address)
72 #ifdef CONFIG_BCM_SF2_ETH
73 int board_eth_init(bd_t *bis)
76 printf("Registering BCM sf2 eth\n");
77 rc = bcm_sf2_eth_register(bis, 0);