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