libpayload: configs: Add new config.featuretest to broaden CI
[coreboot.git] / src / mainboard / starlabs / lite / smihandler.c
blob75e84c76e2e3507fc40fb0761cb389979b650018
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 #include <acpi/acpi.h>
4 #include <cpu/x86/smm.h>
5 #include <intelblocks/xhci.h>
7 void mainboard_smi_sleep(u8 slp_typ)
9 /*
10 * Workaround: Reset the XHCI controller prior to S5 to avoid
11 * XHCI preventing shutdown. Linux needs to put the XHCI into D3
12 * before shutting down but the powerstate commands do not
13 * perform a reset.
15 if (slp_typ == ACPI_S5)
16 xhci_host_reset();