diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/u-boot/arch/arm/dts/sunxi-u-boot.dtsi | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/u-boot/arch/arm/dts/sunxi-u-boot.dtsi')
-rw-r--r-- | roms/u-boot/arch/arm/dts/sunxi-u-boot.dtsi | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/roms/u-boot/arch/arm/dts/sunxi-u-boot.dtsi b/roms/u-boot/arch/arm/dts/sunxi-u-boot.dtsi new file mode 100644 index 000000000..06da009fa --- /dev/null +++ b/roms/u-boot/arch/arm/dts/sunxi-u-boot.dtsi @@ -0,0 +1,110 @@ +#include <config.h> + +#ifdef CONFIG_MACH_SUN50I_H6 +#define BL31_ADDR 0x104000 +#define SCP_ADDR 0x114000 +#elif defined(CONFIG_MACH_SUN50I_H616) +#define BL31_ADDR 0x40000000 +#else +#define BL31_ADDR 0x44000 +#define SCP_ADDR 0x50000 +#endif + +/ { + aliases { + mmc0 = &mmc0; + mmc1 = &mmc2; + }; + + binman: binman { + multiple-images; + }; +}; + +&binman { + u-boot-sunxi-with-spl { + filename = "u-boot-sunxi-with-spl.bin"; + pad-byte = <0xff>; + + blob { + filename = "spl/sunxi-spl.bin"; + }; + +#ifdef CONFIG_ARM64 + fit { + description = "Configuration to load ATF before U-Boot"; + #address-cells = <1>; + fit,fdt-list = "of-list"; + + images { + uboot { + description = "U-Boot (64-bit)"; + type = "standalone"; + os = "u-boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SYS_TEXT_BASE>; + + u-boot-nodtb { + }; + }; + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + os = "arm-trusted-firmware"; + arch = "arm64"; + compression = "none"; + load = <BL31_ADDR>; + entry = <BL31_ADDR>; + + atf-bl31 { + filename = "bl31.bin"; + missing-msg = "atf-bl31-sunxi"; + }; + }; + +#ifndef CONFIG_MACH_SUN50I_H616 + scp { + description = "SCP firmware"; + type = "firmware"; + arch = "or1k"; + compression = "none"; + load = <SCP_ADDR>; + + scp { + filename = "scp.bin"; + missing-msg = "scp-sunxi"; + }; + }; +#endif + + @fdt-SEQ { + description = "NAME"; + type = "flat_dt"; + compression = "none"; + }; + }; + + configurations { + default = "@config-DEFAULT-SEQ"; + + @config-SEQ { + description = "NAME"; + firmware = "atf"; +#ifdef CONFIG_MACH_SUN50I_H616 + loadables = "uboot"; +#else + loadables = "scp", "uboot"; +#endif + fdt = "fdt-SEQ"; + }; + }; + }; +#else + u-boot-img { + offset = <CONFIG_SPL_PAD_TO>; + }; +#endif + }; +}; |