blob: 0f573e6d7aee26e7ecfc6773b67637f85b9f86f8 [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 {
Icenowy Zhengfc4c5472022-01-29 10:23:08 -050015#ifndef CONFIG_MACH_SUNIV
Andre Przywara724b9a82021-04-16 11:52:27 +010016 mmc0 = &mmc0;
Icenowy Zhengfc4c5472022-01-29 10:23:08 -050017#endif
Andre Przywara42284ec2021-11-30 23:18:54 +000018#if CONFIG_MMC_SUNXI_SLOT_EXTRA == 2
Jagan Teki301a6652019-01-21 16:01:15 +053019 mmc1 = &mmc2;
Icenowy Zheng63809112021-07-22 14:30:04 +080020#endif
Jagan Teki301a6652019-01-21 16:01:15 +053021 };
22
Simon Glass896b4212020-09-01 05:14:01 -060023 binman: binman {
24 multiple-images;
25 };
26};
27
28&binman {
29 u-boot-sunxi-with-spl {
Simon Glassde441862016-11-25 20:16:01 -070030 filename = "u-boot-sunxi-with-spl.bin";
31 pad-byte = <0xff>;
Samuel Holland85852b22020-10-21 21:12:10 -050032
Simon Glassde441862016-11-25 20:16:01 -070033 blob {
34 filename = "spl/sunxi-spl.bin";
35 };
Samuel Holland85852b22020-10-21 21:12:10 -050036
Simon Glass896b4212020-09-01 05:14:01 -060037#ifdef CONFIG_ARM64
38 fit {
39 description = "Configuration to load ATF before U-Boot";
40 #address-cells = <1>;
41 fit,fdt-list = "of-list";
42
43 images {
44 uboot {
45 description = "U-Boot (64-bit)";
46 type = "standalone";
Samuel Holland91079ac2020-10-21 21:12:14 -050047 os = "u-boot";
Simon Glass896b4212020-09-01 05:14:01 -060048 arch = "arm64";
49 compression = "none";
Samuel Holland4f1449e2021-02-08 00:03:17 -060050 load = <CONFIG_SYS_TEXT_BASE>;
Simon Glass896b4212020-09-01 05:14:01 -060051
52 u-boot-nodtb {
53 };
54 };
Samuel Holland85852b22020-10-21 21:12:10 -050055
Simon Glass896b4212020-09-01 05:14:01 -060056 atf {
57 description = "ARM Trusted Firmware";
58 type = "firmware";
Samuel Holland91079ac2020-10-21 21:12:14 -050059 os = "arm-trusted-firmware";
Simon Glass896b4212020-09-01 05:14:01 -060060 arch = "arm64";
61 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050062 load = <BL31_ADDR>;
63 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050064
Simon Glass896b4212020-09-01 05:14:01 -060065 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050066 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060067 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060068 };
69 };
70
Icenowy Zheng713d6482021-07-22 14:30:03 +080071#ifdef SCP_ADDR
Samuel Holland6b7db0a2020-10-21 21:12:16 -050072 scp {
73 description = "SCP firmware";
74 type = "firmware";
75 arch = "or1k";
76 compression = "none";
77 load = <SCP_ADDR>;
78
79 scp {
80 filename = "scp.bin";
81 missing-msg = "scp-sunxi";
82 };
83 };
Jernej Skrabece638e052021-01-11 21:11:46 +010084#endif
Samuel Holland6b7db0a2020-10-21 21:12:16 -050085
Simon Glass896b4212020-09-01 05:14:01 -060086 @fdt-SEQ {
87 description = "NAME";
88 type = "flat_dt";
89 compression = "none";
90 };
91 };
92
93 configurations {
Samuel Holland1d52ffb2021-02-08 00:03:16 -060094 default = "@config-DEFAULT-SEQ";
Samuel Holland85852b22020-10-21 21:12:10 -050095
Simon Glass896b4212020-09-01 05:14:01 -060096 @config-SEQ {
97 description = "NAME";
Samuel Holland91079ac2020-10-21 21:12:14 -050098 firmware = "atf";
Icenowy Zheng713d6482021-07-22 14:30:03 +080099#ifndef SCP_ADDR
Jernej Skrabece638e052021-01-11 21:11:46 +0100100 loadables = "uboot";
101#else
Samuel Holland6b7db0a2020-10-21 21:12:16 -0500102 loadables = "scp", "uboot";
Jernej Skrabece638e052021-01-11 21:11:46 +0100103#endif
Simon Glass896b4212020-09-01 05:14:01 -0600104 fdt = "fdt-SEQ";
105 };
106 };
107 };
108#else
Simon Glassde441862016-11-25 20:16:01 -0700109 u-boot-img {
Simon Glasse8561af2018-08-01 15:22:37 -0600110 offset = <CONFIG_SPL_PAD_TO>;
Simon Glassde441862016-11-25 20:16:01 -0700111 };
Simon Glass896b4212020-09-01 05:14:01 -0600112#endif
Simon Glassde441862016-11-25 20:16:01 -0700113 };
114};