summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-02-04 19:27:48 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-05 18:59:49 +0000
commitddf137f82261bfcbf394daf413dd8da920786c0d (patch)
treec7c85a7ca6afe15ec50bcd757f66008202904356 /src/soc/amd/common/block
parent70f32bb203857c29069881422a5ce2bce101ed05 (diff)
nb,soc/amd/*/iommu: fix comment about IOMMU MMIO resource
This comment was added with the AMD family 15h Trinity IOMMU support in commit 88ebbeb7e2a914330c869147bacb190b4270532f and looks like a copy of the comment about the subtractive decode ranges in the LPC device. The IOMMU doesn't have any subtractively decoded I/O or MMIO ranges and this is also not what the code does. This resource is the MMIO region to configure the IOMMU instead, so fix the comment in all copies of the IOMMU support code. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I2e1e3a46b839b9e58b836932c1bc9b41b1b1dc02 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61631 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r--src/soc/amd/common/block/iommu/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/iommu/iommu.c b/src/soc/amd/common/block/iommu/iommu.c
index 67abe9e66d..9d4f38e8d9 100644
--- a/src/soc/amd/common/block/iommu/iommu.c
+++ b/src/soc/amd/common/block/iommu/iommu.c
@@ -12,7 +12,7 @@ static void iommu_read_resources(struct device *dev)
/* Get the normal pci resources of this device */
pci_dev_read_resources(dev);
- /* Add an extra subtractive resource for both memory and I/O. */
+ /* IOMMU MMIO registers */
res = new_resource(dev, 0x44);
res->size = 512 * KiB;
res->align = log2(res->size);