blob: 9f5b103cbb86179e5093f8f4f6eaaa73b5c61e74 [file] [log] [blame]
Simon Glassde441862016-11-25 20:16:01 -07001#include <config.h>
2
Samuel Hollandead2bf12020-10-21 21:12:12 -05003#ifdef CONFIG_MACH_SUN50I_H6
4#define BL31_ADDR 0x104000
5#else
6#define BL31_ADDR 0x44000
7#endif
8
Simon Glassde441862016-11-25 20:16:01 -07009/ {
Jagan Teki301a6652019-01-21 16:01:15 +053010 aliases {
11 mmc1 = &mmc2;
12 };
13
Simon Glass896b4212020-09-01 05:14:01 -060014 binman: binman {
15 multiple-images;
16 };
17};
18
19&binman {
20 u-boot-sunxi-with-spl {
Simon Glassde441862016-11-25 20:16:01 -070021 filename = "u-boot-sunxi-with-spl.bin";
22 pad-byte = <0xff>;
Samuel Holland85852b22020-10-21 21:12:10 -050023
Simon Glassde441862016-11-25 20:16:01 -070024 blob {
25 filename = "spl/sunxi-spl.bin";
26 };
Samuel Holland85852b22020-10-21 21:12:10 -050027
Simon Glass896b4212020-09-01 05:14:01 -060028#ifdef CONFIG_ARM64
29 fit {
30 description = "Configuration to load ATF before U-Boot";
31 #address-cells = <1>;
32 fit,fdt-list = "of-list";
33
34 images {
35 uboot {
36 description = "U-Boot (64-bit)";
37 type = "standalone";
Samuel Holland91079ac2020-10-21 21:12:14 -050038 os = "u-boot";
Simon Glass896b4212020-09-01 05:14:01 -060039 arch = "arm64";
40 compression = "none";
41 load = <0x4a000000>;
42
43 u-boot-nodtb {
44 };
45 };
Samuel Holland85852b22020-10-21 21:12:10 -050046
Simon Glass896b4212020-09-01 05:14:01 -060047 atf {
48 description = "ARM Trusted Firmware";
49 type = "firmware";
Samuel Holland91079ac2020-10-21 21:12:14 -050050 os = "arm-trusted-firmware";
Simon Glass896b4212020-09-01 05:14:01 -060051 arch = "arm64";
52 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050053 load = <BL31_ADDR>;
54 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050055
Simon Glass896b4212020-09-01 05:14:01 -060056 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050057 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060058 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060059 };
60 };
61
62 @fdt-SEQ {
63 description = "NAME";
64 type = "flat_dt";
65 compression = "none";
66 };
67 };
68
69 configurations {
70 default = "config-1";
Samuel Holland85852b22020-10-21 21:12:10 -050071
Simon Glass896b4212020-09-01 05:14:01 -060072 @config-SEQ {
73 description = "NAME";
Samuel Holland91079ac2020-10-21 21:12:14 -050074 firmware = "atf";
75 loadables = "uboot";
Simon Glass896b4212020-09-01 05:14:01 -060076 fdt = "fdt-SEQ";
77 };
78 };
79 };
80#else
Simon Glassde441862016-11-25 20:16:01 -070081 u-boot-img {
Simon Glasse8561af2018-08-01 15:22:37 -060082 offset = <CONFIG_SPL_PAD_TO>;
Simon Glassde441862016-11-25 20:16:01 -070083 };
Simon Glass896b4212020-09-01 05:14:01 -060084#endif
Simon Glassde441862016-11-25 20:16:01 -070085 };
86};