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>; |
| 17 | blob { |
| 18 | filename = "spl/sunxi-spl.bin"; |
| 19 | }; |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame^] | 20 | #ifdef CONFIG_ARM64 |
| 21 | fit { |
| 22 | description = "Configuration to load ATF before U-Boot"; |
| 23 | #address-cells = <1>; |
| 24 | fit,fdt-list = "of-list"; |
| 25 | |
| 26 | images { |
| 27 | uboot { |
| 28 | description = "U-Boot (64-bit)"; |
| 29 | type = "standalone"; |
| 30 | arch = "arm64"; |
| 31 | compression = "none"; |
| 32 | load = <0x4a000000>; |
| 33 | |
| 34 | u-boot-nodtb { |
| 35 | }; |
| 36 | }; |
| 37 | atf { |
| 38 | description = "ARM Trusted Firmware"; |
| 39 | type = "firmware"; |
| 40 | arch = "arm64"; |
| 41 | compression = "none"; |
| 42 | /* TODO: Do this with an overwrite in this board's dtb? */ |
| 43 | #ifdef CONFIG_MACH_SUN50I_H6 |
| 44 | load = <0x104000>; |
| 45 | entry = <0x104000>; |
| 46 | #else |
| 47 | load = <0x44000>; |
| 48 | entry = <0x44000>; |
| 49 | #endif |
| 50 | atf-bl31 { |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | @fdt-SEQ { |
| 55 | description = "NAME"; |
| 56 | type = "flat_dt"; |
| 57 | compression = "none"; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | configurations { |
| 62 | default = "config-1"; |
| 63 | @config-SEQ { |
| 64 | description = "NAME"; |
| 65 | firmware = "uboot"; |
| 66 | loadables = "atf"; |
| 67 | fdt = "fdt-SEQ"; |
| 68 | }; |
| 69 | }; |
| 70 | }; |
| 71 | #else |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 72 | u-boot-img { |
Simon Glass | e8561af | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 73 | offset = <CONFIG_SPL_PAD_TO>; |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 74 | }; |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame^] | 75 | #endif |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 76 | }; |
| 77 | }; |