blob: af419c7e59028d9f5a0110061dec64a581d924f3 [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;
Andre Przywarae32dad22021-11-30 23:18:54 +000016#if CONFIG_MMC_SUNXI_SLOT_EXTRA == 2
Jagan Teki708b5da2019-01-21 16:01:15 +053017 mmc1 = &mmc2;
Icenowy Zheng03510bf2021-07-22 14:30:04 +080018#endif
Jagan Teki708b5da2019-01-21 16:01:15 +053019 };
20
Simon Glasscfa3db62020-09-01 05:14:01 -060021 binman: binman {
22 multiple-images;
23 };
24};
25
26&binman {
27 u-boot-sunxi-with-spl {
Simon Glass61b994a2016-11-25 20:16:01 -070028 filename = "u-boot-sunxi-with-spl.bin";
29 pad-byte = <0xff>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050030
Simon Glass61b994a2016-11-25 20:16:01 -070031 blob {
Samuel Holland9a4aa312023-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 Glass61b994a2016-11-25 20:16:01 -070037 filename = "spl/sunxi-spl.bin";
38 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050039
Simon Glasscfa3db62020-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 Holland68158d52020-10-21 21:12:14 -050050 os = "u-boot";
Simon Glasscfa3db62020-09-01 05:14:01 -060051 arch = "arm64";
52 compression = "none";
Simon Glass98463902022-10-20 18:22:39 -060053 load = <CONFIG_TEXT_BASE>;
Simon Glasscfa3db62020-09-01 05:14:01 -060054
55 u-boot-nodtb {
56 };
57 };
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050058
Simon Glasscfa3db62020-09-01 05:14:01 -060059 atf {
60 description = "ARM Trusted Firmware";
61 type = "firmware";
Samuel Holland68158d52020-10-21 21:12:14 -050062 os = "arm-trusted-firmware";
Simon Glasscfa3db62020-09-01 05:14:01 -060063 arch = "arm64";
64 compression = "none";
Samuel Holland827c4202020-10-21 21:12:12 -050065 load = <BL31_ADDR>;
66 entry = <BL31_ADDR>;
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050067
Simon Glasscfa3db62020-09-01 05:14:01 -060068 atf-bl31 {
Samuel Holland6b7c7ed2020-10-21 21:12:11 -050069 filename = "bl31.bin";
Simon Glass68de0672020-09-06 10:39:10 -060070 missing-msg = "atf-bl31-sunxi";
Simon Glasscfa3db62020-09-01 05:14:01 -060071 };
72 };
73
Icenowy Zheng001ec432021-07-22 14:30:03 +080074#ifdef SCP_ADDR
Samuel Hollande72a6be2020-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 Skrabec8ec293e2021-01-11 21:11:46 +010087#endif
Samuel Hollande72a6be2020-10-21 21:12:16 -050088
Simon Glasscfa3db62020-09-01 05:14:01 -060089 @fdt-SEQ {
90 description = "NAME";
91 type = "flat_dt";
92 compression = "none";
93 };
94 };
95
96 configurations {
Samuel Hollanded4bc132021-02-08 00:03:16 -060097 default = "@config-DEFAULT-SEQ";
Samuel Hollandeafbdbb2020-10-21 21:12:10 -050098
Simon Glasscfa3db62020-09-01 05:14:01 -060099 @config-SEQ {
100 description = "NAME";
Samuel Holland68158d52020-10-21 21:12:14 -0500101 firmware = "atf";
Icenowy Zheng001ec432021-07-22 14:30:03 +0800102#ifndef SCP_ADDR
Jernej Skrabec8ec293e2021-01-11 21:11:46 +0100103 loadables = "uboot";
104#else
Samuel Hollande72a6be2020-10-21 21:12:16 -0500105 loadables = "scp", "uboot";
Jernej Skrabec8ec293e2021-01-11 21:11:46 +0100106#endif
Simon Glasscfa3db62020-09-01 05:14:01 -0600107 fdt = "fdt-SEQ";
108 };
109 };
110 };
111#else
Simon Glass61b994a2016-11-25 20:16:01 -0700112 u-boot-img {
Simon Glass61b994a2016-11-25 20:16:01 -0700113 };
Simon Glasscfa3db62020-09-01 05:14:01 -0600114#endif
Simon Glass61b994a2016-11-25 20:16:01 -0700115 };
116};