summaryrefslogtreecommitdiff
path: root/src/soc/amd/common/block/root_complex
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-01-30 22:04:34 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-02-01 11:36:41 +0000
commite4594f12cb4c2f02b3764b95887f8f2be869af1d (patch)
tree2e777967800094e7f67102ceeab43f2e4afa7d53 /src/soc/amd/common/block/root_complex
parentc0474785fb98246e3a62730f08ba6d947c43a53f (diff)
soc/amd/common/data_fabric/domain: use unsigned long for resource index
Use an unsigned long as resource index type instead of an int to match the data type used for the index in the resource struct. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I60ac0e30627001698565b7256421780f9a94bf65 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80266 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
Diffstat (limited to 'src/soc/amd/common/block/root_complex')
-rw-r--r--src/soc/amd/common/block/root_complex/non_pci_resources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/root_complex/non_pci_resources.c b/src/soc/amd/common/block/root_complex/non_pci_resources.c
index 31f4eb0565..54f3de276f 100644
--- a/src/soc/amd/common/block/root_complex/non_pci_resources.c
+++ b/src/soc/amd/common/block/root_complex/non_pci_resources.c
@@ -7,7 +7,7 @@
#define IOHC_MMIO_EN BIT(0)
-void read_non_pci_resources(struct device *domain, unsigned int *idx)
+void read_non_pci_resources(struct device *domain, unsigned long *idx)
{
const uint32_t iohc_misc_base = get_iohc_misc_smn_base(domain);
const struct non_pci_mmio_reg *regs;