1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2014 Broadcom Corporation.
10 #include <asm/cache.h>
11 #include <asm/global_data.h>
15 #include <asm/system.h>
16 #include <asm/iproc-common/armpll.h>
18 DECLARE_GLOBAL_DATA_PTR;
21 * board_init - early hardware init
26 * Address of boot parameters passed to kernel
27 * Use default offset 0x100
29 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
35 * dram_init - sets u-boot's idea of sdram size
39 gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
40 CONFIG_SYS_SDRAM_SIZE);
44 int dram_init_banksize(void)
46 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
47 gd->bd->bi_dram[0].size = gd->ram_size;
52 int board_early_init_f(void)
56 /* Setup PLL if required */
57 #if defined(CONFIG_ARMCLK)
58 armpll_config(CONFIG_ARMCLK);
64 #ifdef CONFIG_ARMV7_NONSEC
65 void smp_set_core_boot_addr(unsigned long addr, int corenr)
69 void smp_kick_all_cpus(void)
73 void smp_waitloop(unsigned previous_address)
78 #ifdef CONFIG_BCM_SF2_ETH
79 int board_eth_init(struct bd_info *bis)
82 printf("Registering BCM sf2 eth\n");
83 rc = bcm_sf2_eth_register(bis, 0);