blob: 06da009fa28b6a6f368b065ec9d28ef80d143b89 [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
Jernej Skrabec8ec293e2021-01-11 21:11:46 +01006#elif defined(CONFIG_MACH_SUN50I_H616)
Andre Przywarac629ba82021-03-25 16:20:13 +00007#define BL31_ADDR 0x40000000
Samuel Holland827c4202020-10-21 21:12:12 -05008#else
9#define BL31_ADDR 0x44000
Samuel Hollande72a6be2020-10-21 21:12:16 -050010#define SCP_ADDR 0x50000
Samuel Holland827c4202020-10-21 21:12:12 -050011#endif
12
Simon Glass61b994a2016-11-25 20:16:01 -070013/ {
Jagan Teki708b5da2019-01-21 16:01:15 +053014 aliases {
Andre Przywara67854342021-04-16 11:52:27 +010015 mmc0 = &mmc0;
Jagan Teki708b5da2019-01-21 16:01:15 +053016 mmc1 = &mmc2;
17 };
18
Simon Glasscfa3db62020-09-01 05:14:01 -060019 binman: binman {
20 multiple-images;
21 };
22};
23
24&binman {
25 u-boot-sunxi-with-spl {
Simon Glass61b994a2016-11-25 20:16:01 -070026 filename = "u-boot-sunxi-with-spl.bin";
27 pad-byte = <0xff>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050028
Simon Glass61b994a2016-11-25 20:16:01 -070029 blob {
30 filename = "spl/sunxi-spl.bin";
31 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050032
Simon Glasscfa3db62020-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 Holland68158d52020-10-21 21:12:14 -050043 os = "u-boot";
Simon Glasscfa3db62020-09-01 05:14:01 -060044 arch = "arm64";
45 compression = "none";
Samuel Holland925cd8d2021-02-08 00:03:17 -060046 load = <CONFIG_SYS_TEXT_BASE>;
Simon Glasscfa3db62020-09-01 05:14:01 -060047
48 u-boot-nodtb {
49 };
50 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050051
Simon Glasscfa3db62020-09-01 05:14:01 -060052 atf {
53 description = "ARM Trusted Firmware";
54 type = "firmware";
Samuel Holland68158d52020-10-21 21:12:14 -050055 os = "arm-trusted-firmware";
Simon Glasscfa3db62020-09-01 05:14:01 -060056 arch = "arm64";
57 compression = "none";
Samuel Holland827c4202020-10-21 21:12:12 -050058 load = <BL31_ADDR>;
59 entry = <BL31_ADDR>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050060
Simon Glasscfa3db62020-09-01 05:14:01 -060061 atf-bl31 {
Samuel Holland6b7c7ed2020-10-21 21:12:11 -050062 filename = "bl31.bin";
Simon Glass68de0672020-09-06 10:39:10 -060063 missing-msg = "atf-bl31-sunxi";
Simon Glasscfa3db62020-09-01 05:14:01 -060064 };
65 };
66
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010067#ifndef CONFIG_MACH_SUN50I_H616
Samuel Hollande72a6be2020-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 Skrabec8ec293e2021-01-11 21:11:46 +010080#endif
Samuel Hollande72a6be2020-10-21 21:12:16 -050081
Simon Glasscfa3db62020-09-01 05:14:01 -060082 @fdt-SEQ {
83 description = "NAME";
84 type = "flat_dt";
85 compression = "none";
86 };
87 };
88
89 configurations {
Samuel Hollanded4bc132021-02-08 00:03:16 -060090 default = "@config-DEFAULT-SEQ";
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050091
Simon Glasscfa3db62020-09-01 05:14:01 -060092 @config-SEQ {
93 description = "NAME";
Samuel Holland68158d52020-10-21 21:12:14 -050094 firmware = "atf";
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010095#ifdef CONFIG_MACH_SUN50I_H616
96 loadables = "uboot";
97#else
Samuel Hollande72a6be2020-10-21 21:12:16 -050098 loadables = "scp", "uboot";
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010099#endif
Simon Glasscfa3db62020-09-01 05:14:01 -0600100 fdt = "fdt-SEQ";
101 };
102 };
103 };
104#else
Simon Glass61b994a2016-11-25 20:16:01 -0700105 u-boot-img {
Simon Glass3ab95982018-08-01 15:22:37 -0600106 offset = <CONFIG_SPL_PAD_TO>;
Simon Glass61b994a2016-11-25 20:16:01 -0700107 };
Simon Glasscfa3db62020-09-01 05:14:01 -0600108#endif
Simon Glass61b994a2016-11-25 20:16:01 -0700109 };
110};