Debian Codegraph @

src/mainboard/lenovo/m900_tiny/smihandler.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi.h>
4 #include <cpu/x86/smm.h>
5 #include <intelblocks/pcr.h>
6 #include <soc/pcr_ids.h>
7
8 void mainboard_smi_sleep(u8 slp_typ)
9 {
10 /* Enable blinking power LED when entering S3 or S4 */
11 switch (slp_typ) {
12 case ACPI_S3:
13 case ACPI_S4:
14 /* Configure GPIO community 1 PWM duty cycle to 50% */
15 pcr_rmw32(PID_GPIOCOM1, 0x204, 0xffffff00, 0x7f);
16 /* Set the software update flag */
17 pcr_or32(PID_GPIOCOM1, 0x204, (1 << 30));
18 break;
19 default:
20 break;
21 }
22 }