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 { |
15 | mmc1 = &mmc2; | ||||
16 | }; | ||||
17 | |||||
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 18 | binman: binman { |
19 | multiple-images; | ||||
20 | }; | ||||
21 | }; | ||||
22 | |||||
23 | &binman { | ||||
24 | u-boot-sunxi-with-spl { | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 25 | filename = "u-boot-sunxi-with-spl.bin"; |
26 | pad-byte = <0xff>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 27 | |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 28 | blob { |
29 | filename = "spl/sunxi-spl.bin"; | ||||
30 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 31 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 32 | #ifdef CONFIG_ARM64 |
33 | fit { | ||||
34 | description = "Configuration to load ATF before U-Boot"; | ||||
35 | #address-cells = <1>; | ||||
36 | fit,fdt-list = "of-list"; | ||||
37 | |||||
38 | images { | ||||
39 | uboot { | ||||
40 | description = "U-Boot (64-bit)"; | ||||
41 | type = "standalone"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 42 | os = "u-boot"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 43 | arch = "arm64"; |
44 | compression = "none"; | ||||
Samuel Holland | 925cd8d | 2021-02-08 00:03:17 -0600 | [diff] [blame] | 45 | load = <CONFIG_SYS_TEXT_BASE>; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 46 | |
47 | u-boot-nodtb { | ||||
48 | }; | ||||
49 | }; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 50 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 51 | atf { |
52 | description = "ARM Trusted Firmware"; | ||||
53 | type = "firmware"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 54 | os = "arm-trusted-firmware"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 55 | arch = "arm64"; |
56 | compression = "none"; | ||||
Samuel Holland | 827c420 | 2020-10-21 21:12:12 -0500 | [diff] [blame] | 57 | load = <BL31_ADDR>; |
58 | entry = <BL31_ADDR>; | ||||
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 59 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 60 | atf-bl31 { |
Samuel Holland | 6b7c7ed | 2020-10-21 21:12:11 -0500 | [diff] [blame] | 61 | filename = "bl31.bin"; |
Simon Glass | 68de067 | 2020-09-06 10:39:10 -0600 | [diff] [blame] | 62 | missing-msg = "atf-bl31-sunxi"; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 63 | }; |
64 | }; | ||||
65 | |||||
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 66 | #ifndef CONFIG_MACH_SUN50I_H616 |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 67 | scp { |
68 | description = "SCP firmware"; | ||||
69 | type = "firmware"; | ||||
70 | arch = "or1k"; | ||||
71 | compression = "none"; | ||||
72 | load = <SCP_ADDR>; | ||||
73 | |||||
74 | scp { | ||||
75 | filename = "scp.bin"; | ||||
76 | missing-msg = "scp-sunxi"; | ||||
77 | }; | ||||
78 | }; | ||||
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 79 | #endif |
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 80 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 81 | @fdt-SEQ { |
82 | description = "NAME"; | ||||
83 | type = "flat_dt"; | ||||
84 | compression = "none"; | ||||
85 | }; | ||||
86 | }; | ||||
87 | |||||
88 | configurations { | ||||
Samuel Holland | ed4bc13 | 2021-02-08 00:03:16 -0600 | [diff] [blame] | 89 | default = "@config-DEFAULT-SEQ"; |
Samuel Holland | eafbdbb | 2020-10-21 21:12:10 -0500 | [diff] [blame] | 90 | |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 91 | @config-SEQ { |
92 | description = "NAME"; | ||||
Samuel Holland | 68158d5 | 2020-10-21 21:12:14 -0500 | [diff] [blame] | 93 | firmware = "atf"; |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 94 | #ifdef CONFIG_MACH_SUN50I_H616 |
95 | loadables = "uboot"; | ||||
96 | #else | ||||
Samuel Holland | e72a6be | 2020-10-21 21:12:16 -0500 | [diff] [blame] | 97 | loadables = "scp", "uboot"; |
Jernej Skrabec | 8ec293e | 2021-01-11 21:11:46 +0100 | [diff] [blame] | 98 | #endif |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 99 | fdt = "fdt-SEQ"; |
100 | }; | ||||
101 | }; | ||||
102 | }; | ||||
103 | #else | ||||
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 104 | u-boot-img { |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 105 | offset = <CONFIG_SPL_PAD_TO>; |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 106 | }; |
Simon Glass | cfa3db6 | 2020-09-01 05:14:01 -0600 | [diff] [blame] | 107 | #endif |
Simon Glass | 61b994a | 2016-11-25 20:16:01 -0700 | [diff] [blame] | 108 | }; |
109 | }; |