blob: c77cf7cacf0c7363b05a5c8554c76040ed566d07 [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
Samuel Holland6b7db0a2020-10-21 21:12:16 -05005#define SCP_ADDR 0x114000
Samuel Hollandead2bf12020-10-21 21:12:12 -05006#else
7#define BL31_ADDR 0x44000
Samuel Holland6b7db0a2020-10-21 21:12:16 -05008#define SCP_ADDR 0x50000
Samuel Hollandead2bf12020-10-21 21:12:12 -05009#endif
10
Simon Glassde441862016-11-25 20:16:01 -070011/ {
Jagan Teki301a6652019-01-21 16:01:15 +053012 aliases {
13 mmc1 = &mmc2;
14 };
15
Simon Glass896b4212020-09-01 05:14:01 -060016 binman: binman {
17 multiple-images;
18 };
19};
20
21&binman {
22 u-boot-sunxi-with-spl {
Simon Glassde441862016-11-25 20:16:01 -070023 filename = "u-boot-sunxi-with-spl.bin";
24 pad-byte = <0xff>;
Samuel Holland85852b22020-10-21 21:12:10 -050025
Simon Glassde441862016-11-25 20:16:01 -070026 blob {
27 filename = "spl/sunxi-spl.bin";
28 };
Samuel Holland85852b22020-10-21 21:12:10 -050029
Simon Glass896b4212020-09-01 05:14:01 -060030#ifdef CONFIG_ARM64
31 fit {
32 description = "Configuration to load ATF before U-Boot";
33 #address-cells = <1>;
34 fit,fdt-list = "of-list";
35
36 images {
37 uboot {
38 description = "U-Boot (64-bit)";
39 type = "standalone";
Samuel Holland91079ac2020-10-21 21:12:14 -050040 os = "u-boot";
Simon Glass896b4212020-09-01 05:14:01 -060041 arch = "arm64";
42 compression = "none";
43 load = <0x4a000000>;
44
45 u-boot-nodtb {
46 };
47 };
Samuel Holland85852b22020-10-21 21:12:10 -050048
Simon Glass896b4212020-09-01 05:14:01 -060049 atf {
50 description = "ARM Trusted Firmware";
51 type = "firmware";
Samuel Holland91079ac2020-10-21 21:12:14 -050052 os = "arm-trusted-firmware";
Simon Glass896b4212020-09-01 05:14:01 -060053 arch = "arm64";
54 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050055 load = <BL31_ADDR>;
56 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050057
Simon Glass896b4212020-09-01 05:14:01 -060058 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050059 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060060 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060061 };
62 };
63
Samuel Holland6b7db0a2020-10-21 21:12:16 -050064 scp {
65 description = "SCP firmware";
66 type = "firmware";
67 arch = "or1k";
68 compression = "none";
69 load = <SCP_ADDR>;
70
71 scp {
72 filename = "scp.bin";
73 missing-msg = "scp-sunxi";
74 };
75 };
76
Simon Glass896b4212020-09-01 05:14:01 -060077 @fdt-SEQ {
78 description = "NAME";
79 type = "flat_dt";
80 compression = "none";
81 };
82 };
83
84 configurations {
85 default = "config-1";
Samuel Holland85852b22020-10-21 21:12:10 -050086
Simon Glass896b4212020-09-01 05:14:01 -060087 @config-SEQ {
88 description = "NAME";
Samuel Holland91079ac2020-10-21 21:12:14 -050089 firmware = "atf";
Samuel Holland6b7db0a2020-10-21 21:12:16 -050090 loadables = "scp", "uboot";
Simon Glass896b4212020-09-01 05:14:01 -060091 fdt = "fdt-SEQ";
92 };
93 };
94 };
95#else
Simon Glassde441862016-11-25 20:16:01 -070096 u-boot-img {
Simon Glasse8561af2018-08-01 15:22:37 -060097 offset = <CONFIG_SPL_PAD_TO>;
Simon Glassde441862016-11-25 20:16:01 -070098 };
Simon Glass896b4212020-09-01 05:14:01 -060099#endif
Simon Glassde441862016-11-25 20:16:01 -0700100 };
101};