summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/systemagent
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-04 16:06:02 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-06 19:53:34 +0000
commitc4fbeacd01772ad297d5c508bc44e9fa3bc27fb6 (patch)
tree6239de26565da12d47102d12d5910642e5ab15b9 /src/soc/intel/common/block/systemagent
parentaf776d8b660d6fbffd3bda1178e5f43457a4b5b0 (diff)
soc/intel/common/block: Use readXXp/writeXXp()
Change-Id: I83d05ce0b26b01fdfc95d1442a4c930ed77bf25c Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70294 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/intel/common/block/systemagent')
-rw-r--r--src/soc/intel/common/block/systemagent/systemagent_early.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/systemagent/systemagent_early.c b/src/soc/intel/common/block/systemagent/systemagent_early.c
index 299f4c18a9..aecdfbb429 100644
--- a/src/soc/intel/common/block/systemagent/systemagent_early.c
+++ b/src/soc/intel/common/block/systemagent/systemagent_early.c
@@ -97,8 +97,8 @@ void sa_set_mch_bar(const struct sa_mmio_descriptor *fixed_set_resources,
base = fixed_set_resources[i].base;
index = fixed_set_resources[i].index;
if (base >> 32)
- write32((void *)(uintptr_t)(MCH_BASE_ADDRESS + index + 4), base >> 32);
- write32((void *)(uintptr_t)(MCH_BASE_ADDRESS + index),
+ write32p((uintptr_t)(MCH_BASE_ADDRESS + index + 4), base >> 32);
+ write32p((uintptr_t)(MCH_BASE_ADDRESS + index),
(base & 0xffffffff) | PCIEXBAR_PCIEXBAREN);
}
}