summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/iommu.h5
-rw-r--r--src/soc/amd/common/block/iommu/iommu.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/iommu.h b/src/soc/amd/common/block/include/amdblocks/iommu.h
new file mode 100644
index 0000000000..9f2e023fab
--- /dev/null
+++ b/src/soc/amd/common/block/include/amdblocks/iommu.h
@@ -0,0 +1,5 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#define IOMMU_CAP_BASE_LO 0x44
+#define IOMMU_ENABLE (1 << 0)
+#define IOMMU_CAP_BASE_HI 0x48
diff --git a/src/soc/amd/common/block/iommu/iommu.c b/src/soc/amd/common/block/iommu/iommu.c
index 78ec881b49..43eda7cbb0 100644
--- a/src/soc/amd/common/block/iommu/iommu.c
+++ b/src/soc/amd/common/block/iommu/iommu.c
@@ -1,14 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <amdblocks/iommu.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <lib.h>
-#define IOMMU_CAP_BASE_LO 0x44
-#define IOMMU_CAP_BASE_HI 0x48
-#define IOMMU_ENABLE (1 << 0)
-
static void iommu_read_resources(struct device *dev)
{
struct resource *res;