10 #include <vendorcode/google/chromeos/chromeos.h>
13 #define MAX98390_ACPI_HID "MX98390"
15 #define MAX98390_DP_INT(key, val) acpi_dp_add_integer(dp, "maxim," key, (val))
29 char dsm_name[80] = {};
49 if (
CONFIG(CHROMEOS_DSM_CALIB)) {
50 if (get_dsm_calibration_from_key(
config->r0_calib_key, &r0_value)
51 || get_dsm_calibration_from_key(
config->temperature_calib_key,
54 "Failed to get dsm_calib parameters from VPD"
55 " with key %s and %s\n",
65 if (
CONFIG(CHROMEOS_DSM_PARAM_FILE_NAME)) {
66 if (
config->dsm_param_file_name) {
70 size_t chars =
snprintf(dsm_name,
sizeof(dsm_name),
"%s_%s_%s.bin",
71 config->dsm_param_file_name, CONFIG_MAINBOARD_VENDOR,
72 CONFIG_MAINBOARD_PART_NUMBER);
74 if (chars >=
sizeof(dsm_name))
const char * acpi_device_path(const struct device *dev)
struct acpi_dp * acpi_dp_add_string(struct acpi_dp *dp, const char *name, const char *string)
struct acpi_dp * acpi_dp_add_integer(struct acpi_dp *dp, const char *name, uint64_t value)
void acpi_device_write_i2c(const struct acpi_i2c *i2c)
void acpi_dp_write(struct acpi_dp *table)
int acpi_device_status(const struct device *dev)
const char * acpi_device_name(const struct device *dev)
struct acpi_dp * acpi_dp_new_table(const char *name)
const char * acpi_device_scope(const struct device *dev)
void acpigen_pop_len(void)
void acpigen_write_scope(const char *name)
void acpigen_write_resourcetemplate_footer(void)
void acpigen_write_name_integer(const char *name, uint64_t val)
void acpigen_write_STA(uint8_t status)
void acpigen_write_resourcetemplate_header(void)
void acpigen_write_device(const char *name)
void acpigen_write_name(const char *name)
void acpigen_write_name_string(const char *name, const char *string)
#define printk(level,...)
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
static void noop_set_resources(struct device *dev)
#define BIOS_INFO
BIOS_INFO - Expected events.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
static void max98390_fill_ssdt(const struct device *dev)
struct chip_operations drivers_i2c_max98390_ops
#define MAX98390_DP_INT(key, val)
#define MAX98390_ACPI_HID
static const char * max98390_acpi_name(const struct device *dev)
static void max98390_enable(struct device *dev)
static struct device_operations max98390_ops
unsigned long long uint64_t
void(* read_resources)(struct device *dev)
struct chip_operations * chip_ops
struct device_operations * ops
DEVTREE_CONST void * chip_info
int snprintf(char *buf, size_t size, const char *fmt,...)
Note: This file is only for POSIX compatibility, and is meant to be chain-included via string....