summaryrefslogtreecommitdiffstats
path: root/src/northbridge/intel
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-07-29 07:34:03 +0200
committerArthur Heymans <arthur@aheymans.xyz>2022-08-26 14:20:26 +0000
commit1233c43a983f0e05cf19c670b790d5e0fe66e2af (patch)
tree0791bee4d74de6212d93b0c74e1a7ad77dc71e03 /src/northbridge/intel
parent5436548993d465d55169c91b2acfd46b3287ec95 (diff)
downloadcoreboot-1233c43a983f0e05cf19c670b790d5e0fe66e2af.tar.gz
coreboot-1233c43a983f0e05cf19c670b790d5e0fe66e2af.tar.bz2
coreboot-1233c43a983f0e05cf19c670b790d5e0fe66e2af.zip
nb/intel/sandybridge: Align TOUUD down to 1 MiB granularity
This register has a 1MiB granularity. The lowest bit is a lock bit. Change-Id: I688cb7818fc849784026ca0bc6acb7ef1ae92133 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/66256 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r--src/northbridge/intel/sandybridge/northbridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/sandybridge/northbridge.c b/src/northbridge/intel/sandybridge/northbridge.c
index 14fde8b08a60..521044bcba26 100644
--- a/src/northbridge/intel/sandybridge/northbridge.c
+++ b/src/northbridge/intel/sandybridge/northbridge.c
@@ -85,7 +85,7 @@ static uint64_t get_touud(const struct device *dev)
{
uint64_t touud = pci_read_config32(dev, TOUUD + 4);
touud <<= 32;
- touud |= pci_read_config32(dev, TOUUD);
+ touud |= pci_read_config32(dev, TOUUD) & 0xfff00000;
return touud;
}