summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/picasso/root_complex.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2020-12-03 16:57:02 +0100
committerFelix Held <felix-coreboot@felixheld.de>2021-01-08 15:18:18 +0000
commitf9608cd8f4c563163875fb545fc30ff4fee5734e (patch)
tree784a9e3659cf0fef06001614c8b7d55e796988a9 /src/soc/amd/picasso/root_complex.c
parent663c17c78d8409dee97c20cb1342eaa786b9c6c6 (diff)
downloadcoreboot-f9608cd8f4c563163875fb545fc30ff4fee5734e.tar.gz
coreboot-f9608cd8f4c563163875fb545fc30ff4fee5734e.tar.bz2
coreboot-f9608cd8f4c563163875fb545fc30ff4fee5734e.zip
soc/amd/picasso: add missing GNB I/O APIC initialization
Change-Id: Iddb0c20e769e6921ba5d0dd4a84ab9e494d522e1 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48269 Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Nikolai Vyssotski <nikolai.vyssotski@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/picasso/root_complex.c')
-rw-r--r--src/soc/amd/picasso/root_complex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c
index 045f30cf4c1b..5166fe5ba7c8 100644
--- a/src/soc/amd/picasso/root_complex.c
+++ b/src/soc/amd/picasso/root_complex.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <acpi/acpigen.h>
+#include <arch/ioapic.h>
#include <assert.h>
#include <cbmem.h>
#include <console/console.h>
@@ -181,6 +182,11 @@ static void read_resources(struct device *dev)
gnb_apic->flags = IORESOURCE_MEM | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
}
+static void root_complex_init(struct device *dev)
+{
+ setup_ioapic((u8 *)GNB_IO_APIC_ADDR, CONFIG_PICASSO_GNB_IOAPIC_ID);
+}
+
static void dptc_call_alib(const char *buf_name, uint8_t *buffer, size_t size)
{
/* Name (buf_name, Buffer(size) {...} */
@@ -266,6 +272,7 @@ static struct device_operations root_complex_operations = {
.read_resources = read_resources,
.set_resources = noop_set_resources,
.enable_resources = pci_dev_enable_resources,
+ .init = root_complex_init,
.acpi_fill_ssdt = root_complex_fill_ssdt,
};