diff options
author | Tom Rini <trini@konsulko.com> | 2025-04-25 13:13:17 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-25 13:13:17 -0600 |
commit | 5a0a93a768487e55ebe50a34cc90d751bf99cc56 (patch) | |
tree | 7d8fdcb585e32d300183796c67c467cfa6c897ce /arch/riscv/lib/board.c | |
parent | 7a9c9b5655646c229e4300c24b0b85b51308795e (diff) | |
parent | 5ac699efe94f24df561d33e420d3c73f5fb797e8 (diff) |
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-riscv
CI: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/25940
- riscv: lib: Simplify FDT retrieving process
- board: k1: pinctrl: Add pinctrl support for bananapi-f3
- binman: riscv: Fix binman_sym functionality
- board: starfive: visionfive2: Reorder board detection logic
- board: starfive: Add DeepComputing FML13V01 support
Diffstat (limited to 'arch/riscv/lib/board.c')
-rw-r--r-- | arch/riscv/lib/board.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/riscv/lib/board.c b/arch/riscv/lib/board.c new file mode 100644 index 00000000000..624c4eaaf4d --- /dev/null +++ b/arch/riscv/lib/board.c @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * RISC-V-specific handling of firmware FDT + */ + +#include <asm/global_data.h> +#include <linux/errno.h> + +DECLARE_GLOBAL_DATA_PTR; + +__weak int board_fdt_blob_setup(void **fdtp) +{ + if (!gd->arch.firmware_fdt_addr) + return -EEXIST; + + *fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr; + + return 0; +} |