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