blob: c77cf7cacf0c7363b05a5c8554c76040ed566d07 [file] [log] [blame]
Simon Glass61b994a2016-11-25 20:16:01 -07001#include <config.h>
2
Samuel Holland827c4202020-10-21 21:12:12 -05003#ifdef CONFIG_MACH_SUN50I_H6
4#define BL31_ADDR 0x104000
Samuel Hollande72a6be2020-10-21 21:12:16 -05005#define SCP_ADDR 0x114000
Samuel Holland827c4202020-10-21 21:12:12 -05006#else
7#define BL31_ADDR 0x44000
Samuel Hollande72a6be2020-10-21 21:12:16 -05008#define SCP_ADDR 0x50000
Samuel Holland827c4202020-10-21 21:12:12 -05009#endif
10
Simon Glass61b994a2016-11-25 20:16:01 -070011/ {
Jagan Teki708b5da2019-01-21 16:01:15 +053012 aliases {
13 mmc1 = &mmc2;
14 };
15
Simon Glasscfa3db62020-09-01 05:14:01 -060016 binman: binman {
17 multiple-images;
18 };
19};
20
21&binman {
22 u-boot-sunxi-with-spl {
Simon Glass61b994a2016-11-25 20:16:01 -070023 filename = "u-boot-sunxi-with-spl.bin";
24 pad-byte = <0xff>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050025
Simon Glass61b994a2016-11-25 20:16:01 -070026 blob {
27 filename = "spl/sunxi-spl.bin";
28 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050029
Simon Glasscfa3db62020-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 Holland68158d52020-10-21 21:12:14 -050040 os = "u-boot";
Simon Glasscfa3db62020-09-01 05:14:01 -060041 arch = "arm64";
42 compression = "none";
43 load = <0x4a000000>;
44
45 u-boot-nodtb {
46 };
47 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050048
Simon Glasscfa3db62020-09-01 05:14:01 -060049 atf {
50 description = "ARM Trusted Firmware";
51 type = "firmware";
Samuel Holland68158d52020-10-21 21:12:14 -050052 os = "arm-trusted-firmware";
Simon Glasscfa3db62020-09-01 05:14:01 -060053 arch = "arm64";
54 compression = "none";
Samuel Holland827c4202020-10-21 21:12:12 -050055 load = <BL31_ADDR>;
56 entry = <BL31_ADDR>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050057
Simon Glasscfa3db62020-09-01 05:14:01 -060058 atf-bl31 {
Samuel Holland6b7c7ed2020-10-21 21:12:11 -050059 filename = "bl31.bin";
Simon Glass68de0672020-09-06 10:39:10 -060060 missing-msg = "atf-bl31-sunxi";
Simon Glasscfa3db62020-09-01 05:14:01 -060061 };
62 };
63
Samuel Hollande72a6be2020-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 Glasscfa3db62020-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 Hollandeafbdbb2020-10-21 21:12:10 -050086
Simon Glasscfa3db62020-09-01 05:14:01 -060087 @config-SEQ {
88 description = "NAME";
Samuel Holland68158d52020-10-21 21:12:14 -050089 firmware = "atf";
Samuel Hollande72a6be2020-10-21 21:12:16 -050090 loadables = "scp", "uboot";
Simon Glasscfa3db62020-09-01 05:14:01 -060091 fdt = "fdt-SEQ";
92 };
93 };
94 };
95#else
Simon Glass61b994a2016-11-25 20:16:01 -070096 u-boot-img {
Simon Glass3ab95982018-08-01 15:22:37 -060097 offset = <CONFIG_SPL_PAD_TO>;
Simon Glass61b994a2016-11-25 20:16:01 -070098 };
Simon Glasscfa3db62020-09-01 05:14:01 -060099#endif
Simon Glass61b994a2016-11-25 20:16:01 -0700100 };
101};