coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ec.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <acpi/acpi.h>
4 #include <console/console.h>
5 #include <ec/smsc/mec1308/ec.h>
6 #include "ec.h"
7 
8 void lumpy_ec_init(void)
9 {
10  printk(BIOS_DEBUG, "%s\n", __func__);
11 
12  if (acpi_is_wakeup_s3())
13  return;
14 
15  /*
16  * Enable EC control of fan speed.
17  *
18  * This will be changed to OS control in ACPI EC _REG
19  * method when the OS is ready to control the fan.
20  */
22 
28 }
static int acpi_is_wakeup_s3(void)
Definition: acpi.h:9
#define printk(level,...)
Definition: stdlib.h:16
int send_ec_command(u8 command)
Definition: ec.c:13
int ec_write(u8 addr, u8 data)
Definition: ec.c:115
int send_ec_command_data(u8 command, u8 data)
Definition: ec.c:56
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
Definition: loglevel.h:128
void lumpy_ec_init(void)
Definition: ec.c:8
#define EC_BATTERY_MODE
Definition: ec.h:21
#define EC_BACKLIGHT_ON
Definition: ec.h:20
#define EC_POWER_BUTTON_MODE_OS
Definition: ec.h:17
#define EC_SMI_DISABLE
Definition: ec.h:8
#define EC_ACPI_ENABLE
Definition: ec.h:9
#define EC_BATTERY_MODE_NORMAL
Definition: ec.h:22
#define EC_POWER_BUTTON_MODE
Definition: ec.h:16
#define EC_FAN_SPEED
Definition: ec.h:26