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 { |
Simon Glass | 5d90d5e | 2020-09-06 10:39:10 -0600 | [diff] [blame] | 51 | missing-msg = "atf-bl31-sunxi"; |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 52 | }; |
| 53 | }; |
| 54 | |
| 55 | @fdt-SEQ { |
| 56 | description = "NAME"; |
| 57 | type = "flat_dt"; |
| 58 | compression = "none"; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | configurations { |
| 63 | default = "config-1"; |
| 64 | @config-SEQ { |
| 65 | description = "NAME"; |
| 66 | firmware = "uboot"; |
| 67 | loadables = "atf"; |
| 68 | fdt = "fdt-SEQ"; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | #else |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 73 | u-boot-img { |
Simon Glass | e8561af | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 74 | offset = <CONFIG_SPL_PAD_TO>; |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 75 | }; |
Simon Glass | 896b421 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 76 | #endif |
Simon Glass | de44186 | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 77 | }; |
| 78 | }; |