Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2021, Bin Meng <bmeng.cn@gmail.com> |
| 4 | */ |
| 5 | |
| 6 | #include <config.h> |
| 7 | |
| 8 | / { |
| 9 | binman: binman { |
| 10 | multiple-images; |
| 11 | }; |
| 12 | }; |
| 13 | |
| 14 | &binman { |
| 15 | itb { |
| 16 | filename = "u-boot.itb"; |
| 17 | |
| 18 | fit { |
| 19 | description = "Configuration to load OpenSBI before U-Boot"; |
| 20 | #address-cells = <1>; |
| 21 | fit,fdt-list = "of-list"; |
| 22 | |
| 23 | images { |
| 24 | uboot { |
| 25 | description = "U-Boot"; |
| 26 | type = "standalone"; |
| 27 | os = "U-Boot"; |
| 28 | arch = "riscv"; |
| 29 | compression = "none"; |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 30 | load = <CONFIG_TEXT_BASE>; |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 31 | |
| 32 | uboot_blob: blob-ext { |
| 33 | filename = "u-boot-nodtb.bin"; |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | opensbi { |
| 38 | description = "OpenSBI fw_dynamic Firmware"; |
| 39 | type = "firmware"; |
| 40 | os = "opensbi"; |
| 41 | arch = "riscv"; |
| 42 | compression = "none"; |
| 43 | load = <CONFIG_SPL_OPENSBI_LOAD_ADDR>; |
| 44 | entry = <CONFIG_SPL_OPENSBI_LOAD_ADDR>; |
| 45 | |
| 46 | opensbi_blob: opensbi { |
| 47 | filename = "fw_dynamic.bin"; |
Rick Chen | ddcdd94 | 2023-02-17 16:57:01 +0800 | [diff] [blame] | 48 | missing-msg = "opensbi"; |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 49 | }; |
| 50 | }; |
| 51 | |
Ilias Apalodimas | dc35df4 | 2021-10-12 00:00:13 +0300 | [diff] [blame] | 52 | #ifndef CONFIG_OF_BOARD |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 53 | @fdt-SEQ { |
| 54 | description = "NAME"; |
| 55 | type = "flat_dt"; |
| 56 | compression = "none"; |
| 57 | }; |
Bin Meng | 1255ab8 | 2021-05-10 20:23:39 +0800 | [diff] [blame] | 58 | #endif |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 59 | }; |
| 60 | |
| 61 | configurations { |
| 62 | default = "conf-1"; |
| 63 | |
Ilias Apalodimas | dc35df4 | 2021-10-12 00:00:13 +0300 | [diff] [blame] | 64 | #ifndef CONFIG_OF_BOARD |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 65 | @conf-SEQ { |
Bin Meng | 1255ab8 | 2021-05-10 20:23:39 +0800 | [diff] [blame] | 66 | #else |
| 67 | conf-1 { |
| 68 | #endif |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 69 | description = "NAME"; |
| 70 | firmware = "opensbi"; |
| 71 | loadables = "uboot"; |
Ilias Apalodimas | dc35df4 | 2021-10-12 00:00:13 +0300 | [diff] [blame] | 72 | #ifndef CONFIG_OF_BOARD |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 73 | fdt = "fdt-SEQ"; |
Bin Meng | 1255ab8 | 2021-05-10 20:23:39 +0800 | [diff] [blame] | 74 | #endif |
Bin Meng | ced2097 | 2021-05-10 20:23:35 +0800 | [diff] [blame] | 75 | }; |
| 76 | }; |
| 77 | }; |
| 78 | }; |
| 79 | }; |