2020-01-09 18:46:21 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
/ {
|
2020-07-19 19:55:57 +00:00
|
|
|
binman: binman {
|
|
|
|
multiple-images;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-01-27 07:21:33 +00:00
|
|
|
#ifdef CONFIG_SPL
|
2020-07-19 19:55:57 +00:00
|
|
|
&binman {
|
|
|
|
simple-bin {
|
2020-01-09 18:46:21 +00:00
|
|
|
filename = "u-boot-rockchip.bin";
|
|
|
|
pad-byte = <0xff>;
|
|
|
|
|
2022-09-02 13:10:51 +00:00
|
|
|
mkimage {
|
2020-01-09 18:46:21 +00:00
|
|
|
filename = "idbloader.img";
|
2022-09-02 13:10:51 +00:00
|
|
|
args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
|
|
|
|
multiple-data-files;
|
|
|
|
|
2023-02-25 19:01:34 +00:00
|
|
|
#ifdef CONFIG_ROCKCHIP_EXTERNAL_TPL
|
|
|
|
rockchip-tpl {
|
|
|
|
};
|
|
|
|
#elif defined(CONFIG_TPL)
|
2022-09-02 13:10:51 +00:00
|
|
|
u-boot-tpl {
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
u-boot-spl {
|
|
|
|
};
|
2020-01-09 18:46:21 +00:00
|
|
|
};
|
|
|
|
|
2023-01-07 21:07:18 +00:00
|
|
|
#if defined(CONFIG_SPL_FIT) && defined(CONFIG_ARM64)
|
|
|
|
fit: fit {
|
|
|
|
description = "FIT image for U-Boot with bl31 (TF-A)";
|
|
|
|
#address-cells = <1>;
|
|
|
|
fit,fdt-list = "of-list";
|
2022-09-02 13:10:52 +00:00
|
|
|
filename = "u-boot.itb";
|
2023-01-07 21:07:18 +00:00
|
|
|
fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
|
2023-01-21 19:01:39 +00:00
|
|
|
fit,align = <512>;
|
2023-01-07 21:07:18 +00:00
|
|
|
offset = <CONFIG_SPL_PAD_TO>;
|
|
|
|
images {
|
|
|
|
u-boot {
|
|
|
|
description = "U-Boot (64-bit)";
|
|
|
|
type = "standalone";
|
|
|
|
os = "U-Boot";
|
|
|
|
arch = "arm64";
|
|
|
|
compression = "none";
|
|
|
|
load = <CONFIG_TEXT_BASE>;
|
|
|
|
entry = <CONFIG_TEXT_BASE>;
|
|
|
|
u-boot-nodtb {
|
|
|
|
};
|
2023-01-21 19:01:59 +00:00
|
|
|
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
|
|
|
hash {
|
|
|
|
algo = "sha256";
|
|
|
|
};
|
|
|
|
#endif
|
2023-01-07 21:07:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
@atf-SEQ {
|
|
|
|
fit,operation = "split-elf";
|
|
|
|
description = "ARM Trusted Firmware";
|
|
|
|
type = "firmware";
|
|
|
|
arch = "arm64";
|
|
|
|
os = "arm-trusted-firmware";
|
|
|
|
compression = "none";
|
|
|
|
fit,load;
|
|
|
|
fit,entry;
|
|
|
|
fit,data;
|
|
|
|
|
|
|
|
atf-bl31 {
|
|
|
|
};
|
2023-01-21 19:01:59 +00:00
|
|
|
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
|
|
|
hash {
|
|
|
|
algo = "sha256";
|
|
|
|
};
|
|
|
|
#endif
|
2023-01-07 21:07:18 +00:00
|
|
|
};
|
|
|
|
@tee-SEQ {
|
|
|
|
fit,operation = "split-elf";
|
|
|
|
description = "TEE";
|
|
|
|
type = "tee";
|
|
|
|
arch = "arm64";
|
|
|
|
os = "tee";
|
|
|
|
compression = "none";
|
|
|
|
fit,load;
|
|
|
|
fit,entry;
|
|
|
|
fit,data;
|
|
|
|
|
|
|
|
tee-os {
|
|
|
|
optional;
|
|
|
|
};
|
2023-01-21 19:01:59 +00:00
|
|
|
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
|
|
|
hash {
|
|
|
|
algo = "sha256";
|
|
|
|
};
|
|
|
|
#endif
|
2023-01-07 21:07:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
@fdt-SEQ {
|
|
|
|
description = "fdt-NAME";
|
|
|
|
compression = "none";
|
|
|
|
type = "flat_dt";
|
2023-01-21 19:01:59 +00:00
|
|
|
#ifdef CONFIG_SPL_FIT_SIGNATURE
|
|
|
|
hash {
|
|
|
|
algo = "sha256";
|
|
|
|
};
|
|
|
|
#endif
|
2023-01-07 21:07:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
default = "@config-DEFAULT-SEQ";
|
|
|
|
@config-SEQ {
|
|
|
|
description = "NAME.dtb";
|
|
|
|
fdt = "fdt-SEQ";
|
2023-01-21 19:02:26 +00:00
|
|
|
fit,firmware = "atf-1", "u-boot";
|
2023-01-07 21:07:18 +00:00
|
|
|
fit,loadables;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-09-02 13:10:52 +00:00
|
|
|
#else
|
2020-01-09 18:46:21 +00:00
|
|
|
u-boot-img {
|
|
|
|
offset = <CONFIG_SPL_PAD_TO>;
|
|
|
|
};
|
2023-01-07 21:07:18 +00:00
|
|
|
#endif
|
2020-01-09 18:46:21 +00:00
|
|
|
};
|
2022-09-02 13:10:55 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
|
|
|
|
simple-bin-spi {
|
|
|
|
filename = "u-boot-rockchip-spi.bin";
|
|
|
|
pad-byte = <0xff>;
|
|
|
|
|
|
|
|
mkimage {
|
|
|
|
filename = "idbloader-spi.img";
|
|
|
|
args = "-n", CONFIG_SYS_SOC, "-T", "rkspi";
|
|
|
|
multiple-data-files;
|
|
|
|
|
2023-02-25 19:01:34 +00:00
|
|
|
#ifdef CONFIG_ROCKCHIP_EXTERNAL_TPL
|
|
|
|
rockchip-tpl {
|
|
|
|
};
|
|
|
|
#elif defined(CONFIG_TPL)
|
2022-09-02 13:10:55 +00:00
|
|
|
u-boot-tpl {
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
u-boot-spl {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARM64
|
2023-01-07 21:07:18 +00:00
|
|
|
fit {
|
|
|
|
type = "blob";
|
2022-09-02 13:10:55 +00:00
|
|
|
filename = "u-boot.itb";
|
|
|
|
#else
|
|
|
|
u-boot-img {
|
|
|
|
#endif
|
|
|
|
/* Sync with u-boot,spl-payload-offset if present */
|
|
|
|
offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
|
|
|
|
};
|
|
|
|
};
|
2023-01-07 21:07:18 +00:00
|
|
|
#endif /* CONFIG_ROCKCHIP_SPI_IMAGE */
|
2020-01-09 18:46:21 +00:00
|
|
|
};
|
2023-01-07 21:07:18 +00:00
|
|
|
#endif /* CONFIG_SPL */
|