summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/common/block/root_complex/ioapic.c
blob: cdeb53239bd292369e7f3028027c4c4579e5973e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#include <amdblocks/ioapic.h>
#include <amdblocks/root_complex.h>
#include <arch/ioapic.h>
#include <device/device.h>
#include <device/resource.h>
#include <types.h>

void amd_pci_domain_init(struct device *domain)
{
	struct resource *res = probe_resource(domain, IOMMU_IOAPIC_IDX);
	if (!res)
		return;

	register_new_ioapic((void *)(uintptr_t)res->base);
}