Andrew Walbran | 692b325 | 2019-03-07 15:51:31 +0000 | [diff] [blame] | 1 | # Copyright 2018 The Hafnium Authors. |
Andrew Scull | 1883487 | 2018-10-12 11:48:09 +0100 | [diff] [blame] | 2 | # |
Andrew Walbran | e959ec1 | 2020-06-17 15:01:09 +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 | 1883487 | 2018-10-12 11:48:09 +0100 | [diff] [blame] | 6 | |
Andrew Scull | 23e93a8 | 2018-10-26 14:56:04 +0100 | [diff] [blame] | 7 | # Configuration of the build for the platform. |
Andrew Scull | 114096b | 2018-07-31 14:42:16 +0100 | [diff] [blame] | 8 | declare_args() { |
Andrew Scull | b401ba3 | 2018-11-09 10:30:54 +0000 | [diff] [blame] | 9 | # The name of the platform. |
| 10 | plat_name = "" |
| 11 | |
| 12 | # The architecture of the platform. |
| 13 | plat_arch = "" |
David Brazdil | 0dbb41f | 2019-09-09 18:03:35 +0100 | [diff] [blame] | 14 | |
| 15 | # Boot flow driver to be used by the platform, specified as build target. |
| 16 | plat_boot_flow = "" |
| 17 | |
| 18 | # Console driver to be used for the platform, specified as build target. |
Andrew Walbran | 4869936 | 2019-05-20 14:38:00 +0100 | [diff] [blame] | 19 | plat_console = "" |
Andrew Scull | b401ba3 | 2018-11-09 10:30:54 +0000 | [diff] [blame] | 20 | |
Andrew Scull | 3c25745 | 2019-11-26 13:32:50 +0000 | [diff] [blame] | 21 | # IOMMU driver to be used for the platform, specified as build target. |
| 22 | plat_iommu = "" |
| 23 | |
Daniel Boulby | 7a2e9ba | 2024-09-27 15:24:51 +0100 | [diff] [blame] | 24 | # Interrupts driver to be used for the platform, specified as build target. |
| 25 | plat_interrupts = "//src/arch/aarch64/plat/interrupts:absent" |
| 26 | |
J-Alves | dad6003 | 2023-11-08 13:16:41 +0000 | [diff] [blame] | 27 | # Abstract the calls to platform memory protection functions. |
| 28 | # E.g. FVP leverages RME if present to change PAS (S or NS) of given address. |
| 29 | plat_memory_protect = "" |
| 30 | |
Andrew Walbran | de33f08 | 2018-12-07 14:10:11 +0000 | [diff] [blame] | 31 | # The number of pages to allocate for the hypervisor heap. |
| 32 | plat_heap_pages = 0 |
| 33 | |
Varun Wadekar | a511edc | 2022-09-27 17:09:06 +0100 | [diff] [blame] | 34 | # The level of debug logs to include. This should match one of the levels |
| 35 | # defined in dlog.h. |
| 36 | plat_log_level = "LOG_LEVEL_INFO" |
| 37 | |
Andrew Scull | 23e93a8 | 2018-10-26 14:56:04 +0100 | [diff] [blame] | 38 | # The maximum number of CPUs available on the platform. |
Andrew Walbran | 4869936 | 2019-05-20 14:38:00 +0100 | [diff] [blame] | 39 | plat_max_cpus = 1 |
Andrew Scull | 114096b | 2018-07-31 14:42:16 +0100 | [diff] [blame] | 40 | |
David Brazdil | a2f4521 | 2020-01-20 13:19:31 +0000 | [diff] [blame] | 41 | # The maximum allowed size of Hafnium's image in memory. Zero if don't care. |
| 42 | plat_max_image_size = 0 |
| 43 | |
Andrew Scull | 23e93a8 | 2018-10-26 14:56:04 +0100 | [diff] [blame] | 44 | # The maximum number of VMs required for the platform. |
Andrew Walbran | 7f904bf | 2019-07-12 16:38:38 +0100 | [diff] [blame] | 45 | plat_max_vms = 0 |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 46 | |
Kathleen Capella | 422b10b | 2023-06-30 18:28:27 -0400 | [diff] [blame] | 47 | # The maximum number of UUIDs allowed per partition, in the partition manifest |
| 48 | plat_partition_max_uuids = 4 |
| 49 | |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 50 | # The maximum number of memory regions allowed per partition, in the partition manifest |
| 51 | plat_partition_max_memory_regions = 8 |
| 52 | |
Madhukar Pappireddy | 8a36447 | 2023-10-11 15:34:07 -0500 | [diff] [blame] | 53 | # The maximum number of device regions allowed per partition, in the partition manifest |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 54 | plat_partition_max_device_regions = 8 |
| 55 | |
Madhukar Pappireddy | 8a36447 | 2023-10-11 15:34:07 -0500 | [diff] [blame] | 56 | # The maximum number of dma devices allowed per partition, in the partition manifest |
| 57 | plat_partition_max_dma_devices = 2 |
| 58 | |
Raghu Krishnamurthy | 641dcd8 | 2022-07-19 23:21:20 -0700 | [diff] [blame] | 59 | # The maximum number of interrupts allowed per device, per partition, in the partition manifest |
| 60 | plat_partition_max_intr_per_device = 4 |
| 61 | |
| 62 | # the maximum number of streams allowed per device, per partition, in the partition manifest |
| 63 | plat_partition_max_streams_per_device = 4 |
Raghu Krishnamurthy | 61a025b | 2022-07-20 08:37:04 -0700 | [diff] [blame] | 64 | |
| 65 | # The number of virtual interrupt IDs which are supported |
| 66 | plat_num_virtual_interrupts_ids = 64 |
Karl Meakin | 59352b3 | 2025-02-25 12:19:45 +0000 | [diff] [blame] | 67 | |
| 68 | # The version of the FF-A specification to implement. Leave empty to use the latest version. |
| 69 | ffa_version = "" |
Andrew Scull | 114096b | 2018-07-31 14:42:16 +0100 | [diff] [blame] | 70 | } |