summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-11 10:35:46 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-13 14:31:11 +0000
commit878a99f554da5e7f49c6a70a1d56b3974f78b0c4 (patch)
treef7064118daca5d1dd53e294fd6b4dcdb0d63328f /src/soc/intel
parentbc849b5459c53e1787991a7d65d0795bb5fafba4 (diff)
soc/intel/broadwell/early_init.c: Use {read,write}32p()
Change-Id: I80b1535b86c7fc05354404d628a0a527a6701498 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70582 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/broadwell/early_init.c8
1 files 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);
}
}