summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-12-03 13:24:03 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-06 19:44:26 +0000
commit4b7d4054d9194647c30467a73b7ebc29d740b5b9 (patch)
tree12a052892825f0c76671af659ad95b988b1c680f /src
parent285bf097abc57f8e6ab8f99fd4d3f69193b2003b (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/northbridge/intel/sandybridge/raminit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c
index 5044512ead..7beaa9bc95 100644
--- a/src/northbridge/intel/sandybridge/raminit.c
+++ b/src/northbridge/intel/sandybridge/raminit.c
@@ -31,11 +31,11 @@ static void wait_txt_clear(void)
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)))
;
}