![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <acpi/acpi.h>
#include <acpi/acpi_device.h>
#include <acpi/acpi_pld.h>
#include <acpi/acpigen.h>
#include <acpi/acpigen_ps2_keybd.h>
#include <acpi/acpigen_usb.h>
#include <console/console.h>
#include <drivers/usb/acpi/chip.h>
#include <drivers/intel/usb4/retimer/retimer.h>
#include <ec/google/common/dptf.h>
#include "chip.h"
#include "ec.h"
#include "ec_commands.h"
Go to the source code of this file.
Macros | |
#define | GOOGLE_CHROMEEC_USBC_DEVICE_HID "GOOG0014" |
#define | GOOGLE_CHROMEEC_USBC_DEVICE_NAME "USBC" |
Functions | |
const char * | google_chromeec_acpi_name (const struct device *dev) |
static void | get_usb_port_references (int port_number, struct device **usb2_port, struct device **usb3_port, struct device **usb4_port) |
static const char * | port_location_to_str (enum ec_pd_port_location port_location) |
static void | add_port_location (struct acpi_dp *dsd, int port_number) |
static void | get_pld_from_usb_ports (struct acpi_pld *pld, struct device *usb2_port, struct device *usb3_port, struct device *usb4_port) |
static void | fill_ssdt_typec_device (const struct device *dev) |
static void | fill_ssdt_ps2_keyboard (const struct device *dev) |
static const char * | ec_acpi_name (const struct device *dev) |
void | google_chromeec_fill_ssdt_generator (const struct device *dev) |
const char * | ec_retimer_fw_update_path (void) |
void | ec_retimer_fw_update (uint8_t data) |
Variables | |
static struct usb_pd_port_caps | port_caps |
static enum ps2_action_key | ps2_enum_val [] |
static struct device_operations | ec_ops |
Definition at line 122 of file ec_acpi.c.
References acpi_dp_add_string(), port_caps, usb_pd_port_caps::port_location, and port_location_to_str().
Referenced by fill_ssdt_typec_device().
|
static |
Definition at line 289 of file ec_acpi.c.
References acpigen_emit_namestring(), acpigen_write_byte(), acpigen_write_store(), and ec_retimer_fw_update_path().
const char* ec_retimer_fw_update_path | ( | void | ) |
Definition at line 284 of file ec_acpi.c.
Referenced by ec_retimer_fw_update().
Definition at line 232 of file ec_acpi.c.
References acpigen_ps2_keyboard_dsd(), ec_response_keybd_config::action_keys, BIOS_ERR, ec_response_keybd_config::capabilities, google_chromeec_get_keybd_config(), KEYBD_CAP_FUNCTION_KEYS, KEYBD_CAP_NUMERIC_KEYPAD, KEYBD_CAP_SCRNLOCK_KEY, MAX_TOP_ROW_KEYS, ec_response_keybd_config::num_top_row_keys, printk, and ps2_enum_val.
Referenced by google_chromeec_fill_ssdt_generator().
Definition at line 148 of file ec_acpi.c.
References acpi_device_path(), acpigen_pop_len(), acpigen_write_device(), acpigen_write_name_string(), acpigen_write_scope(), acpigen_write_typec_connector(), add_port_location(), device::chip_info, config, usb_pd_port_caps::data_role_cap, EC_CMD_GET_PD_PORT_CAPS, get_pld_from_usb_ports(), get_usb_port_references(), google_chromeec_get_cmd_versions(), google_chromeec_get_num_pd_ports(), google_chromeec_get_pd_port_caps(), GOOGLE_CHROMEEC_USBC_DEVICE_HID, GOOGLE_CHROMEEC_USBC_DEVICE_NAME, NULL, typec_connector_class_config::pld, port_caps, typec_connector_class_config::power_role, usb_pd_port_caps::power_role_cap, usb_pd_port_caps::try_power_role_cap, typec_connector_class_config::usb2_port, typec_connector_class_config::usb3_port, and typec_connector_class_config::usb4_port.
Referenced by google_chromeec_fill_ssdt_generator().
|
static |
Definition at line 127 of file ec_acpi.c.
References acpi_pld_fill_usb(), device::chip_info, config, and NULL.
Referenced by fill_ssdt_typec_device().
|
static |
Definition at line 40 of file ec_acpi.c.
References config, dev_find_path(), DEVICE_PATH_USB, NULL, UPC_TYPE_C_USB2_ONLY, UPC_TYPE_C_USB2_SS, and UPC_TYPE_C_USB2_SS_SWITCH.
Referenced by fill_ssdt_typec_device().
const char* google_chromeec_acpi_name | ( | const struct device * | dev | ) |
Definition at line 265 of file ec_acpi.c.
References alloc_find_dev(), device::bus, CONFIG, DEVICE_PATH_GENERIC, ec_fill_dptf_helpers(), ec_ops, fill_ssdt_ps2_keyboard(), fill_ssdt_typec_device(), device_path::generic, generic_path::id, device::ops, device::path, generic_path::subid, and device_path::type.
|
static |
Definition at line 91 of file ec_acpi.c.
Referenced by add_port_location().
|
static |
Definition at line 256 of file ec_acpi.c.
Referenced by google_chromeec_fill_ssdt_generator().
|
static |
Definition at line 91 of file ec_acpi.c.
Referenced by add_port_location(), fill_ssdt_typec_device(), and google_chromeec_get_pd_port_caps().
|
static |
Definition at line 148 of file ec_acpi.c.
Referenced by fill_ssdt_ps2_keyboard().