Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 1 | #include <config.h> |
2 | |||||
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 3 | #ifdef CONFIG_MACH_SUN50I_H6 |
4 | #define BL31_ADDR 0x104000 | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 5 | #define SCP_ADDR 0x114000 |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 6 | #elif defined(CONFIG_MACH_SUN50I_H616) |
Andre Przywara | c629ba8 | 2021-03-25 16:20:13 +0000 | [diff] [blame] | 7 | #define BL31_ADDR 0x40000000 |
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 8 | #else |
9 | #define BL31_ADDR 0x44000 | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 10 | #define SCP_ADDR 0x50000 |
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 11 | #endif |
12 | |||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 13 | / { |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 14 | aliases { |
Andre Przywara | 6785434 | 2021-04-16 11:52:27 +0100 | [diff] [blame] | 15 | mmc0 = &mmc0; |
Jagan Teki | 708b5da | 2019-01-21 16:01:15 +0530 | [diff] [blame] | 16 | mmc1 = &mmc2; |
17 | }; | ||||
18 | |||||
Simon Glass | cfa3db6 | 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 | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 26 | filename = "u-boot-sunxi-with-spl.bin"; |
27 | pad-byte = <0xff>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 28 | |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 29 | blob { |
30 | filename = "spl/sunxi-spl.bin"; | ||||
31 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 32 | |
Simon Glass | cfa3db6 | 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 | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 43 | os = "u-boot"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 44 | arch = "arm64"; |
45 | compression = "none"; | ||||
Samuel Holland | 925cd8d | 2021-02-08 00:03:17 -0600 | [diff] [blame] | 46 | load = <CONFIG_SYS_TEXT_BASE>; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 47 | |
48 | u-boot-nodtb { | ||||
49 | }; | ||||
50 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 51 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 52 | atf { |
53 | description = "ARM Trusted Firmware"; | ||||
54 | type = "firmware"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 55 | os = "arm-trusted-firmware"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 56 | arch = "arm64"; |
57 | compression = "none"; | ||||
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 58 | load = <BL31_ADDR>; |
59 | entry = <BL31_ADDR>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 60 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 61 | atf-bl31 { |
Samuel Holland | 6b7c7ed | 2020-10-21 21:12:11 -0500 | [diff] [blame] | 62 | filename = "bl31.bin"; |
Simon Glass | 68de067 | 2020-09-06 10:39:10 -0600 | [diff] [blame] | 63 | missing-msg = "atf-bl31-sunxi"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 64 | }; |
65 | }; | ||||
66 | |||||
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 67 | #ifndef CONFIG_MACH_SUN50I_H616 |
Samuel Holland | e72a6be | 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 | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 80 | #endif |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 81 | |
Simon Glass | cfa3db6 | 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 | ed4bc13 | 2021-02-08 00:03:16 -0600 | [diff] [blame] | 90 | default = "@config-DEFAULT-SEQ"; |
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 91 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 92 | @config-SEQ { |
93 | description = "NAME"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 94 | firmware = "atf"; |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 95 | #ifdef CONFIG_MACH_SUN50I_H616 |
96 | loadables = "uboot"; | ||||
97 | #else | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 98 | loadables = "scp", "uboot"; |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 99 | #endif |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 100 | fdt = "fdt-SEQ"; |
101 | }; | ||||
102 | }; | ||||
103 | }; | ||||
104 | #else | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 105 | u-boot-img { |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 106 | offset = <CONFIG_SPL_PAD_TO>; |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 107 | }; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 108 | #endif |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 109 | }; |
110 | }; |