blob: 234fc5df433226dc5c1f979853c983745820195b [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>;
40 offset = <CONFIG_SPL_PAD_TO>;
41 images {
42 u-boot {
43 description = "U-Boot (64-bit)";
44 type = "standalone";
45 os = "U-Boot";
46 arch = "arm64";
47 compression = "none";
48 load = <CONFIG_TEXT_BASE>;
49 entry = <CONFIG_TEXT_BASE>;
50 u-boot-nodtb {
51 };
52 };
53
54 @atf-SEQ {
55 fit,operation = "split-elf";
56 description = "ARM Trusted Firmware";
57 type = "firmware";
58 arch = "arm64";
59 os = "arm-trusted-firmware";
60 compression = "none";
61 fit,load;
62 fit,entry;
63 fit,data;
64
65 atf-bl31 {
66 };
67 };
68 @tee-SEQ {
69 fit,operation = "split-elf";
70 description = "TEE";
71 type = "tee";
72 arch = "arm64";
73 os = "tee";
74 compression = "none";
75 fit,load;
76 fit,entry;
77 fit,data;
78
79 tee-os {
80 optional;
81 };
82 };
83
84 @fdt-SEQ {
85 description = "fdt-NAME";
86 compression = "none";
87 type = "flat_dt";
88 };
89 };
90
91 configurations {
92 default = "@config-DEFAULT-SEQ";
93 @config-SEQ {
94 description = "NAME.dtb";
95 fdt = "fdt-SEQ";
96 firmware = "u-boot";
97 fit,loadables;
98 };
99 };
100 };
Quentin Schulz05713d52022-09-02 15:10:52 +0200101#else
Jagan Teki79030a42020-01-10 00:16:21 +0530102 u-boot-img {
103 offset = <CONFIG_SPL_PAD_TO>;
104 };
Simon Glasse0c0eff2023-01-07 14:07:18 -0700105#endif
Jagan Teki79030a42020-01-10 00:16:21 +0530106 };
Quentin Schulze1faa532022-09-02 15:10:55 +0200107
108#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
109 simple-bin-spi {
110 filename = "u-boot-rockchip-spi.bin";
111 pad-byte = <0xff>;
112
113 mkimage {
114 filename = "idbloader-spi.img";
115 args = "-n", CONFIG_SYS_SOC, "-T", "rkspi";
116#ifdef CONFIG_TPL
117 multiple-data-files;
118
119 u-boot-tpl {
120 };
121#endif
122 u-boot-spl {
123 };
124 };
125
126#ifdef CONFIG_ARM64
Simon Glasse0c0eff2023-01-07 14:07:18 -0700127 fit {
128 type = "blob";
Quentin Schulze1faa532022-09-02 15:10:55 +0200129 filename = "u-boot.itb";
130#else
131 u-boot-img {
132#endif
133 /* Sync with u-boot,spl-payload-offset if present */
134 offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
135 };
136 };
Simon Glasse0c0eff2023-01-07 14:07:18 -0700137#endif /* CONFIG_ROCKCHIP_SPI_IMAGE */
Jagan Teki79030a42020-01-10 00:16:21 +0530138};
Simon Glasse0c0eff2023-01-07 14:07:18 -0700139#endif /* CONFIG_SPL */