mb/google/stout: Use pci_update_config32()

Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: Ie1d2965b384e5653958f7f8503c62b8a16fa7bc1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63972
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@tutanota.com>
This commit is contained in:
Elyes Haouas 2022-04-30 08:52:25 +02:00 committed by Martin L Roth
parent c9b219804b
commit 386e8494bb
1 changed files with 1 additions and 4 deletions

View File

@ -58,10 +58,7 @@ void mainboard_smi_sleep(u8 slp_typ)
* after the transition into suspend. * after the transition into suspend.
*/ */
if (gnvs->xhci) { if (gnvs->xhci) {
u32 reg32 = pci_read_config32(PCH_XHCI_DEV, 0x74); pci_update_config32(PCH_XHCI_DEV, 0x74, ~(1 << 8), 1 << 15);
reg32 &= ~(1 << 8); /* disable PME */
reg32 |= (1 << 15); /* clear PME status */
pci_write_config32(PCH_XHCI_DEV, 0x74, reg32);
} }
} }