Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 1 | #include <config.h> |
2 | |||||
3 | / { | ||||
Jagan Teki | 301a665 | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 4 | aliases { |
5 | mmc1 = &mmc2; | ||||
6 | }; | ||||
7 | |||||
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 8 | binman: binman { |
9 | multiple-images; | ||||
10 | }; | ||||
11 | }; | ||||
12 | |||||
13 | &binman { | ||||
14 | u-boot-sunxi-with-spl { | ||||
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 15 | filename = "u-boot-sunxi-with-spl.bin"; |
16 | pad-byte = <0xff>; | ||||
Samuel Holland | 85852b2 | 2020-10-21 21:12:10 -0500 | [diff] [blame^] | 17 | |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 18 | blob { |
19 | filename = "spl/sunxi-spl.bin"; | ||||
20 | }; | ||||
Samuel Holland | 85852b2 | 2020-10-21 21:12:10 -0500 | [diff] [blame^] | 21 | |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 22 | #ifdef CONFIG_ARM64 |
23 | fit { | ||||
24 | description = "Configuration to load ATF before U-Boot"; | ||||
25 | #address-cells = <1>; | ||||
26 | fit,fdt-list = "of-list"; | ||||
27 | |||||
28 | images { | ||||
29 | uboot { | ||||
30 | description = "U-Boot (64-bit)"; | ||||
31 | type = "standalone"; | ||||
32 | arch = "arm64"; | ||||
33 | compression = "none"; | ||||
34 | load = <0x4a000000>; | ||||
35 | |||||
36 | u-boot-nodtb { | ||||
37 | }; | ||||
38 | }; | ||||
Samuel Holland | 85852b2 | 2020-10-21 21:12:10 -0500 | [diff] [blame^] | 39 | |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 40 | atf { |
41 | description = "ARM Trusted Firmware"; | ||||
42 | type = "firmware"; | ||||
43 | arch = "arm64"; | ||||
44 | compression = "none"; | ||||
45 | /* TODO: Do this with an overwrite in this board's dtb? */ | ||||
46 | #ifdef CONFIG_MACH_SUN50I_H6 | ||||
47 | load = <0x104000>; | ||||
48 | entry = <0x104000>; | ||||
49 | #else | ||||
50 | load = <0x44000>; | ||||
51 | entry = <0x44000>; | ||||
52 | #endif | ||||
Samuel Holland | 85852b2 | 2020-10-21 21:12:10 -0500 | [diff] [blame^] | 53 | |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 54 | atf-bl31 { |
Simon Glass | 5d90d5e | 2020-09-06 10:39:10 -0600 | [diff] [blame] | 55 | missing-msg = "atf-bl31-sunxi"; |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 56 | }; |
57 | }; | ||||
58 | |||||
59 | @fdt-SEQ { | ||||
60 | description = "NAME"; | ||||
61 | type = "flat_dt"; | ||||
62 | compression = "none"; | ||||
63 | }; | ||||
64 | }; | ||||
65 | |||||
66 | configurations { | ||||
67 | default = "config-1"; | ||||
Samuel Holland | 85852b2 | 2020-10-21 21:12:10 -0500 | [diff] [blame^] | 68 | |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 69 | @config-SEQ { |
70 | description = "NAME"; | ||||
71 | firmware = "uboot"; | ||||
72 | loadables = "atf"; | ||||
73 | fdt = "fdt-SEQ"; | ||||
74 | }; | ||||
75 | }; | ||||
76 | }; | ||||
77 | #else | ||||
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 78 | u-boot-img { |
Simon Glass | e8561af | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 79 | offset = <CONFIG_SPL_PAD_TO>; |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 80 | }; |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 81 | #endif |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 82 | }; |
83 | }; |