blob: b8a0d4b6b08e65ef56b311699deec3165f094ea0 [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";
38 arch = "arm64";
39 compression = "none";
40 load = <0x4a000000>;
41
42 u-boot-nodtb {
43 };
44 };
Samuel Holland85852b22020-10-21 21:12:10 -050045
Simon Glass896b4212020-09-01 05:14:01 -060046 atf {
47 description = "ARM Trusted Firmware";
48 type = "firmware";
49 arch = "arm64";
50 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050051 load = <BL31_ADDR>;
52 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050053
Simon Glass896b4212020-09-01 05:14:01 -060054 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050055 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060056 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060057 };
58 };
59
60 @fdt-SEQ {
61 description = "NAME";
62 type = "flat_dt";
63 compression = "none";
64 };
65 };
66
67 configurations {
68 default = "config-1";
Samuel Holland85852b22020-10-21 21:12:10 -050069
Simon Glass896b4212020-09-01 05:14:01 -060070 @config-SEQ {
71 description = "NAME";
72 firmware = "uboot";
73 loadables = "atf";
74 fdt = "fdt-SEQ";
75 };
76 };
77 };
78#else
Simon Glassde441862016-11-25 20:16:01 -070079 u-boot-img {
Simon Glasse8561af2018-08-01 15:22:37 -060080 offset = <CONFIG_SPL_PAD_TO>;
Simon Glassde441862016-11-25 20:16:01 -070081 };
Simon Glass896b4212020-09-01 05:14:01 -060082#endif
Simon Glassde441862016-11-25 20:16:01 -070083 };
84};