summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/graphics
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-04 16:06:02 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-06 19:53:34 +0000
commitc4fbeacd01772ad297d5c508bc44e9fa3bc27fb6 (patch)
tree6239de26565da12d47102d12d5910642e5ab15b9 /src/soc/intel/common/block/graphics
parentaf776d8b660d6fbffd3bda1178e5f43457a4b5b0 (diff)
soc/intel/common/block: Use readXXp/writeXXp()
Change-Id: I83d05ce0b26b01fdfc95d1442a4c930ed77bf25c Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70294 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/intel/common/block/graphics')
-rw-r--r--src/soc/intel/common/block/graphics/graphics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/graphics/graphics.c b/src/soc/intel/common/block/graphics/graphics.c
index dae181adf4..e9a6a5dcdc 100644
--- a/src/soc/intel/common/block/graphics/graphics.c
+++ b/src/soc/intel/common/block/graphics/graphics.c
@@ -148,12 +148,12 @@ static uintptr_t graphics_get_gtt_base(void)
uint32_t graphics_gtt_read(unsigned long reg)
{
- return read32((void *)(graphics_get_gtt_base() + reg));
+ return read32p(graphics_get_gtt_base() + reg);
}
void graphics_gtt_write(unsigned long reg, uint32_t data)
{
- write32((void *)(graphics_get_gtt_base() + reg), data);
+ write32p(graphics_get_gtt_base() + reg, data);
}
void graphics_gtt_rmw(unsigned long reg, uint32_t andmask, uint32_t ormask)