Andrew Walbran | dc8ad20 | 2019-03-07 15:49:28 +0000 | [diff] [blame] | 1 | # Copyright 2018 The Hafnium Authors. |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 2 | # |
Andrew Walbran | 23417d8 | 2020-06-17 14:44:22 +0100 | [diff] [blame] | 3 | # Use of this source code is governed by a BSD-style |
| 4 | # license that can be found in the LICENSE file or at |
| 5 | # https://opensource.org/licenses/BSD-3-Clause. |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 6 | |
| 7 | import("//build/toolchain/embedded.gni") |
| 8 | import("//build/toolchain/host.gni") |
| 9 | |
Olivier Deprez | 7e64593 | 2023-11-06 09:49:05 +0100 | [diff] [blame] | 10 | group("aem_v8a_fvp_vhe") { |
| 11 | deps = [ "//src:hafnium(:aem_v8a_fvp_vhe_clang)" ] |
| 12 | } |
| 13 | |
Karl Meakin | 7a6b135 | 2025-03-04 17:54:37 +0000 | [diff] [blame] | 14 | group("aem_v8a_fvp_vhe_ffa_v1_1") { |
| 15 | deps = [ "//src:hafnium(:aem_v8a_fvp_vhe_ffa_v1_1_clang)" ] |
| 16 | } |
| 17 | |
Olivier Deprez | 7e64593 | 2023-11-06 09:49:05 +0100 | [diff] [blame] | 18 | group("qemu_aarch64_vhe") { |
| 19 | deps = [ "//src:hafnium(:qemu_aarch64_vhe_clang)" ] |
| 20 | } |
| 21 | |
| 22 | group("rpi4") { |
| 23 | deps = [ "//src:hafnium(:rpi4_clang)" ] |
| 24 | } |
| 25 | |
| 26 | group("secure_aem_v8a_fvp_vhe") { |
| 27 | deps = [ "//src:hafnium(:secure_aem_v8a_fvp_vhe_clang)" ] |
| 28 | } |
| 29 | |
| 30 | group("secure_qemu_aarch64") { |
| 31 | deps = [ "//src:hafnium(:secure_qemu_aarch64_clang)" ] |
| 32 | } |
| 33 | |
| 34 | group("secure_tc") { |
| 35 | deps = [ "//src:hafnium(:secure_tc_clang)" ] |
| 36 | } |
| 37 | |
Jerry Wang | 11129b9 | 2024-10-22 09:47:08 +0100 | [diff] [blame] | 38 | group("secure_rd_v3") { |
| 39 | deps = [ "//src:hafnium(:secure_rd_v3_clang)" ] |
Olivier Deprez | 7e64593 | 2023-11-06 09:49:05 +0100 | [diff] [blame] | 40 | } |
| 41 | |
Jerry Wang | 11129b9 | 2024-10-22 09:47:08 +0100 | [diff] [blame] | 42 | group("secure_rd_v3_cfg1") { |
| 43 | deps = [ "//src:hafnium(:secure_rd_v3_cfg1_clang)" ] |
Jerry Wang | 4937157 | 2023-11-30 09:42:36 +0000 | [diff] [blame] | 44 | } |
| 45 | |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 46 | group("root") { |
| 47 | deps = [ |
Olivier Deprez | 7e64593 | 2023-11-06 09:49:05 +0100 | [diff] [blame] | 48 | ":aem_v8a_fvp_vhe", |
Karl Meakin | 7a6b135 | 2025-03-04 17:54:37 +0000 | [diff] [blame] | 49 | ":aem_v8a_fvp_vhe_ffa_v1_1", |
Olivier Deprez | 7e64593 | 2023-11-06 09:49:05 +0100 | [diff] [blame] | 50 | ":qemu_aarch64_vhe", |
| 51 | ":rpi4", |
| 52 | ":secure_aem_v8a_fvp_vhe", |
| 53 | ":secure_qemu_aarch64", |
Jerry Wang | 11129b9 | 2024-10-22 09:47:08 +0100 | [diff] [blame] | 54 | ":secure_rd_v3", |
| 55 | ":secure_rd_v3_cfg1", |
Olivier Deprez | 7e64593 | 2023-11-06 09:49:05 +0100 | [diff] [blame] | 56 | ":secure_tc", |
Raghu Krishnamurthy | e0ede85 | 2021-12-04 14:29:57 -0800 | [diff] [blame] | 57 | "//src/arch/aarch64/qemuloader:bl(:qemu_aarch64_vhe_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 58 | ] |
| 59 | } |
| 60 | |
| 61 | group("test_root") { |
| 62 | testonly = true |
| 63 | |
| 64 | deps = [ |
| 65 | "//src:unit_tests(:host_fake_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 66 | "//test/arch(:aem_v8a_fvp_vhe_clang)", |
Karl Meakin | 7a6b135 | 2025-03-04 17:54:37 +0000 | [diff] [blame] | 67 | "//test/arch(:aem_v8a_fvp_vhe_ffa_v1_1_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 68 | "//test/arch(:qemu_aarch64_vhe_clang)", |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 69 | "//test/arch(:rpi4_clang)", |
Olivier Deprez | acd0a4e | 2022-02-23 09:31:21 +0100 | [diff] [blame] | 70 | "//test/vmapi:partitions(:secure_aem_v8a_fvp_vhe_vm_clang)", |
Karl Meakin | 7a6b135 | 2025-03-04 17:54:37 +0000 | [diff] [blame] | 71 | "//test/vmapi(:aem_v8a_fvp_vhe_ffa_v1_1_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 72 | "//test/vmapi(:aem_v8a_fvp_vhe_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 73 | "//test/vmapi(:qemu_aarch64_vhe_vm_clang)", |
Andrew Walbran | 3eeaa40 | 2019-11-01 14:48:29 +0000 | [diff] [blame] | 74 | "//test/vmapi(:rpi4_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 75 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:aem_v8a_fvp_vhe_vm_clang)", |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 76 | "//test/vmapi/arch/aarch64/gicv3:gicv3_test(:qemu_aarch64_vhe_vm_clang)", |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 77 | ] |
| 78 | } |
| 79 | |
| 80 | # Describe each of the platforms used in this project. |
| 81 | |
| 82 | host_toolchain("host_fake") { |
| 83 | use_platform = true |
Andrew Walbran | bc737c4 | 2018-12-07 14:24:16 +0000 | [diff] [blame] | 84 | heap_pages = 60 |
Andrew Scull | 2d527c2 | 2018-11-27 14:21:08 +0000 | [diff] [blame] | 85 | max_cpus = 4 |
| 86 | max_vms = 6 |
| 87 | } |
| 88 | |
Nishant Sharma | 74e645a | 2023-08-10 18:37:51 +0100 | [diff] [blame] | 89 | # RD (Reference Design) is a collection of resources to provide a representative |
| 90 | # view of typical compute subsystems that can be designed and implemented using |
Jerry Wang | 11129b9 | 2024-10-22 09:47:08 +0100 | [diff] [blame] | 91 | # specific generations of Arm IP. RD-V3 is the first RD platform with Realm |
Nishant Sharma | 74e645a | 2023-08-10 18:37:51 +0100 | [diff] [blame] | 92 | # Management Extension (RME) support. |
| 93 | # For more information please refer: |
Jerry Wang | 11129b9 | 2024-10-22 09:47:08 +0100 | [diff] [blame] | 94 | # https://neoverse-reference-design.docs.arm.com/en/latest/platforms/rdv3.html |
| 95 | aarch64_toolchains("secure_rd_v3") { |
Nishant Sharma | 74e645a | 2023-08-10 18:37:51 +0100 | [diff] [blame] | 96 | cpu = "cortex-a57" |
| 97 | origin_address = "0xF9000000" |
| 98 | boot_flow = "//src/boot_flow:spmc" |
| 99 | console = "//src/arch/aarch64/pl011" |
| 100 | iommu = "//src/iommu:absent" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 101 | memory_protect = "//src/arch/aarch64/memory_protect:memory_protect" |
Nishant Sharma | 74e645a | 2023-08-10 18:37:51 +0100 | [diff] [blame] | 102 | gic_version = 4 |
| 103 | gicd_base_address = "0x30000000" |
| 104 | gicr_base_address = "0x301C0000" |
| 105 | gicr_frames = 16 |
| 106 | heap_pages = 180 |
| 107 | max_cpus = 16 |
| 108 | max_vms = 16 |
| 109 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 110 | ffa_role = "//src/ffa:spmc" |
Nishant Sharma | 74e645a | 2023-08-10 18:37:51 +0100 | [diff] [blame] | 111 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
| 112 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
| 113 | secure_world = "1" |
| 114 | pl011_base_address = "0x2A410000" |
| 115 | enable_mte = "1" |
| 116 | plat_log_level = "LOG_LEVEL_INFO" |
| 117 | plat_num_virtual_interrupts_ids = 1024 |
| 118 | } |
| 119 | } |
| 120 | |
Jerry Wang | 11129b9 | 2024-10-22 09:47:08 +0100 | [diff] [blame] | 121 | aarch64_toolchains("secure_rd_v3_cfg1") { |
Jerry Wang | 4937157 | 2023-11-30 09:42:36 +0000 | [diff] [blame] | 122 | cpu = "cortex-a57" |
| 123 | origin_address = "0xF9000000" |
| 124 | boot_flow = "//src/boot_flow:spmc" |
| 125 | console = "//src/arch/aarch64/pl011" |
| 126 | iommu = "//src/iommu:absent" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 127 | memory_protect = "//src/arch/aarch64/memory_protect:memory_protect" |
Jerry Wang | 4937157 | 2023-11-30 09:42:36 +0000 | [diff] [blame] | 128 | gic_version = 4 |
| 129 | gicd_base_address = "0x30000000" |
| 130 | gicr_base_address = "0x30100000" |
| 131 | gicr_frames = 8 |
| 132 | heap_pages = 180 |
| 133 | max_cpus = 8 |
| 134 | max_vms = 8 |
| 135 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 136 | ffa_role = "//src/ffa:spmc" |
Jerry Wang | 4937157 | 2023-11-30 09:42:36 +0000 | [diff] [blame] | 137 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
| 138 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
| 139 | secure_world = "1" |
| 140 | pl011_base_address = "0x2A410000" |
| 141 | enable_mte = "1" |
| 142 | plat_log_level = "LOG_LEVEL_INFO" |
| 143 | plat_num_virtual_interrupts_ids = 1024 |
| 144 | } |
| 145 | } |
| 146 | |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 147 | aarch64_toolchains("secure_aem_v8a_fvp_vhe") { |
| 148 | cpu = "cortex-a57" |
| 149 | origin_address = "0x06000000" |
| 150 | boot_flow = "//src/boot_flow:spmc" |
| 151 | console = "//src/arch/aarch64/pl011" |
| 152 | iommu = "//src/arch/aarch64/arm_smmuv3" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 153 | memory_protect = "//src/arch/aarch64/memory_protect:memory_protect" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 154 | gic_version = 3 |
Madhukar Pappireddy | 48050f5 | 2023-08-29 13:52:33 -0500 | [diff] [blame] | 155 | gic_enable_espi = 1 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 156 | gicd_base_address = "0x2f000000" |
| 157 | gicr_base_address = "0x2f100000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 158 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame] | 159 | heap_pages = 180 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 160 | max_cpus = 8 |
| 161 | max_vms = 16 |
Raghu Krishnamurthy | 510aa3e | 2021-11-28 07:20:45 -0800 | [diff] [blame] | 162 | branch_protection = "standard" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 163 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 164 | ffa_role = "//src/ffa:spmc" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 165 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
| 166 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 167 | secure_world = "1" |
| 168 | pl011_base_address = "0x1c090000" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 169 | smmu_base_address = "0x2b400000" |
| 170 | smmu_memory_size = "0x100000" |
Maksims Svecovs | c3cda25 | 2021-09-30 12:20:11 +0100 | [diff] [blame] | 171 | enable_mte = "1" |
Varun Wadekar | 4cba5e4 | 2022-09-29 17:39:14 +0100 | [diff] [blame] | 172 | plat_log_level = "LOG_LEVEL_INFO" |
Madhukar Pappireddy | 48050f5 | 2023-08-29 13:52:33 -0500 | [diff] [blame] | 173 | plat_num_virtual_interrupts_ids = 5120 |
Madhukar Pappireddy | 47b5848 | 2023-10-11 16:02:05 -0500 | [diff] [blame] | 174 | plat_partition_max_dma_devices = 1 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 175 | } |
| 176 | } |
| 177 | |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 178 | aarch64_toolchains("aem_v8a_fvp_vhe") { |
| 179 | cpu = "cortex-a57" |
| 180 | origin_address = "0x80000000" |
| 181 | boot_flow = "//src/boot_flow:linux" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 182 | memory_protect = "//src/memory_protect:absent" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 183 | console = "//src/arch/aarch64/pl011" |
| 184 | iommu = "//src/arch/aarch64/arm_smmuv3" |
| 185 | gic_version = 3 |
| 186 | gicd_base_address = "0x2f000000" |
| 187 | gicr_base_address = "0x2f100000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 188 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame] | 189 | heap_pages = 180 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 190 | max_cpus = 8 |
| 191 | max_vms = 16 |
Raghu Krishnamurthy | 510aa3e | 2021-11-28 07:20:45 -0800 | [diff] [blame] | 192 | branch_protection = "standard" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 193 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 194 | ffa_role = "//src/ffa:hypervisor" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 195 | pl011_base_address = "0x1c090000" |
| 196 | smmu_base_address = "0x2b400000" |
| 197 | smmu_memory_size = "0x100000" |
Varun Wadekar | 4cba5e4 | 2022-09-29 17:39:14 +0100 | [diff] [blame] | 198 | plat_log_level = "LOG_LEVEL_INFO" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 199 | } |
| 200 | } |
| 201 | |
Karl Meakin | 7a6b135 | 2025-03-04 17:54:37 +0000 | [diff] [blame] | 202 | aarch64_toolchains("aem_v8a_fvp_vhe_ffa_v1_1") { |
| 203 | cpu = "cortex-a57" |
| 204 | origin_address = "0x80000000" |
| 205 | boot_flow = "//src/boot_flow:linux" |
| 206 | memory_protect = "//src/memory_protect:absent" |
| 207 | console = "//src/arch/aarch64/pl011" |
| 208 | iommu = "//src/arch/aarch64/arm_smmuv3" |
| 209 | gic_version = 3 |
| 210 | gicd_base_address = "0x2f000000" |
| 211 | gicr_base_address = "0x2f100000" |
| 212 | gicr_frames = 8 |
| 213 | heap_pages = 180 |
| 214 | max_cpus = 8 |
| 215 | max_vms = 16 |
| 216 | branch_protection = "standard" |
| 217 | toolchain_args = { |
| 218 | ffa_version = "0x10001" |
| 219 | ffa_role = "//src/ffa:hypervisor" |
| 220 | pl011_base_address = "0x1c090000" |
| 221 | smmu_base_address = "0x2b400000" |
| 222 | smmu_memory_size = "0x100000" |
| 223 | plat_log_level = "LOG_LEVEL_INFO" |
| 224 | } |
| 225 | } |
| 226 | |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 227 | aarch64_toolchains("qemu_aarch64_vhe") { |
| 228 | cpu = "cortex-a57" |
| 229 | origin_address = "0x40001000" |
| 230 | boot_flow = "//src/boot_flow:linux" |
| 231 | console = "//src/arch/aarch64/pl011" |
| 232 | iommu = "//src/iommu:absent" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 233 | memory_protect = "//src/memory_protect:absent" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 234 | gic_version = 3 |
| 235 | gicd_base_address = "0x08000000" |
| 236 | gicr_base_address = "0x080A0000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 237 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame] | 238 | heap_pages = 180 |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 239 | max_cpus = 8 |
| 240 | max_vms = 16 |
| 241 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 242 | ffa_role = "//src/ffa:hypervisor" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 243 | pl011_base_address = "0x09000000" |
Varun Wadekar | 4cba5e4 | 2022-09-29 17:39:14 +0100 | [diff] [blame] | 244 | plat_log_level = "LOG_LEVEL_INFO" |
Raghu Krishnamurthy | 8e68099 | 2021-06-15 20:19:47 -0700 | [diff] [blame] | 245 | } |
| 246 | } |
| 247 | |
Olivier Deprez | f17c61e | 2023-01-30 13:50:25 +0100 | [diff] [blame] | 248 | aarch64_toolchains("secure_qemu_aarch64") { |
| 249 | cpu = "cortex-a57" |
| 250 | origin_address = "0xe100000" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 251 | memory_protect = "//src/memory_protect:absent" |
Olivier Deprez | f17c61e | 2023-01-30 13:50:25 +0100 | [diff] [blame] | 252 | boot_flow = "//src/boot_flow:spmc" |
| 253 | console = "//src/arch/aarch64/pl011" |
| 254 | iommu = "//src/iommu:absent" |
| 255 | gic_version = 3 |
| 256 | gicd_base_address = "0x08000000" |
| 257 | gicr_base_address = "0x080A0000" |
| 258 | gicr_frames = 8 |
| 259 | heap_pages = 180 |
| 260 | max_cpus = 8 |
| 261 | max_vms = 16 |
| 262 | branch_protection = "standard" |
| 263 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 264 | ffa_role = "//src/ffa:spmc" |
Olivier Deprez | f17c61e | 2023-01-30 13:50:25 +0100 | [diff] [blame] | 265 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
| 266 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
| 267 | secure_world = "1" |
| 268 | pl011_base_address = "0x09000000" |
| 269 | hftest_ctrl = "//test/hftest:ctrl_uart" |
Olivier Deprez | f17c61e | 2023-01-30 13:50:25 +0100 | [diff] [blame] | 270 | enable_mte = "1" |
| 271 | plat_log_level = "LOG_LEVEL_INFO" |
Madhukar Pappireddy | ffbe2e2 | 2023-02-02 17:45:30 -0600 | [diff] [blame] | 272 | plat_num_virtual_interrupts_ids = 1024 |
Olivier Deprez | f17c61e | 2023-01-30 13:50:25 +0100 | [diff] [blame] | 273 | } |
| 274 | } |
| 275 | |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 276 | aarch64_toolchains("rpi4") { |
| 277 | cpu = "cortex-a72" |
| 278 | origin_address = "0x80000" |
| 279 | boot_flow = "//src/boot_flow:linux" |
Olivier Deprez | a701547 | 2023-10-16 20:17:50 +0200 | [diff] [blame] | 280 | console = "//project/reference/rpi4:mini_uart" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 281 | memory_protect = "//src/memory_protect:absent" |
Andrew Scull | e2a525d | 2019-12-02 12:56:06 +0000 | [diff] [blame] | 282 | iommu = "//src/iommu:absent" |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 283 | gic_version = 2 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame] | 284 | heap_pages = 180 |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 285 | max_cpus = 4 |
| 286 | max_vms = 16 |
| 287 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 288 | ffa_role = "//src/ffa:hypervisor" |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 289 | gpio_base_address = "0xfe200000" |
| 290 | aux_base_address = "0xfe215000" |
| 291 | core_freq_mhz = 500 |
David Brazdil | b38816f | 2020-01-31 16:31:10 +0000 | [diff] [blame] | 292 | hftest_ctrl = "//test/hftest:ctrl_uart" |
Varun Wadekar | 4cba5e4 | 2022-09-29 17:39:14 +0100 | [diff] [blame] | 293 | plat_log_level = "LOG_LEVEL_INFO" |
David Brazdil | 3d7b88b | 2019-07-22 17:19:35 +0100 | [diff] [blame] | 294 | } |
| 295 | } |
David Brazdil | c702a03 | 2020-01-31 15:44:11 +0000 | [diff] [blame] | 296 | |
Olivier Deprez | b5ebdd7 | 2023-11-08 12:48:20 +0100 | [diff] [blame] | 297 | # The Total Compute platform provides an envelope for Arm's latest client IPs. |
| 298 | # Release notes and user manual for the open source software stack targeting |
| 299 | # the Total Compute Fixed Virtual Platform (FVP) are found here: |
| 300 | # https://totalcompute.docs.arm.com/en/latest/ |
Usama Arif | f0996a5 | 2021-08-09 14:28:30 +0100 | [diff] [blame] | 301 | aarch64_toolchains("secure_tc") { |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 302 | cpu = "cortex-a57" |
| 303 | origin_address = "0xfd000000" |
Olivier Deprez | 59e35f7 | 2020-11-10 17:15:18 +0100 | [diff] [blame] | 304 | boot_flow = "//src/boot_flow:spmc" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 305 | console = "//src/arch/aarch64/pl011" |
| 306 | iommu = "//src/iommu:absent" |
J-Alves | 57f5a66 | 2023-11-08 12:10:49 +0000 | [diff] [blame] | 307 | memory_protect = "//src/memory_protect:absent" |
Madhukar Pappireddy | 89ee8cc | 2021-10-29 10:03:18 -0500 | [diff] [blame] | 308 | gic_version = 4 |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 309 | gicd_base_address = "0x30000000" |
Usama Arif | 2c636ff | 2021-04-01 11:09:25 +0100 | [diff] [blame] | 310 | gicr_base_address = "0x30080000" |
Varun Wadekar | fa4b3ac | 2022-02-14 17:19:18 +0000 | [diff] [blame] | 311 | gicr_frames = 8 |
Raghu Krishnamurthy | f895639 | 2022-09-20 09:51:05 -0700 | [diff] [blame] | 312 | heap_pages = 180 |
Arunachalam Ganapathy | 51e8157 | 2021-01-20 14:57:41 +0000 | [diff] [blame] | 313 | max_cpus = 8 |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 314 | max_vms = 16 |
Davidson K | 9e0329f | 2024-06-25 12:21:42 +0530 | [diff] [blame] | 315 | branch_protection = "standard" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 316 | toolchain_args = { |
Karl Meakin | 51e484e | 2024-11-28 13:38:16 +0000 | [diff] [blame] | 317 | ffa_role = "//src/ffa:spmc" |
Olivier Deprez | cf03990 | 2021-01-25 15:32:39 +0100 | [diff] [blame] | 318 | plat_psci = "//src/arch/aarch64/plat/psci:spmc" |
Olivier Deprez | cc0eb84 | 2021-04-07 14:03:59 +0200 | [diff] [blame] | 319 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:gicv3" |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 320 | secure_world = "1" |
annsai01 | c194b3a | 2023-02-21 14:09:29 +0000 | [diff] [blame] | 321 | pl011_base_address = "0x2A410000" |
Maksims Svecovs | c3cda25 | 2021-09-30 12:20:11 +0100 | [diff] [blame] | 322 | enable_mte = "1" |
Varun Wadekar | 4cba5e4 | 2022-09-29 17:39:14 +0100 | [diff] [blame] | 323 | plat_log_level = "LOG_LEVEL_INFO" |
Madhukar Pappireddy | ffbe2e2 | 2023-02-02 17:45:30 -0600 | [diff] [blame] | 324 | plat_num_virtual_interrupts_ids = 1024 |
Arunachalam Ganapathy | f20727f | 2020-04-28 20:23:13 +0100 | [diff] [blame] | 325 | } |
| 326 | } |