blob: 63c8da456b4f4abc3b7c6b7e2c863022a8c62828 [file] [log] [blame]
Jagan Teki79030a42020-01-10 00:16:21 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
4 */
5
6#include <config.h>
7
8/ {
Simon Glass9b312e22020-07-19 13:55:57 -06009 binman: binman {
10 multiple-images;
11 };
12};
13
Kever Yangf5315dd2022-12-18 20:43:38 +080014#ifdef CONFIG_TPL
Simon Glass9b312e22020-07-19 13:55:57 -060015&binman {
16 simple-bin {
Jagan Teki79030a42020-01-10 00:16:21 +053017 filename = "u-boot-rockchip.bin";
18 pad-byte = <0xff>;
19
Quentin Schulz001f7882022-09-02 15:10:51 +020020 mkimage {
Jagan Teki79030a42020-01-10 00:16:21 +053021 filename = "idbloader.img";
Quentin Schulz001f7882022-09-02 15:10:51 +020022 args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
23#ifdef CONFIG_TPL
24 multiple-data-files;
25
26 u-boot-tpl {
27 };
28#endif
29 u-boot-spl {
30 };
Jagan Teki79030a42020-01-10 00:16:21 +053031 };
32
Simon Glasse0c0eff2023-01-07 14:07:18 -070033#if defined(CONFIG_SPL_FIT) && defined(CONFIG_ARM64)
34 fit: fit {
35 description = "FIT image for U-Boot with bl31 (TF-A)";
36 #address-cells = <1>;
37 fit,fdt-list = "of-list";
Quentin Schulz05713d52022-09-02 15:10:52 +020038 filename = "u-boot.itb";
Simon Glasse0c0eff2023-01-07 14:07:18 -070039 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Jonas Karlman5ad03fc2023-01-21 19:01:39 +000040 fit,align = <512>;
Simon Glasse0c0eff2023-01-07 14:07:18 -070041 offset = <CONFIG_SPL_PAD_TO>;
42 images {
43 u-boot {
44 description = "U-Boot (64-bit)";
45 type = "standalone";
46 os = "U-Boot";
47 arch = "arm64";
48 compression = "none";
49 load = <CONFIG_TEXT_BASE>;
50 entry = <CONFIG_TEXT_BASE>;
51 u-boot-nodtb {
52 };
53 };
54
55 @atf-SEQ {
56 fit,operation = "split-elf";
57 description = "ARM Trusted Firmware";
58 type = "firmware";
59 arch = "arm64";
60 os = "arm-trusted-firmware";
61 compression = "none";
62 fit,load;
63 fit,entry;
64 fit,data;
65
66 atf-bl31 {
67 };
68 };
69 @tee-SEQ {
70 fit,operation = "split-elf";
71 description = "TEE";
72 type = "tee";
73 arch = "arm64";
74 os = "tee";
75 compression = "none";
76 fit,load;
77 fit,entry;
78 fit,data;
79
80 tee-os {
81 optional;
82 };
83 };
84
85 @fdt-SEQ {
86 description = "fdt-NAME";
87 compression = "none";
88 type = "flat_dt";
89 };
90 };
91
92 configurations {
93 default = "@config-DEFAULT-SEQ";
94 @config-SEQ {
95 description = "NAME.dtb";
96 fdt = "fdt-SEQ";
97 firmware = "u-boot";
98 fit,loadables;
99 };
100 };
101 };
Quentin Schulz05713d52022-09-02 15:10:52 +0200102#else
Jagan Teki79030a42020-01-10 00:16:21 +0530103 u-boot-img {
104 offset = <CONFIG_SPL_PAD_TO>;
105 };
Simon Glasse0c0eff2023-01-07 14:07:18 -0700106#endif
Jagan Teki79030a42020-01-10 00:16:21 +0530107 };
Quentin Schulze1faa532022-09-02 15:10:55 +0200108
109#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
110 simple-bin-spi {
111 filename = "u-boot-rockchip-spi.bin";
112 pad-byte = <0xff>;
113
114 mkimage {
115 filename = "idbloader-spi.img";
116 args = "-n", CONFIG_SYS_SOC, "-T", "rkspi";
117#ifdef CONFIG_TPL
118 multiple-data-files;
119
120 u-boot-tpl {
121 };
122#endif
123 u-boot-spl {
124 };
125 };
126
127#ifdef CONFIG_ARM64
Simon Glasse0c0eff2023-01-07 14:07:18 -0700128 fit {
129 type = "blob";
Quentin Schulze1faa532022-09-02 15:10:55 +0200130 filename = "u-boot.itb";
131#else
132 u-boot-img {
133#endif
134 /* Sync with u-boot,spl-payload-offset if present */
135 offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
136 };
137 };
Simon Glasse0c0eff2023-01-07 14:07:18 -0700138#endif /* CONFIG_ROCKCHIP_SPI_IMAGE */
Jagan Teki79030a42020-01-10 00:16:21 +0530139};
Simon Glasse0c0eff2023-01-07 14:07:18 -0700140#endif /* CONFIG_SPL */