summaryrefslogtreecommitdiffstats
path: root/src/mainboard/amd
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-02-27 21:15:16 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-02-28 20:26:57 +0000
commitb6b5af11712b303dab085a5c7c11aa003d4842a8 (patch)
tree7ef73d4adf3eb2bc1e58bc3feb01cacd51c46a42 /src/mainboard/amd
parent1818ebd627f2eb3822505512ce047cd766e3c2c4 (diff)
downloadcoreboot-b6b5af11712b303dab085a5c7c11aa003d4842a8.tar.gz
coreboot-b6b5af11712b303dab085a5c7c11aa003d4842a8.tar.bz2
coreboot-b6b5af11712b303dab085a5c7c11aa003d4842a8.zip
mb/amd/gardenia,pademelon/mainboard: use ACPI_SCI_IRQ definition
Use the ACPI_SCI_IRQ definition for both the PIC and APIC IRQ number in the fch_irq_map table. Before the PIC mapping was set to PIRQ_NC, but both mb/google/kahlee and the other amd mainboards using newer SoCs set both the PIC and APCI IRQ number to ACPI_SCI_IRQ, so change this here to match the other mainboards. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I29dde7ca8d2ecf00d8174c2d793ef1ad55ae3e28 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73322 Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/amd')
-rw-r--r--src/mainboard/amd/gardenia/mainboard.c3
-rw-r--r--src/mainboard/amd/pademelon/mainboard.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mainboard/amd/gardenia/mainboard.c b/src/mainboard/amd/gardenia/mainboard.c
index 39f16972ecb5..d89449f6fa64 100644
--- a/src/mainboard/amd/gardenia/mainboard.c
+++ b/src/mainboard/amd/gardenia/mainboard.c
@@ -4,6 +4,7 @@
#include <amdblocks/agesawrapper.h>
#include <amdblocks/amd_pci_util.h>
#include <gpio.h>
+#include <soc/acpi.h>
#include <soc/southbridge.h>
#include "gpio.h"
@@ -19,7 +20,7 @@ static const struct fch_irq_routing fch_irq_map[] = {
{ PIRQ_F, 10, 21 },
{ PIRQ_G, PIRQ_NC, 22 },
{ PIRQ_H, PIRQ_NC, 23 },
- { PIRQ_SCI, PIRQ_NC, 9 },
+ { PIRQ_SCI, ACPI_SCI_IRQ, ACPI_SCI_IRQ },
{ PIRQ_SMBUS, PIRQ_NC, PIRQ_NC },
{ PIRQ_HDA, 3, 16 },
{ PIRQ_SD, PIRQ_NC, 16 },
diff --git a/src/mainboard/amd/pademelon/mainboard.c b/src/mainboard/amd/pademelon/mainboard.c
index d10de260b1d1..8be12f183cbe 100644
--- a/src/mainboard/amd/pademelon/mainboard.c
+++ b/src/mainboard/amd/pademelon/mainboard.c
@@ -4,6 +4,7 @@
#include <amdblocks/agesawrapper.h>
#include <amdblocks/amd_pci_util.h>
#include <gpio.h>
+#include <soc/acpi.h>
#include <soc/pci_devs.h>
#include <soc/southbridge.h>
@@ -20,7 +21,7 @@ static const struct fch_irq_routing fch_irq_map[] = {
{ PIRQ_F, 10, 21 },
{ PIRQ_G, PIRQ_NC, 22 },
{ PIRQ_H, PIRQ_NC, 23 },
- { PIRQ_SCI, PIRQ_NC, 9 },
+ { PIRQ_SCI, ACPI_SCI_IRQ, ACPI_SCI_IRQ },
{ PIRQ_SMBUS, PIRQ_NC, PIRQ_NC },
{ PIRQ_HDA, 3, 16 },
{ PIRQ_SD, PIRQ_NC, 16 },