Yao Zi | 742ac54 | 2025-03-07 13:13:41 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | /* | ||||
3 | * RISC-V-specific handling of firmware FDT | ||||
4 | */ | ||||
5 | |||||
6 | #include <asm/global_data.h> | ||||
7 | #include <linux/errno.h> | ||||
8 | |||||
9 | DECLARE_GLOBAL_DATA_PTR; | ||||
10 | |||||
11 | __weak int board_fdt_blob_setup(void **fdtp) | ||||
12 | { | ||||
13 | if (!gd->arch.firmware_fdt_addr) | ||||
14 | return -EEXIST; | ||||
15 | |||||
16 | *fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr; | ||||
17 | |||||
18 | return 0; | ||||
19 | } |