coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
max98390.c File Reference
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
#include <console/console.h>
#include <device/i2c.h>
#include <device/device.h>
#include <device/path.h>
#include <stdint.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "chip.h"
Include dependency graph for max98390.c:

Go to the source code of this file.

Macros

#define MAX98390_ACPI_HID   "MX98390"
 
#define MAX98390_DP_INT(key, val)   acpi_dp_add_integer(dp, "maxim," key, (val))
 

Functions

static void max98390_fill_ssdt (const struct device *dev)
 
static const char * max98390_acpi_name (const struct device *dev)
 
static void max98390_enable (struct device *dev)
 

Variables

static struct device_operations max98390_ops
 
struct chip_operations drivers_i2c_max98390_ops
 

Macro Definition Documentation

◆ MAX98390_ACPI_HID

#define MAX98390_ACPI_HID   "MX98390"

Definition at line 13 of file max98390.c.

◆ MAX98390_DP_INT

#define MAX98390_DP_INT (   key,
  val 
)    acpi_dp_add_integer(dp, "maxim," key, (val))

Definition at line 15 of file max98390.c.

Function Documentation

◆ max98390_acpi_name()

static const char* max98390_acpi_name ( const struct device dev)
static

Definition at line 97 of file max98390.c.

References device::chip_info, config, i2c_path::device, device_path::i2c, name, device::path, and snprintf().

Here is the call graph for this function:

◆ max98390_enable()

static void max98390_enable ( struct device dev)
static

Definition at line 116 of file max98390.c.

◆ max98390_fill_ssdt()

Variable Documentation

◆ drivers_i2c_max98390_ops

struct chip_operations drivers_i2c_max98390_ops
Initial value:
= {
.enable_dev = max98390_enable
}
static void max98390_enable(struct device *dev)
Definition: max98390.c:116

Definition at line 116 of file max98390.c.

◆ max98390_ops

struct device_operations max98390_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = max98390_acpi_name,
.acpi_fill_ssdt = max98390_fill_ssdt,
}
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void max98390_fill_ssdt(const struct device *dev)
Definition: max98390.c:17
static const char * max98390_acpi_name(const struct device *dev)
Definition: max98390.c:97

Definition at line 97 of file max98390.c.