2 * Copyright 2014 Broadcom Corporation.
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/system.h>
11 #include <asm/iproc-common/armpll.h>
13 DECLARE_GLOBAL_DATA_PTR;
16 * board_init - early hardware init
21 * Address of boot parameters passed to kernel
22 * Use default offset 0x100
24 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
30 * dram_init - sets u-boot's idea of sdram size
34 gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
35 CONFIG_SYS_SDRAM_SIZE);
39 void dram_init_banksize(void)
41 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
42 gd->bd->bi_dram[0].size = gd->ram_size;
45 int board_early_init_f(void)
49 /* Setup PLL if required */
50 #if defined(CONFIG_ARMCLK)
51 armpll_config(CONFIG_ARMCLK);
57 #ifdef CONFIG_ARMV7_NONSEC
58 void smp_set_core_boot_addr(unsigned long addr, int corenr)
62 void smp_kick_all_cpus(void)
66 void smp_waitloop(unsigned previous_address)