summaryrefslogtreecommitdiff
path: root/src/southbridge/amd
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/amd')
-rw-r--r--src/southbridge/amd/pi/hudson/ioapic.h10
-rw-r--r--src/southbridge/amd/pi/hudson/sm.c3
2 files changed, 1 insertions, 12 deletions
diff --git a/src/southbridge/amd/pi/hudson/ioapic.h b/src/southbridge/amd/pi/hudson/ioapic.h
deleted file mode 100644
index 757e5c83d5..0000000000
--- a/src/southbridge/amd/pi/hudson/ioapic.h
+++ /dev/null
@@ -1,10 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef AMD_BLOCK_IOAPIC_H
-#define AMD_BLOCK_IOAPIC_H
-
-/* Since the old APIC bus isn't used any more, the IOAPIC IDs could be < CONFIG_MAX_CPUS */
-#define FCH_IOAPIC_ID (CONFIG_MAX_CPUS)
-#define GNB_IOAPIC_ID (CONFIG_MAX_CPUS + 1)
-
-#endif /* AMD_BLOCK_IOAPIC_H */
diff --git a/src/southbridge/amd/pi/hudson/sm.c b/src/southbridge/amd/pi/hudson/sm.c
index c40bf5e1c9..2dc2ae3924 100644
--- a/src/southbridge/amd/pi/hudson/sm.c
+++ b/src/southbridge/amd/pi/hudson/sm.c
@@ -5,7 +5,6 @@
#include <device/pci_ids.h>
#include <device/smbus.h>
#include <arch/ioapic.h>
-#include <southbridge/amd/pi/hudson/ioapic.h>
#include "hudson.h"
#include "smbus.c"
@@ -22,7 +21,7 @@
static void sm_init(struct device *dev)
{
- setup_ioapic(VIO_APIC_VADDR, FCH_IOAPIC_ID);
+ register_new_ioapic_gsi0(VIO_APIC_VADDR);
}
static int lsmbus_recv_byte(struct device *dev)