Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 1 | #include <config.h> |
2 | |||||
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 3 | #ifdef CONFIG_MACH_SUN50I_H6 |
4 | #define BL31_ADDR 0x104000 | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 5 | #define SCP_ADDR 0x114000 |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 6 | #elif defined(CONFIG_MACH_SUN50I_H616) |
Andre Przywara | c629ba8 | 2021-03-25 16:20:13 +0000 | [diff] [blame] | 7 | #define BL31_ADDR 0x40000000 |
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 8 | #else |
9 | #define BL31_ADDR 0x44000 | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 10 | #define SCP_ADDR 0x50000 |
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 11 | #endif |
12 | |||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 13 | / { |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 14 | aliases { |
Andre Przywara | 6785434 | 2021-04-16 11:52:27 +0100 | [diff] [blame] | 15 | mmc0 = &mmc0; |
Andre Przywara | e32dad2 | 2021-11-30 23:18:54 +0000 | [diff] [blame] | 16 | #if CONFIG_MMC_SUNXI_SLOT_EXTRA == 2 |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 17 | mmc1 = &mmc2; |
Icenowy Zheng | 03510bf | 2021-07-22 14:30:04 +0800 | [diff] [blame] | 18 | #endif |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 19 | }; |
20 | |||||
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 21 | binman: binman { |
22 | multiple-images; | ||||
23 | }; | ||||
24 | }; | ||||
25 | |||||
26 | &binman { | ||||
27 | u-boot-sunxi-with-spl { | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 28 | filename = "u-boot-sunxi-with-spl.bin"; |
29 | pad-byte = <0xff>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 30 | |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 31 | blob { |
Samuel Holland | 9a4aa31 | 2023-01-21 17:25:17 -0600 | [diff] [blame] | 32 | /* |
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 Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 37 | filename = "spl/sunxi-spl.bin"; |
38 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 39 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 40 | #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 Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 50 | os = "u-boot"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 51 | arch = "arm64"; |
52 | compression = "none"; | ||||
Simon Glass | 9846390 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 53 | load = <CONFIG_TEXT_BASE>; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 54 | |
55 | u-boot-nodtb { | ||||
56 | }; | ||||
57 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 58 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 59 | atf { |
60 | description = "ARM Trusted Firmware"; | ||||
61 | type = "firmware"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 62 | os = "arm-trusted-firmware"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 63 | arch = "arm64"; |
64 | compression = "none"; | ||||
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 65 | load = <BL31_ADDR>; |
66 | entry = <BL31_ADDR>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 67 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 68 | atf-bl31 { |
Samuel Holland | 6b7c7ed | 2020-10-21 21:12:11 -0500 | [diff] [blame] | 69 | filename = "bl31.bin"; |
Simon Glass | 68de067 | 2020-09-06 10:39:10 -0600 | [diff] [blame] | 70 | missing-msg = "atf-bl31-sunxi"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 71 | }; |
72 | }; | ||||
73 | |||||
Icenowy Zheng | 001ec43 | 2021-07-22 14:30:03 +0800 | [diff] [blame] | 74 | #ifdef SCP_ADDR |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 75 | 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 Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 87 | #endif |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 88 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 89 | @fdt-SEQ { |
90 | description = "NAME"; | ||||
91 | type = "flat_dt"; | ||||
92 | compression = "none"; | ||||
93 | }; | ||||
94 | }; | ||||
95 | |||||
96 | configurations { | ||||
Samuel Holland | ed4bc13 | 2021-02-08 00:03:16 -0600 | [diff] [blame] | 97 | default = "@config-DEFAULT-SEQ"; |
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 98 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 99 | @config-SEQ { |
100 | description = "NAME"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 101 | firmware = "atf"; |
Icenowy Zheng | 001ec43 | 2021-07-22 14:30:03 +0800 | [diff] [blame] | 102 | #ifndef SCP_ADDR |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 103 | loadables = "uboot"; |
104 | #else | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 105 | loadables = "scp", "uboot"; |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 106 | #endif |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 107 | fdt = "fdt-SEQ"; |
108 | }; | ||||
109 | }; | ||||
110 | }; | ||||
111 | #else | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 112 | u-boot-img { |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 113 | }; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 114 | #endif |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 115 | }; |
116 | }; |