diff options
Diffstat (limited to 'src/mainboard/lenovo')
-rw-r--r-- | src/mainboard/lenovo/t430s/variants/t430s/romstage.c | 5 | ||||
-rw-r--r-- | src/mainboard/lenovo/t440p/romstage.c | 5 |
2 files changed, 2 insertions, 8 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); } } diff --git a/src/mainboard/lenovo/t440p/romstage.c b/src/mainboard/lenovo/t440p/romstage.c index e605453fff..8a7da158e3 100644 --- a/src/mainboard/lenovo/t440p/romstage.c +++ b/src/mainboard/lenovo/t440p/romstage.c @@ -31,10 +31,7 @@ void mb_late_romstage_setup(void) if (!enable_peg) { // Hide disabled dGPU device - u32 reg32 = pci_read_config32(PCI_DEV(0, 0, 0), DEVEN); - reg32 &= ~DEVEN_D1F0EN; - - pci_write_config32(PCI_DEV(0, 0, 0), DEVEN, reg32); + pci_and_config32(HOST_BRIDGE, DEVEN, ~DEVEN_D1F0EN); } } |