summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/haswell/early_init.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-03 13:31:38 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-06 19:45:59 +0000
commit9a83eae71ef838037024f5316b0e745bc2810cd5 (patch)
tree5debbd100bba57c99e76782319c0217364c8de29 /src/northbridge/intel/haswell/early_init.c
parenta2389ef3162be930e576af68e613d54ef4884cd4 (diff)
nb/intel/haswell: Use {read,write}32p()
Change-Id: Ibbefa3d57b17a6a8eb0831eeadf6d629e2765567 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70288 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/northbridge/intel/haswell/early_init.c')
-rw-r--r--src/northbridge/intel/haswell/early_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/intel/haswell/early_init.c b/src/northbridge/intel/haswell/early_init.c
index 13c2dcd2bc..e47deb5da6 100644
--- a/src/northbridge/intel/haswell/early_init.c
+++ b/src/northbridge/intel/haswell/early_init.c
@@ -169,14 +169,14 @@ static void haswell_setup_iommu(void)
/* Set L3HIT2PEND_DIS, lock GFXVTBAR policy config registers */
u32 reg32;
- reg32 = read32((void *)(GFXVT_BASE_ADDRESS + ARCHDIS));
- write32((void *)(GFXVT_BASE_ADDRESS + ARCHDIS), reg32 | DMAR_LCKDN | L3HIT2PEND_DIS);
+ reg32 = read32p(GFXVT_BASE_ADDRESS + ARCHDIS);
+ write32p(GFXVT_BASE_ADDRESS + ARCHDIS, reg32 | DMAR_LCKDN | L3HIT2PEND_DIS);
/* Clear SPCAPCTRL */
- reg32 = read32((void *)(VTVC0_BASE_ADDRESS + ARCHDIS)) & ~SPCAPCTRL;
+ reg32 = read32p(VTVC0_BASE_ADDRESS + ARCHDIS) & ~SPCAPCTRL;
/* Set GLBIOTLBINV, GLBCTXTINV; lock VTVC0BAR policy config registers */
- write32((void *)(VTVC0_BASE_ADDRESS + ARCHDIS),
+ write32p(VTVC0_BASE_ADDRESS + ARCHDIS,
reg32 | DMAR_LCKDN | GLBIOTLBINV | GLBCTXTINV);
}