1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <console/console.h>
5 #include <cpu/x86/smm.h>
6 #include <superio/ite/common/ite.h>
7 #include "common_defines.h"
10 /* Change power led state based on sleep type. */
11 void mainboard_smi_sleep(u8 slp_typ
)
13 printk(BIOS_DEBUG
, "SMI: sleep S%d\n", slp_typ
);
17 * Vendor firmware also only enables this when entering sleep.
18 * This saves some power when entering S5 via shutdown.
20 ite_enable_3vsbsw(GPIO_DEV
);
21 set_power_led(LED_YELLOW
);
24 /* Without 3vsbsw enabled the LED will be off in any case */
26 set_power_led(LED_OFF
);