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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-07-19 19:56:07 +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";
|
|
|
|
#ifdef CONFIG_TPL
|
|
|
|
multiple-data-files;
|
|
|
|
|
|
|
|
u-boot-tpl {
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
u-boot-spl {
|
|
|
|
};
|
2020-01-09 18:46:21 +00:00
|
|
|
};
|
|
|
|
|
2022-09-02 13:10:52 +00:00
|
|
|
#ifdef CONFIG_ARM64
|
|
|
|
blob {
|
|
|
|
filename = "u-boot.itb";
|
|
|
|
#else
|
2020-01-09 18:46:21 +00:00
|
|
|
u-boot-img {
|
2022-09-02 13:10:52 +00:00
|
|
|
#endif
|
2020-01-09 18:46:21 +00:00
|
|
|
offset = <CONFIG_SPL_PAD_TO>;
|
|
|
|
};
|
|
|
|
};
|
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";
|
|
|
|
#ifdef CONFIG_TPL
|
|
|
|
multiple-data-files;
|
|
|
|
|
|
|
|
u-boot-tpl {
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
u-boot-spl {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARM64
|
|
|
|
blob {
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
2020-01-09 18:46:21 +00:00
|
|
|
};
|
2020-07-19 19:56:07 +00:00
|
|
|
#endif
|