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:
parent
bc849b5459
commit
878a99f554
|
@ -47,12 +47,12 @@ void systemagent_early_init(void)
|
||||||
|
|
||||||
/* set PRSCAPDIS, lock GFXVTBAR policy cfg registers */
|
/* set PRSCAPDIS, lock GFXVTBAR policy cfg registers */
|
||||||
u32 reg32;
|
u32 reg32;
|
||||||
reg32 = read32((void *)(GFXVT_BASE_ADDRESS + ARCHDIS));
|
reg32 = read32p(GFXVT_BASE_ADDRESS + ARCHDIS);
|
||||||
write32((void *)(GFXVT_BASE_ADDRESS + ARCHDIS),
|
write32p(GFXVT_BASE_ADDRESS + ARCHDIS,
|
||||||
reg32 | DMAR_LCKDN | PRSCAPDIS);
|
reg32 | DMAR_LCKDN | PRSCAPDIS);
|
||||||
/* lock VTVC0BAR policy cfg registers */
|
/* lock VTVC0BAR policy cfg registers */
|
||||||
reg32 = read32((void *)(VTVC0_BASE_ADDRESS + ARCHDIS));
|
reg32 = read32p(VTVC0_BASE_ADDRESS + ARCHDIS);
|
||||||
write32((void *)(VTVC0_BASE_ADDRESS + ARCHDIS),
|
write32p(VTVC0_BASE_ADDRESS + ARCHDIS,
|
||||||
reg32 | DMAR_LCKDN);
|
reg32 | DMAR_LCKDN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue