blob: 4a6ed3a7dd5c2fba251feda8d0e7a37ea8eabf0d [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
Jernej Skrabece638e052021-01-11 21:11:46 +01006#elif defined(CONFIG_MACH_SUN50I_H616)
Andre Przywara10d94b12021-03-25 16:20:13 +00007#define BL31_ADDR 0x40000000
Samuel Hollandead2bf12020-10-21 21:12:12 -05008#else
9#define BL31_ADDR 0x44000
Samuel Holland6b7db0a2020-10-21 21:12:16 -050010#define SCP_ADDR 0x50000
Samuel Hollandead2bf12020-10-21 21:12:12 -050011#endif
12
Simon Glassde441862016-11-25 20:16:01 -070013/ {
Jagan Teki301a6652019-01-21 16:01:15 +053014 aliases {
Andre Przywara724b9a82021-04-16 11:52:27 +010015 mmc0 = &mmc0;
Jagan Teki301a6652019-01-21 16:01:15 +053016 mmc1 = &mmc2;
17 };
18
Simon Glass896b4212020-09-01 05:14:01 -060019 binman: binman {
20 multiple-images;
21 };
22};
23
24&binman {
25 u-boot-sunxi-with-spl {
Simon Glassde441862016-11-25 20:16:01 -070026 filename = "u-boot-sunxi-with-spl.bin";
27 pad-byte = <0xff>;
Samuel Holland85852b22020-10-21 21:12:10 -050028
Simon Glassde441862016-11-25 20:16:01 -070029 blob {
30 filename = "spl/sunxi-spl.bin";
31 };
Samuel Holland85852b22020-10-21 21:12:10 -050032
Simon Glass896b4212020-09-01 05:14:01 -060033#ifdef CONFIG_ARM64
34 fit {
35 description = "Configuration to load ATF before U-Boot";
36 #address-cells = <1>;
37 fit,fdt-list = "of-list";
38
39 images {
40 uboot {
41 description = "U-Boot (64-bit)";
42 type = "standalone";
Samuel Holland91079ac2020-10-21 21:12:14 -050043 os = "u-boot";
Simon Glass896b4212020-09-01 05:14:01 -060044 arch = "arm64";
45 compression = "none";
Samuel Holland4f1449e2021-02-08 00:03:17 -060046 load = <CONFIG_SYS_TEXT_BASE>;
Simon Glass896b4212020-09-01 05:14:01 -060047
48 u-boot-nodtb {
49 };
50 };
Samuel Holland85852b22020-10-21 21:12:10 -050051
Simon Glass896b4212020-09-01 05:14:01 -060052 atf {
53 description = "ARM Trusted Firmware";
54 type = "firmware";
Samuel Holland91079ac2020-10-21 21:12:14 -050055 os = "arm-trusted-firmware";
Simon Glass896b4212020-09-01 05:14:01 -060056 arch = "arm64";
57 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050058 load = <BL31_ADDR>;
59 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050060
Simon Glass896b4212020-09-01 05:14:01 -060061 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050062 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060063 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060064 };
65 };
66
Icenowy Zheng713d6482021-07-22 14:30:03 +080067#ifdef SCP_ADDR
Samuel Holland6b7db0a2020-10-21 21:12:16 -050068 scp {
69 description = "SCP firmware";
70 type = "firmware";
71 arch = "or1k";
72 compression = "none";
73 load = <SCP_ADDR>;
74
75 scp {
76 filename = "scp.bin";
77 missing-msg = "scp-sunxi";
78 };
79 };
Jernej Skrabece638e052021-01-11 21:11:46 +010080#endif
Samuel Holland6b7db0a2020-10-21 21:12:16 -050081
Simon Glass896b4212020-09-01 05:14:01 -060082 @fdt-SEQ {
83 description = "NAME";
84 type = "flat_dt";
85 compression = "none";
86 };
87 };
88
89 configurations {
Samuel Holland1d52ffb2021-02-08 00:03:16 -060090 default = "@config-DEFAULT-SEQ";
Samuel Holland85852b22020-10-21 21:12:10 -050091
Simon Glass896b4212020-09-01 05:14:01 -060092 @config-SEQ {
93 description = "NAME";
Samuel Holland91079ac2020-10-21 21:12:14 -050094 firmware = "atf";
Icenowy Zheng713d6482021-07-22 14:30:03 +080095#ifndef SCP_ADDR
Jernej Skrabece638e052021-01-11 21:11:46 +010096 loadables = "uboot";
97#else
Samuel Holland6b7db0a2020-10-21 21:12:16 -050098 loadables = "scp", "uboot";
Jernej Skrabece638e052021-01-11 21:11:46 +010099#endif
Simon Glass896b4212020-09-01 05:14:01 -0600100 fdt = "fdt-SEQ";
101 };
102 };
103 };
104#else
Simon Glassde441862016-11-25 20:16:01 -0700105 u-boot-img {
Simon Glasse8561af2018-08-01 15:22:37 -0600106 offset = <CONFIG_SPL_PAD_TO>;
Simon Glassde441862016-11-25 20:16:01 -0700107 };
Simon Glass896b4212020-09-01 05:14:01 -0600108#endif
Simon Glassde441862016-11-25 20:16:01 -0700109 };
110};