fix(lib/pcie): import pcie enumeration helpers from rmm-acs
Import PCIe enumeration helpers from rmm-acs[1] at tag v1.0_REL0_12.24.
This patch adds the missing device enumeration logic added as part of
the initial commit.
This change is verified with FVP default PCI topology. The helper
pcie_init() might need some enhancements for other platforms with
different PCI topology.
[1] https://github.com/ARM-software/cca-rmm-acs
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
Change-Id: I46724c458fe0071272fc7bca73d51e27181bb1b4
diff --git a/plat/common/plat_common.c b/plat/common/plat_common.c
index c06ad13..f8524cf 100644
--- a/plat/common/plat_common.c
+++ b/plat/common/plat_common.c
@@ -1,3 +1,4 @@
+
/*
* Copyright (c) 2018-2025, Arm Limited. All rights reserved.
*
@@ -25,6 +26,7 @@
#pragma weak tftf_plat_reset
#pragma weak plat_get_prot_regions
#pragma weak plat_pcie_get_info_table
+#pragma weak plat_pcie_get_bar_config
#pragma weak plat_get_invalid_addr
#pragma weak plat_get_dev_region
@@ -157,6 +159,13 @@
return NULL;
}
+int plat_pcie_get_bar_config(uint64_t *bar64_val, uint64_t *rp_bar64_val,
+ uint32_t *bar32np_val, uint32_t *bar32p_val,
+ uint32_t *rp_bar32_val)
+{
+ return -1;
+}
+
uintptr_t plat_get_invalid_addr(void)
{
return (uintptr_t)0x0;