Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 1 | #include <config.h> |
| 2 | |
Stephen Warren | 753155a | 2017-12-19 18:30:34 -0700 | [diff] [blame] | 3 | #ifdef CONFIG_SPL_TEXT_BASE |
Simon Glass | 72cc538 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 4 | #define U_BOOT_OFFSET (CONFIG_TEXT_BASE - CONFIG_SPL_TEXT_BASE) |
Stephen Warren | 753155a | 2017-12-19 18:30:34 -0700 | [diff] [blame] | 5 | #else |
| 6 | #define U_BOOT_OFFSET 0 |
| 7 | #endif |
| 8 | |
Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 9 | / { |
| 10 | binman { |
| 11 | multiple-images; |
| 12 | image1 { |
| 13 | filename = "u-boot-tegra.bin"; |
| 14 | pad-byte = <0xff>; |
| 15 | u-boot-spl { |
| 16 | }; |
| 17 | u-boot { |
Simon Glass | e8561af | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 18 | offset = <(U_BOOT_OFFSET)>; |
Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 19 | }; |
| 20 | }; |
| 21 | |
Svyatoslav Ryhel | 79c34b9 | 2024-08-02 15:51:41 +0300 | [diff] [blame] | 22 | #ifdef CONFIG_MULTI_DTB_FIT |
| 23 | image2 { |
| 24 | filename = "u-boot-dtb-tegra.bin"; |
| 25 | pad-byte = <0xff>; |
| 26 | u-boot-spl { |
| 27 | }; |
| 28 | u-boot-nodtb { |
| 29 | offset = <(U_BOOT_OFFSET)>; |
| 30 | }; |
| 31 | fit-dtb { |
| 32 | #ifdef CONFIG_MULTI_DTB_FIT_LZO |
| 33 | filename = "fit-dtb.blob.lzo"; |
| 34 | #elif CONFIG_MULTI_DTB_FIT_GZIP |
| 35 | filename = "fit-dtb.blob.gz"; |
| 36 | #else |
| 37 | filename = "fit-dtb.blob"; |
| 38 | #endif |
| 39 | type = "blob"; |
| 40 | }; |
| 41 | }; |
| 42 | #else |
Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 43 | /* Same as image1 - some tools still expect the -dtb suffix */ |
| 44 | image2 { |
| 45 | filename = "u-boot-dtb-tegra.bin"; |
| 46 | pad-byte = <0xff>; |
| 47 | u-boot-spl { |
| 48 | }; |
| 49 | u-boot { |
Simon Glass | e8561af | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 50 | offset = <(U_BOOT_OFFSET)>; |
Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 51 | }; |
| 52 | }; |
Svyatoslav Ryhel | 79c34b9 | 2024-08-02 15:51:41 +0300 | [diff] [blame] | 53 | #endif |
Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 54 | |
| 55 | image3 { |
| 56 | filename = "u-boot-nodtb-tegra.bin"; |
| 57 | pad-byte = <0xff>; |
| 58 | u-boot-spl { |
| 59 | }; |
| 60 | u-boot-nodtb { |
Simon Glass | e8561af | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 61 | offset = <(U_BOOT_OFFSET)>; |
Simon Glass | 878c09b | 2017-11-13 18:55:06 -0700 | [diff] [blame] | 62 | }; |
| 63 | }; |
| 64 | }; |
| 65 | }; |