nb/intel/sandybridge: Use read{8,32}p()

Change-Id: I3bbb2f02a2dc182956deffc554a6b161a93ad963
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70285
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c
index 5044512..7beaa9b 100644
--- a/src/northbridge/intel/sandybridge/raminit.c
+++ b/src/northbridge/intel/sandybridge/raminit.c
@@ -31,11 +31,11 @@
 		return;
 
 	/* Some TXT public bit */
-	if (!(read32((void *)0xfed30010) & 1))
+	if (!(read32p(0xfed30010) & 1))
 		return;
 
 	/* Wait for TXT clear */
-	while (!(read8((void *)0xfed40000) & (1 << 7)))
+	while (!(read8p(0xfed40000) & (1 << 7)))
 		;
 }