Linus Walleij | aaa9e3d | 2023-04-24 09:38:30 +0200 | [diff] [blame] | 1 | // 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 Walleij | aaa9e3d | 2023-04-24 09:38:30 +0200 | [diff] [blame] | 7 | #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 | |
| 16 | DECLARE_GLOBAL_DATA_PTR; |
| 17 | |
| 18 | int dram_init(void) |
| 19 | { |
| 20 | return fdtdec_setup_mem_size_base(); |
| 21 | } |
| 22 | |
| 23 | int dram_init_banksize(void) |
| 24 | { |
| 25 | return fdtdec_setup_memory_banksize(); |
| 26 | } |
| 27 | |
| 28 | int board_late_init(void) |
| 29 | { |
| 30 | /* LEDs etc can be initialized here */ |
| 31 | return 0; |
| 32 | } |
| 33 | |
| 34 | int board_init(void) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | void reset_cpu(void) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | int print_cpuinfo(void) |
| 44 | { |
| 45 | printf("BCMNS Northstar SoC\n"); |
| 46 | return 0; |
| 47 | } |
| 48 | |
| 49 | int misc_init_r(void) |
| 50 | { |
| 51 | return 0; |
| 52 | } |
| 53 | |
| 54 | int 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 | |