blob: b7244c1112aea28b8672f539386a3e2c047daccf [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;
Icenowy Zheng63809112021-07-22 14:30:04 +080016#if CONFIG_MMC_SUNXI_EXTRA_SLOT == 2
Jagan Teki301a6652019-01-21 16:01:15 +053017 mmc1 = &mmc2;
Icenowy Zheng63809112021-07-22 14:30:04 +080018#endif
Jagan Teki301a6652019-01-21 16:01:15 +053019 };
20
Simon Glass896b4212020-09-01 05:14:01 -060021 binman: binman {
22 multiple-images;
23 };
24};
25
26&binman {
27 u-boot-sunxi-with-spl {
Simon Glassde441862016-11-25 20:16:01 -070028 filename = "u-boot-sunxi-with-spl.bin";
29 pad-byte = <0xff>;
Samuel Holland85852b22020-10-21 21:12:10 -050030
Simon Glassde441862016-11-25 20:16:01 -070031 blob {
32 filename = "spl/sunxi-spl.bin";
33 };
Samuel Holland85852b22020-10-21 21:12:10 -050034
Simon Glass896b4212020-09-01 05:14:01 -060035#ifdef CONFIG_ARM64
36 fit {
37 description = "Configuration to load ATF before U-Boot";
38 #address-cells = <1>;
39 fit,fdt-list = "of-list";
40
41 images {
42 uboot {
43 description = "U-Boot (64-bit)";
44 type = "standalone";
Samuel Holland91079ac2020-10-21 21:12:14 -050045 os = "u-boot";
Simon Glass896b4212020-09-01 05:14:01 -060046 arch = "arm64";
47 compression = "none";
Samuel Holland4f1449e2021-02-08 00:03:17 -060048 load = <CONFIG_SYS_TEXT_BASE>;
Simon Glass896b4212020-09-01 05:14:01 -060049
50 u-boot-nodtb {
51 };
52 };
Samuel Holland85852b22020-10-21 21:12:10 -050053
Simon Glass896b4212020-09-01 05:14:01 -060054 atf {
55 description = "ARM Trusted Firmware";
56 type = "firmware";
Samuel Holland91079ac2020-10-21 21:12:14 -050057 os = "arm-trusted-firmware";
Simon Glass896b4212020-09-01 05:14:01 -060058 arch = "arm64";
59 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050060 load = <BL31_ADDR>;
61 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050062
Simon Glass896b4212020-09-01 05:14:01 -060063 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050064 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060065 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060066 };
67 };
68
Icenowy Zheng713d6482021-07-22 14:30:03 +080069#ifdef SCP_ADDR
Samuel Holland6b7db0a2020-10-21 21:12:16 -050070 scp {
71 description = "SCP firmware";
72 type = "firmware";
73 arch = "or1k";
74 compression = "none";
75 load = <SCP_ADDR>;
76
77 scp {
78 filename = "scp.bin";
79 missing-msg = "scp-sunxi";
80 };
81 };
Jernej Skrabece638e052021-01-11 21:11:46 +010082#endif
Samuel Holland6b7db0a2020-10-21 21:12:16 -050083
Simon Glass896b4212020-09-01 05:14:01 -060084 @fdt-SEQ {
85 description = "NAME";
86 type = "flat_dt";
87 compression = "none";
88 };
89 };
90
91 configurations {
Samuel Holland1d52ffb2021-02-08 00:03:16 -060092 default = "@config-DEFAULT-SEQ";
Samuel Holland85852b22020-10-21 21:12:10 -050093
Simon Glass896b4212020-09-01 05:14:01 -060094 @config-SEQ {
95 description = "NAME";
Samuel Holland91079ac2020-10-21 21:12:14 -050096 firmware = "atf";
Icenowy Zheng713d6482021-07-22 14:30:03 +080097#ifndef SCP_ADDR
Jernej Skrabece638e052021-01-11 21:11:46 +010098 loadables = "uboot";
99#else
Samuel Holland6b7db0a2020-10-21 21:12:16 -0500100 loadables = "scp", "uboot";
Jernej Skrabece638e052021-01-11 21:11:46 +0100101#endif
Simon Glass896b4212020-09-01 05:14:01 -0600102 fdt = "fdt-SEQ";
103 };
104 };
105 };
106#else
Simon Glassde441862016-11-25 20:16:01 -0700107 u-boot-img {
Simon Glasse8561af2018-08-01 15:22:37 -0600108 offset = <CONFIG_SPL_PAD_TO>;
Simon Glassde441862016-11-25 20:16:01 -0700109 };
Simon Glass896b4212020-09-01 05:14:01 -0600110#endif
Simon Glassde441862016-11-25 20:16:01 -0700111 };
112};