payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / intel / emeraldlake2 / ec.c
blob57b4394725bf114dcaabd0b69043d2a1720a253a
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi.h>
4 #include <console/console.h>
5 #include <ec/smsc/mec1308/ec.h>
6 #include "ec.h"
8 void lumpy_ec_init(void)
10 printk(BIOS_DEBUG, "%s\n", __func__);
12 if (acpi_is_wakeup_s3())
13 return;
16 * Enable EC control of fan speed.
18 * This will be changed to OS control in ACPI EC _REG
19 * method when the OS is ready to control the fan.
21 ec_write(EC_FAN_SPEED, 0);
23 send_ec_command_data(EC_BATTERY_MODE, EC_BATTERY_MODE_NORMAL);
24 send_ec_command_data(EC_POWER_BUTTON_MODE, EC_POWER_BUTTON_MODE_OS);
25 send_ec_command(EC_SMI_DISABLE);
26 send_ec_command(EC_ACPI_ENABLE);
27 send_ec_command(EC_BACKLIGHT_ON);