summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t430s/variants
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@gmail.com>2021-06-17 10:49:26 +0200
committerFelix Held <felix-coreboot@felixheld.de>2021-09-06 19:12:30 +0000
commite3a21bb749fac781d6f3c46b52fb83b9d5c90e5e (patch)
treef423f3622dadc2f6661b712673e077c97c21c355 /src/mainboard/lenovo/t430s/variants
parent5f12455b8a029f862f7b2d51be624e948013cc0e (diff)
mb/lenovo: Use pci_and_config32
Change-Id: I082d31d59660c48065f9390975817d3ed553da2d Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55606 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/lenovo/t430s/variants')
-rw-r--r--src/mainboard/lenovo/t430s/variants/t430s/romstage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainboard/lenovo/t430s/variants/t430s/romstage.c b/src/mainboard/lenovo/t430s/variants/t430s/romstage.c
index efcd31558d..c6414863ce 100644
--- a/src/mainboard/lenovo/t430s/variants/t430s/romstage.c
+++ b/src/mainboard/lenovo/t430s/variants/t430s/romstage.c
@@ -42,9 +42,6 @@ void mainboard_early_init(int s3resume)
if (!enable_peg) {
// Hide disabled dGPU device
- u32 reg32 = pci_read_config32(PCI_DEV(0, 0, 0), DEVEN);
- reg32 &= ~DEVEN_PEG10;
-
- pci_write_config32(PCI_DEV(0, 0, 0), DEVEN, reg32);
+ pci_and_config32(HOST_BRIDGE, DEVEN, ~DEVEN_PEG10);
}
}