diff options
author | Quentin Schulz <quentin.schulz@theobroma-systems.com> | 2022-09-02 15:10:55 +0200 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2022-09-04 20:00:39 +0800 |
commit | e1faa535b978958a264c9623a8ca941f0adcb860 (patch) | |
tree | 7dfb240f872ae28bab37c12b9607645493f718f3 /arch/arm/dts/rockchip-u-boot.dtsi | |
parent | a4bb36df4934c5c710a83835d3760a6587aa5662 (diff) | |
download | u-boot-e1faa535b978958a264c9623a8ca941f0adcb860.tar.gz |
rockchip: add u-boot-rockchip-spi.bin image for booting from SPI-NOR flash
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>
Diffstat (limited to 'arch/arm/dts/rockchip-u-boot.dtsi')
-rw-r--r-- | arch/arm/dts/rockchip-u-boot.dtsi | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi index f90a8bf085f..584f21eb5bf 100644 --- a/arch/arm/dts/rockchip-u-boot.dtsi +++ b/arch/arm/dts/rockchip-u-boot.dtsi @@ -39,5 +39,35 @@ 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 |