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>
This commit is contained in:
Elyes Haouas 2022-12-11 10:35:46 +01:00 committed by Felix Held
parent bc849b5459
commit 878a99f554
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}