From 878a99f554da5e7f49c6a70a1d56b3974f78b0c4 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 11 Dec 2022 10:35:46 +0100 Subject: [PATCH] soc/intel/broadwell/early_init.c: Use {read,write}32p() Change-Id: I80b1535b86c7fc05354404d628a0a527a6701498 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/70582 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/intel/broadwell/early_init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/soc/intel/broadwell/early_init.c b/src/soc/intel/broadwell/early_init.c index 284e877ec3..8b9028baff 100644 --- a/src/soc/intel/broadwell/early_init.c +++ b/src/soc/intel/broadwell/early_init.c @@ -47,12 +47,12 @@ void systemagent_early_init(void) /* set PRSCAPDIS, lock GFXVTBAR policy cfg registers */ u32 reg32; - reg32 = read32((void *)(GFXVT_BASE_ADDRESS + ARCHDIS)); - write32((void *)(GFXVT_BASE_ADDRESS + ARCHDIS), + reg32 = read32p(GFXVT_BASE_ADDRESS + ARCHDIS); + write32p(GFXVT_BASE_ADDRESS + ARCHDIS, reg32 | DMAR_LCKDN | PRSCAPDIS); /* lock VTVC0BAR policy cfg registers */ - reg32 = read32((void *)(VTVC0_BASE_ADDRESS + ARCHDIS)); - write32((void *)(VTVC0_BASE_ADDRESS + ARCHDIS), + reg32 = read32p(VTVC0_BASE_ADDRESS + ARCHDIS); + write32p(VTVC0_BASE_ADDRESS + ARCHDIS, reg32 | DMAR_LCKDN); } }