blob: 6a70a2e3056007a38958e0df03d63e75a6c9879b [file] [log] [blame]
Scott Brandenda1f5ac2014-08-11 13:58:25 -07001/*
2 * Copyright 2014 Broadcom Corporation.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#include <common.h>
8#include <asm/io.h>
9#include <config.h>
10#include <asm/system.h>
11#include <asm/iproc-common/armpll.h>
12
13DECLARE_GLOBAL_DATA_PTR;
14
15/*
16 * board_init - early hardware init
17 */
18int board_init(void)
19{
20 /*
21 * Address of boot parameters passed to kernel
22 * Use default offset 0x100
23 */
24 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
25
26 return 0;
27}
28
29/*
30 * dram_init - sets u-boot's idea of sdram size
31 */
32int dram_init(void)
33{
34 gd->ram_size = get_ram_size((long *)CONFIG_SYS_SDRAM_BASE,
35 CONFIG_SYS_SDRAM_SIZE);
36 return 0;
37}
38
39void dram_init_banksize(void)
40{
41 gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
42 gd->bd->bi_dram[0].size = gd->ram_size;
43}
44
45int board_early_init_f(void)
46{
47 uint32_t status = 0;
48
49 /* Setup PLL if required */
50#if defined(CONFIG_ARMCLK)
51 armpll_config(CONFIG_ARMCLK);
52#endif
53
54 return status;
55}
Steve Raeabb16782014-11-11 11:32:18 -080056
57#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT)
58void smp_set_core_boot_addr(unsigned long addr, int corenr)
59{
60}
61
62void smp_kick_all_cpus(void)
63{
64}
65
66void smp_waitloop(unsigned previous_address)
67{
68}
69#endif