mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 09:30:10 +00:00
e1faa535b9
This new image is similar to u-boot-rockchip.bin except that it's destined to be flashed on SPI-NOR flashes. Cc: Quentin Schulz <foss+uboot@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
73 lines
1.1 KiB
Text
73 lines
1.1 KiB
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
/ {
|
|
binman: binman {
|
|
multiple-images;
|
|
};
|
|
};
|
|
|
|
#ifdef CONFIG_SPL
|
|
&binman {
|
|
simple-bin {
|
|
filename = "u-boot-rockchip.bin";
|
|
pad-byte = <0xff>;
|
|
|
|
mkimage {
|
|
filename = "idbloader.img";
|
|
args = "-n", CONFIG_SYS_SOC, "-T", "rksd";
|
|
#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
|
|
offset = <CONFIG_SPL_PAD_TO>;
|
|
};
|
|
};
|
|
|
|
#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
|
|
};
|
|
#endif
|