summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-13 21:11:43 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-10-23 18:09:04 +0000
commitac0281447824adbac93a1d0c66e565029797d44d (patch)
treeb045524bc49fabefe44ee5e87bad6281ea525260 /src/soc
parentdd558fd0cf81886fdc1b6f2bb5045031a69f55cd (diff)
downloadcoreboot-ac0281447824adbac93a1d0c66e565029797d44d.tar.xz
soc/intel/broadwell/memmap.c: Use `SA_DEV_ROOT` macro
Tested with BUILD_TIMELESS=1, Purism Librem 13 v1 remains identical. Change-Id: I013357d31974582f64a35b8228d9edfa16af99fd Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46356 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/broadwell/memmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/broadwell/memmap.c b/src/soc/intel/broadwell/memmap.c
index fb9a834f6c..e4c787a016 100644
--- a/src/soc/intel/broadwell/memmap.c
+++ b/src/soc/intel/broadwell/memmap.c
@@ -35,8 +35,8 @@ void *cbmem_top_chipset(void)
void smm_region(uintptr_t *start, size_t *size)
{
- uintptr_t tseg = pci_read_config32(PCI_DEV(0, 0, 0), TSEG);
- uintptr_t bgsm = pci_read_config32(PCI_DEV(0, 0, 0), BGSM);
+ uintptr_t tseg = pci_read_config32(SA_DEV_ROOT, TSEG);
+ uintptr_t bgsm = pci_read_config32(SA_DEV_ROOT, BGSM);
tseg = ALIGN_DOWN(tseg, 1 * MiB);
bgsm = ALIGN_DOWN(bgsm, 1 * MiB);