Attention is currently required from: Felix Held, Fred Reitberger, Jason Glenesk, Matt DeVillier, Raul Rangel.
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/75915?usp=email )
Change subject: soc/amd/common/iommu: Use preprocessor values for IOMMU base ......................................................................
soc/amd/common/iommu: Use preprocessor values for IOMMU base
Signed-off-by: Arthur Heymans arthur@aheymans.xyz Change-Id: I85f58565bf1f955f704e223d538d0b374bc6fbda --- M src/soc/amd/common/block/iommu/iommu.c 1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/75915/1
diff --git a/src/soc/amd/common/block/iommu/iommu.c b/src/soc/amd/common/block/iommu/iommu.c index 52861f2..ad1d774 100644 --- a/src/soc/amd/common/block/iommu/iommu.c +++ b/src/soc/amd/common/block/iommu/iommu.c @@ -4,6 +4,9 @@ #include <device/pci.h> #include <lib.h>
+#define IOMMU_CAP_BASE_LO 0x44 +#define IOMMU_CAP_BASE_HI 0x48 + static void iommu_read_resources(struct device *dev) { struct resource *res; @@ -12,7 +15,7 @@ pci_dev_read_resources(dev);
/* IOMMU MMIO registers */ - res = new_resource(dev, 0x44); + res = new_resource(dev, IOMMU_CAP_BASE_LO); res->size = 512 * KiB; res->align = log2(res->size); res->gran = log2(res->size);