From 0fc69141e523ef3dba5ce840dea68de40b0ec785 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Wed, 8 May 2024 21:44:46 +0200 Subject: vc/amd/opensil: introduce common mpio/chip.h header file The chip drivers in the devicetree use the path where the corresponding chip.h file resides both to include this chip.h file in the static.c generated by util/sconfig from the devicetree and also for the names of the chip config and chip ops struct. To be able to build a SoC using either the MPIO chip driver from the openSIL stub or from the actual openSIL glue code without needing different devicetree files for the different cases, introduce a common MPIO chip.h file that then includes the correct MPIO header file. The chip config and ops structures also need to be renamed to take this change into account. Thanks to Matt for pointing out how to make the path to the actual MPIO chip.h file configurable via a Kconfig setting. This allows overriding this path from site-local without the need to have any reference to site-local in the upstream code. Signed-off-by: Felix Held Change-Id: Iead97d1727569ec0d23a2b9c4fd96daff4bebcf6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/82262 Reviewed-by: Varshit Pandya Reviewed-by: Martin L Roth Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/vendorcode/amd/opensil/chip/mpio/chip.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/vendorcode/amd/opensil/chip/mpio/chip.h (limited to 'src/vendorcode/amd/opensil/chip') diff --git a/src/vendorcode/amd/opensil/chip/mpio/chip.h b/src/vendorcode/amd/opensil/chip/mpio/chip.h new file mode 100644 index 0000000000..812df6b6d4 --- /dev/null +++ b/src/vendorcode/amd/opensil/chip/mpio/chip.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#ifndef OPENSIL_MPIO_CHIP_H +#define OPENSIL_MPIO_CHIP_H + +#include CONFIG_AMD_OPENSIL_MPIO_CHIP_H_FILE + +#endif /* OPENSIL_MPIO_CHIP_H */ -- cgit v1.2.3