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