Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 1 | #include <config.h> |
2 | |||||
3 | / { | ||||
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 4 | aliases { |
Andre Przywara | 6785434 | 2021-04-16 11:52:27 +0100 | [diff] [blame] | 5 | mmc0 = &mmc0; |
Andre Przywara | e32dad2 | 2021-11-30 23:18:54 +0000 | [diff] [blame] | 6 | #if CONFIG_MMC_SUNXI_SLOT_EXTRA == 2 |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 7 | mmc1 = &mmc2; |
Icenowy Zheng | 03510bf | 2021-07-22 14:30:04 +0800 | [diff] [blame] | 8 | #endif |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 9 | }; |
10 | |||||
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 11 | binman: binman { |
12 | multiple-images; | ||||
13 | }; | ||||
14 | }; | ||||
15 | |||||
Andre Przywara | 95168d7 | 2022-09-06 15:59:57 +0100 | [diff] [blame] | 16 | /* Let U-Boot be the firmware layer that controls the watchdog. */ |
17 | #ifdef CONFIG_MACH_SUN8I_R528 | ||||
18 | &wdt { | ||||
19 | status = "okay"; | ||||
20 | }; | ||||
21 | #endif | ||||
22 | |||||
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 23 | &binman { |
24 | u-boot-sunxi-with-spl { | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 25 | filename = "u-boot-sunxi-with-spl.bin"; |
26 | pad-byte = <0xff>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 27 | |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 28 | blob { |
Samuel Holland | 9a4aa31 | 2023-01-21 17:25:17 -0600 | [diff] [blame] | 29 | /* |
30 | * This value matches SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR | ||||
31 | * and SYS_SPI_U_BOOT_OFFS if those are defined. | ||||
32 | */ | ||||
33 | min-size = <0x8000>; | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 34 | filename = "spl/sunxi-spl.bin"; |
35 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 36 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 37 | #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 Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 47 | os = "u-boot"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 48 | arch = "arm64"; |
49 | compression = "none"; | ||||
Simon Glass | 9846390 | 2022-10-20 18:22:39 -0600 | [diff] [blame] | 50 | load = <CONFIG_TEXT_BASE>; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 51 | |
52 | u-boot-nodtb { | ||||
53 | }; | ||||
54 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 55 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 56 | atf { |
57 | description = "ARM Trusted Firmware"; | ||||
58 | type = "firmware"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 59 | os = "arm-trusted-firmware"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 60 | arch = "arm64"; |
61 | compression = "none"; | ||||
Samuel Holland | 53c0ad5 | 2023-10-31 00:17:39 -0500 | [diff] [blame^] | 62 | load = <CONFIG_SUNXI_BL31_BASE>; |
63 | entry = <CONFIG_SUNXI_BL31_BASE>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 64 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 65 | atf-bl31 { |
Samuel Holland | 6b7c7ed | 2020-10-21 21:12:11 -0500 | [diff] [blame] | 66 | filename = "bl31.bin"; |
Simon Glass | 68de067 | 2020-09-06 10:39:10 -0600 | [diff] [blame] | 67 | missing-msg = "atf-bl31-sunxi"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 68 | }; |
69 | }; | ||||
70 | |||||
Samuel Holland | 53c0ad5 | 2023-10-31 00:17:39 -0500 | [diff] [blame^] | 71 | #if CONFIG_SUNXI_SCP_BASE |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 72 | scp { |
73 | description = "SCP firmware"; | ||||
74 | type = "firmware"; | ||||
75 | arch = "or1k"; | ||||
76 | compression = "none"; | ||||
Samuel Holland | 53c0ad5 | 2023-10-31 00:17:39 -0500 | [diff] [blame^] | 77 | load = <CONFIG_SUNXI_SCP_BASE>; |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 78 | |
79 | scp { | ||||
80 | filename = "scp.bin"; | ||||
81 | missing-msg = "scp-sunxi"; | ||||
82 | }; | ||||
83 | }; | ||||
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 84 | #endif |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 85 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 86 | @fdt-SEQ { |
87 | description = "NAME"; | ||||
88 | type = "flat_dt"; | ||||
89 | compression = "none"; | ||||
90 | }; | ||||
91 | }; | ||||
92 | |||||
93 | configurations { | ||||
Samuel Holland | ed4bc13 | 2021-02-08 00:03:16 -0600 | [diff] [blame] | 94 | default = "@config-DEFAULT-SEQ"; |
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 95 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 96 | @config-SEQ { |
97 | description = "NAME"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 98 | firmware = "atf"; |
Samuel Holland | 53c0ad5 | 2023-10-31 00:17:39 -0500 | [diff] [blame^] | 99 | #if CONFIG_SUNXI_SCP_BASE |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 100 | loadables = "scp", "uboot"; |
Samuel Holland | 53c0ad5 | 2023-10-31 00:17:39 -0500 | [diff] [blame^] | 101 | #else |
102 | loadables = "uboot"; | ||||
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 103 | #endif |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 104 | fdt = "fdt-SEQ"; |
105 | }; | ||||
106 | }; | ||||
107 | }; | ||||
108 | #else | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 109 | u-boot-img { |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 110 | }; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 111 | #endif |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 112 | }; |
113 | }; |