blob: a4227a3c22dd1bb2064afae7eb1d337cc196d6b1 [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 {
15 mmc1 = &mmc2;
16 };
17
Simon Glasscfa3db62020-09-01 05:14:01 -060018 binman: binman {
19 multiple-images;
20 };
21};
22
23&binman {
24 u-boot-sunxi-with-spl {
Simon Glass61b994a2016-11-25 20:16:01 -070025 filename = "u-boot-sunxi-with-spl.bin";
26 pad-byte = <0xff>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050027
Simon Glass61b994a2016-11-25 20:16:01 -070028 blob {
29 filename = "spl/sunxi-spl.bin";
30 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050031
Simon Glasscfa3db62020-09-01 05:14:01 -060032#ifdef CONFIG_ARM64
33 fit {
34 description = "Configuration to load ATF before U-Boot";
35 #address-cells = <1>;
36 fit,fdt-list = "of-list";
37
38 images {
39 uboot {
40 description = "U-Boot (64-bit)";
41 type = "standalone";
Samuel Holland68158d52020-10-21 21:12:14 -050042 os = "u-boot";
Simon Glasscfa3db62020-09-01 05:14:01 -060043 arch = "arm64";
44 compression = "none";
Samuel Holland925cd8d2021-02-08 00:03:17 -060045 load = <CONFIG_SYS_TEXT_BASE>;
Simon Glasscfa3db62020-09-01 05:14:01 -060046
47 u-boot-nodtb {
48 };
49 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050050
Simon Glasscfa3db62020-09-01 05:14:01 -060051 atf {
52 description = "ARM Trusted Firmware";
53 type = "firmware";
Samuel Holland68158d52020-10-21 21:12:14 -050054 os = "arm-trusted-firmware";
Simon Glasscfa3db62020-09-01 05:14:01 -060055 arch = "arm64";
56 compression = "none";
Samuel Holland827c4202020-10-21 21:12:12 -050057 load = <BL31_ADDR>;
58 entry = <BL31_ADDR>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050059
Simon Glasscfa3db62020-09-01 05:14:01 -060060 atf-bl31 {
Samuel Holland6b7c7ed2020-10-21 21:12:11 -050061 filename = "bl31.bin";
Simon Glass68de0672020-09-06 10:39:10 -060062 missing-msg = "atf-bl31-sunxi";
Simon Glasscfa3db62020-09-01 05:14:01 -060063 };
64 };
65
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010066#ifndef CONFIG_MACH_SUN50I_H616
Samuel Hollande72a6be2020-10-21 21:12:16 -050067 scp {
68 description = "SCP firmware";
69 type = "firmware";
70 arch = "or1k";
71 compression = "none";
72 load = <SCP_ADDR>;
73
74 scp {
75 filename = "scp.bin";
76 missing-msg = "scp-sunxi";
77 };
78 };
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010079#endif
Samuel Hollande72a6be2020-10-21 21:12:16 -050080
Simon Glasscfa3db62020-09-01 05:14:01 -060081 @fdt-SEQ {
82 description = "NAME";
83 type = "flat_dt";
84 compression = "none";
85 };
86 };
87
88 configurations {
Samuel Hollanded4bc132021-02-08 00:03:16 -060089 default = "@config-DEFAULT-SEQ";
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050090
Simon Glasscfa3db62020-09-01 05:14:01 -060091 @config-SEQ {
92 description = "NAME";
Samuel Holland68158d52020-10-21 21:12:14 -050093 firmware = "atf";
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010094#ifdef CONFIG_MACH_SUN50I_H616
95 loadables = "uboot";
96#else
Samuel Hollande72a6be2020-10-21 21:12:16 -050097 loadables = "scp", "uboot";
Jernej Skrabec8ec293e2021-01-11 21:11:46 +010098#endif
Simon Glasscfa3db62020-09-01 05:14:01 -060099 fdt = "fdt-SEQ";
100 };
101 };
102 };
103#else
Simon Glass61b994a2016-11-25 20:16:01 -0700104 u-boot-img {
Simon Glass3ab95982018-08-01 15:22:37 -0600105 offset = <CONFIG_SPL_PAD_TO>;
Simon Glass61b994a2016-11-25 20:16:01 -0700106 };
Simon Glasscfa3db62020-09-01 05:14:01 -0600107#endif
Simon Glass61b994a2016-11-25 20:16:01 -0700108 };
109};