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