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>
This commit is contained in:
parent
5f12455b8a
commit
e3a21bb749
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue