summaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/opensil
diff options
context:
space:
mode:
authorNicolas Kochlowski <nickkochlowski@gmail.com>2024-09-19 12:16:02 -0300
committerMarshall Dawson <marshalldawson3rd@gmail.com>2024-09-25 15:03:33 +0000
commit8923dceaf7a78b1a5936033501328579a8ef80ce (patch)
treebbd0f81ab85dc8d8b0bd910e398f74a2e24ec1ba /src/vendorcode/amd/opensil
parent42a6c0c24d4cd6a57479cdedd78cdd85312573e7 (diff)
vc/amd/opensil: Move openSIL interface declarations to common header
The declarations describing interface functions between SoCs and openSIL glue code are common for the stub and Genoa POC, and likely with future SoC openSIL implementations. Therefore, move these out of SoC-specific header files and into vc/amd/opensil/opensil.h. This change facilitates swapping out the stub for the actual openSIL glue code. Change-Id: Icc8783ddb868f9f0c4cd357245604313eadfe531 Signed-off-by: Nicolas Kochlowski <nickkochlowski@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84428 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/amd/opensil')
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/acpi.c2
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/memmap.c2
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c2
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/ramstage.c2
-rw-r--r--src/vendorcode/amd/opensil/opensil.h (renamed from src/vendorcode/amd/opensil/genoa_poc/opensil.h)0
-rw-r--r--src/vendorcode/amd/opensil/stub/opensil.h19
-rw-r--r--src/vendorcode/amd/opensil/stub/ramstage.c2
7 files changed, 5 insertions, 24 deletions
diff --git a/src/vendorcode/amd/opensil/genoa_poc/acpi.c b/src/vendorcode/amd/opensil/genoa_poc/acpi.c
index a0af4a3f3e..f539798d69 100644
--- a/src/vendorcode/amd/opensil/genoa_poc/acpi.c
+++ b/src/vendorcode/amd/opensil/genoa_poc/acpi.c
@@ -5,7 +5,7 @@
#include <SilCommon.h>
#include <xSIM-api.h>
#include <FCH/Common/FchCommonCfg.h>
-#include "opensil.h"
+#include "../opensil.h"
void opensil_fill_fadt_io_ports(acpi_fadt_t *fadt)
{
diff --git a/src/vendorcode/amd/opensil/genoa_poc/memmap.c b/src/vendorcode/amd/opensil/genoa_poc/memmap.c
index 6261ad0260..ece9877183 100644
--- a/src/vendorcode/amd/opensil/genoa_poc/memmap.c
+++ b/src/vendorcode/amd/opensil/genoa_poc/memmap.c
@@ -12,7 +12,7 @@
#include <cbmem.h>
#include <amdblocks/memmap.h>
-#include "opensil.h"
+#include "../opensil.h"
static const char *hole_info_type(MEMORY_HOLE_TYPES type)
{
diff --git a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c
index b3710341b7..cd7b9a1cba 100644
--- a/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c
+++ b/src/vendorcode/amd/opensil/genoa_poc/mpio/chip.c
@@ -7,7 +7,7 @@
#include <device/device.h>
#include <device/pci_def.h>
#include "chip.h"
-#include "../opensil.h"
+#include "../../opensil.h"
struct chip_operations vendorcode_amd_opensil_chip_mpio_ops = {
.name = "AMD GENOA MPIO",
diff --git a/src/vendorcode/amd/opensil/genoa_poc/ramstage.c b/src/vendorcode/amd/opensil/genoa_poc/ramstage.c
index 843f073a36..b18ccc9836 100644
--- a/src/vendorcode/amd/opensil/genoa_poc/ramstage.c
+++ b/src/vendorcode/amd/opensil/genoa_poc/ramstage.c
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <xSIM-api.h>
#include "opensil_console.h"
-#include "opensil.h"
+#include "../opensil.h"
void SIL_STATUS_report(const char *function, const int status)
{
diff --git a/src/vendorcode/amd/opensil/genoa_poc/opensil.h b/src/vendorcode/amd/opensil/opensil.h
index 1aa2f06423..1aa2f06423 100644
--- a/src/vendorcode/amd/opensil/genoa_poc/opensil.h
+++ b/src/vendorcode/amd/opensil/opensil.h
diff --git a/src/vendorcode/amd/opensil/stub/opensil.h b/src/vendorcode/amd/opensil/stub/opensil.h
deleted file mode 100644
index 9563403e6b..0000000000
--- a/src/vendorcode/amd/opensil/stub/opensil.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef _OPENSIL_H_
-#define _OPENSIL_H_
-
-#include <acpi/acpi.h>
-#include <device/device.h>
-
-// Add the memory map to dev, starting at index idx, returns last use idx
-void add_opensil_memmap(struct device *dev, unsigned long *idx);
-// Fill in FADT from openSIL
-void opensil_fill_fadt_io_ports(acpi_fadt_t *fadt);
-
-void setup_opensil(void);
-void opensil_xSIM_timepoint_1(void);
-void opensil_xSIM_timepoint_2(void);
-void opensil_xSIM_timepoint_3(void);
-
-#endif
diff --git a/src/vendorcode/amd/opensil/stub/ramstage.c b/src/vendorcode/amd/opensil/stub/ramstage.c
index 76cbaf8441..0674140646 100644
--- a/src/vendorcode/amd/opensil/stub/ramstage.c
+++ b/src/vendorcode/amd/opensil/stub/ramstage.c
@@ -3,7 +3,7 @@
#include <acpi/acpi.h>
#include <amdblocks/acpi.h>
#include <device/device.h>
-#include "opensil.h"
+#include "../opensil.h"
void add_opensil_memmap(struct device *dev, unsigned long *idx)
{