diff options
author | Tom Rini <trini@konsulko.com> | 2023-05-03 09:23:21 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-05-03 09:23:21 -0400 |
commit | 1807c0c70a73c7697f32c04cad20ea9cd11b248e (patch) | |
tree | 258d2fa7d274ed5048640ceef121841d49494784 /board/broadcom/bcmns/ns.c | |
parent | 021e303492ccfdf58425bedb13c1621367cc5cc7 (diff) | |
parent | 8144210e750d42941eb8028fdfc4e027ef043d8f (diff) |
Merge branch '2023-05-02-assorted-platform-updates-and-additions'
- Updates for starqltechn and other qualcomm platforms, hi3798mv200,
Broadcom Northstar, and mediatek platforms
- Drop omap5_uevm, and assorted TI platform updates
- Add MAX14526
Diffstat (limited to 'board/broadcom/bcmns/ns.c')
-rw-r--r-- | board/broadcom/bcmns/ns.c | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/board/broadcom/bcmns/ns.c b/board/broadcom/bcmns/ns.c new file mode 100644 index 00000000000..1249e45af03 --- /dev/null +++ b/board/broadcom/bcmns/ns.c @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Broadcom Northstar generic board set-up code + * Copyright (C) 2023 Linus Walleij <linus.walleij@linaro.org> + */ + +#include <common.h> +#include <dm.h> +#include <init.h> +#include <log.h> +#include <ram.h> +#include <serial.h> +#include <asm/global_data.h> +#include <asm/io.h> +#include <asm/armv7m.h> + +DECLARE_GLOBAL_DATA_PTR; + +int dram_init(void) +{ + return fdtdec_setup_mem_size_base(); +} + +int dram_init_banksize(void) +{ + return fdtdec_setup_memory_banksize(); +} + +int board_late_init(void) +{ + /* LEDs etc can be initialized here */ + return 0; +} + +int board_init(void) +{ + return 0; +} + +void reset_cpu(void) +{ +} + +int print_cpuinfo(void) +{ + printf("BCMNS Northstar SoC\n"); + return 0; +} + +int misc_init_r(void) +{ + return 0; +} + +int ft_board_setup(void *fdt, struct bd_info *bd) +{ + printf("Northstar board setup: DTB at 0x%08lx\n", (ulong)fdt); + return 0; +} + |