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