summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-04-30 08:52:25 +0200
committerMartin L Roth <gaumless@tutanota.com>2022-05-16 02:35:10 +0000
commit386e8494bb05b7066ac87f70e92bce799e2d0872 (patch)
tree02d6004a910b3d0e613cecb17472a214da83ed77 /src/mainboard/google
parentc9b219804b0d8cc168e9d8f63fac0854b3af7de3 (diff)
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>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/stout/smihandler.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainboard/google/stout/smihandler.c b/src/mainboard/google/stout/smihandler.c
index 47cb0ebce6..f6adbf9534 100644
--- a/src/mainboard/google/stout/smihandler.c
+++ b/src/mainboard/google/stout/smihandler.c
@@ -58,10 +58,7 @@ void mainboard_smi_sleep(u8 slp_typ)
* after the transition into suspend.
*/
if (gnvs->xhci) {
- u32 reg32 = pci_read_config32(PCH_XHCI_DEV, 0x74);
- reg32 &= ~(1 << 8); /* disable PME */
- reg32 |= (1 << 15); /* clear PME status */
- pci_write_config32(PCH_XHCI_DEV, 0x74, reg32);
+ pci_update_config32(PCH_XHCI_DEV, 0x74, ~(1 << 8), 1 << 15);
}
}