blob: 45cc62936cecb0cc894f9f38595486a8c6889665 [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
Linus Walleijaaa9e3d2023-04-24 09:38:30 +02007#include <dm.h>
8#include <init.h>
9#include <log.h>
10#include <ram.h>
11#include <serial.h>
12#include <asm/global_data.h>
13#include <asm/io.h>
14#include <asm/armv7m.h>
15
16DECLARE_GLOBAL_DATA_PTR;
17
18int dram_init(void)
19{
20 return fdtdec_setup_mem_size_base();
21}
22
23int dram_init_banksize(void)
24{
25 return fdtdec_setup_memory_banksize();
26}
27
28int board_late_init(void)
29{
30 /* LEDs etc can be initialized here */
31 return 0;
32}
33
34int board_init(void)
35{
36 return 0;
37}
38
39void reset_cpu(void)
40{
41}
42
43int print_cpuinfo(void)
44{
45 printf("BCMNS Northstar SoC\n");
46 return 0;
47}
48
49int misc_init_r(void)
50{
51 return 0;
52}
53
54int ft_board_setup(void *fdt, struct bd_info *bd)
55{
56 printf("Northstar board setup: DTB at 0x%08lx\n", (ulong)fdt);
57 return 0;
58}
59