blob: 1249e45af0362b5f2e9733c8164a93205390ebf2 [file] [log] [blame]
Linus Walleijaaa9e3d2023-04-24 09:38:30 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Broadcom Northstar generic board set-up code
4 * Copyright (C) 2023 Linus Walleij <linus.walleij@linaro.org>
5 */
6
7#include <common.h>
8#include <dm.h>
9#include <init.h>
10#include <log.h>
11#include <ram.h>
12#include <serial.h>
13#include <asm/global_data.h>
14#include <asm/io.h>
15#include <asm/armv7m.h>
16
17DECLARE_GLOBAL_DATA_PTR;
18
19int dram_init(void)
20{
21 return fdtdec_setup_mem_size_base();
22}
23
24int dram_init_banksize(void)
25{
26 return fdtdec_setup_memory_banksize();
27}
28
29int board_late_init(void)
30{
31 /* LEDs etc can be initialized here */
32 return 0;
33}
34
35int board_init(void)
36{
37 return 0;
38}
39
40void reset_cpu(void)
41{
42}
43
44int print_cpuinfo(void)
45{
46 printf("BCMNS Northstar SoC\n");
47 return 0;
48}
49
50int misc_init_r(void)
51{
52 return 0;
53}
54
55int ft_board_setup(void *fdt, struct bd_info *bd)
56{
57 printf("Northstar board setup: DTB at 0x%08lx\n", (ulong)fdt);
58 return 0;
59}
60