blob: af419c7e59028d9f5a0110061dec64a581d924f3 [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;
Andre Przywara42284ec2021-11-30 23:18:54 +000016#if CONFIG_MMC_SUNXI_SLOT_EXTRA == 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 {
Samuel Holland0cb149a2023-01-21 17:25:17 -060032 /*
33 * This value matches SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
34 * and SYS_SPI_U_BOOT_OFFS if those are defined.
35 */
36 min-size = <0x8000>;
Simon Glassde441862016-11-25 20:16:01 -070037 filename = "spl/sunxi-spl.bin";
38 };
Samuel Holland85852b22020-10-21 21:12:10 -050039
Simon Glass896b4212020-09-01 05:14:01 -060040#ifdef CONFIG_ARM64
41 fit {
42 description = "Configuration to load ATF before U-Boot";
43 #address-cells = <1>;
44 fit,fdt-list = "of-list";
45
46 images {
47 uboot {
48 description = "U-Boot (64-bit)";
49 type = "standalone";
Samuel Holland91079ac2020-10-21 21:12:14 -050050 os = "u-boot";
Simon Glass896b4212020-09-01 05:14:01 -060051 arch = "arm64";
52 compression = "none";
Simon Glass72cc5382022-10-20 18:22:39 -060053 load = <CONFIG_TEXT_BASE>;
Simon Glass896b4212020-09-01 05:14:01 -060054
55 u-boot-nodtb {
56 };
57 };
Samuel Holland85852b22020-10-21 21:12:10 -050058
Simon Glass896b4212020-09-01 05:14:01 -060059 atf {
60 description = "ARM Trusted Firmware";
61 type = "firmware";
Samuel Holland91079ac2020-10-21 21:12:14 -050062 os = "arm-trusted-firmware";
Simon Glass896b4212020-09-01 05:14:01 -060063 arch = "arm64";
64 compression = "none";
Samuel Hollandead2bf12020-10-21 21:12:12 -050065 load = <BL31_ADDR>;
66 entry = <BL31_ADDR>;
Samuel Holland85852b22020-10-21 21:12:10 -050067
Simon Glass896b4212020-09-01 05:14:01 -060068 atf-bl31 {
Samuel Hollandd8c15442020-10-21 21:12:11 -050069 filename = "bl31.bin";
Simon Glass5d90d5e2020-09-06 10:39:10 -060070 missing-msg = "atf-bl31-sunxi";
Simon Glass896b4212020-09-01 05:14:01 -060071 };
72 };
73
Icenowy Zheng713d6482021-07-22 14:30:03 +080074#ifdef SCP_ADDR
Samuel Holland6b7db0a2020-10-21 21:12:16 -050075 scp {
76 description = "SCP firmware";
77 type = "firmware";
78 arch = "or1k";
79 compression = "none";
80 load = <SCP_ADDR>;
81
82 scp {
83 filename = "scp.bin";
84 missing-msg = "scp-sunxi";
85 };
86 };
Jernej Skrabece638e052021-01-11 21:11:46 +010087#endif
Samuel Holland6b7db0a2020-10-21 21:12:16 -050088
Simon Glass896b4212020-09-01 05:14:01 -060089 @fdt-SEQ {
90 description = "NAME";
91 type = "flat_dt";
92 compression = "none";
93 };
94 };
95
96 configurations {
Samuel Holland1d52ffb2021-02-08 00:03:16 -060097 default = "@config-DEFAULT-SEQ";
Samuel Holland85852b22020-10-21 21:12:10 -050098
Simon Glass896b4212020-09-01 05:14:01 -060099 @config-SEQ {
100 description = "NAME";
Samuel Holland91079ac2020-10-21 21:12:14 -0500101 firmware = "atf";
Icenowy Zheng713d6482021-07-22 14:30:03 +0800102#ifndef SCP_ADDR
Jernej Skrabece638e052021-01-11 21:11:46 +0100103 loadables = "uboot";
104#else
Samuel Holland6b7db0a2020-10-21 21:12:16 -0500105 loadables = "scp", "uboot";
Jernej Skrabece638e052021-01-11 21:11:46 +0100106#endif
Simon Glass896b4212020-09-01 05:14:01 -0600107 fdt = "fdt-SEQ";
108 };
109 };
110 };
111#else
Simon Glassde441862016-11-25 20:16:01 -0700112 u-boot-img {
Simon Glassde441862016-11-25 20:16:01 -0700113 };
Simon Glass896b4212020-09-01 05:14:01 -0600114#endif
Simon Glassde441862016-11-25 20:16:01 -0700115 };
116};