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

Go to the source code of this file.

Macros

#define CS42L42_ACPI_NAME   "CRUS"
 
#define CS42L42_ACPI_HID   "10134242"
 

Functions

static void cs42l42_fill_ssdt (const struct device *dev)
 
static const char * cs42l42_acpi_name (const struct device *dev)
 
static void cs42l42_enable (struct device *dev)
 

Variables

static struct device_operations cs42l42_ops
 
struct chip_operations drivers_i2c_cs42l42_ops
 

Macro Definition Documentation

◆ CS42L42_ACPI_HID

#define CS42L42_ACPI_HID   "10134242"

Definition at line 13 of file cs42l42.c.

◆ CS42L42_ACPI_NAME

#define CS42L42_ACPI_NAME   "CRUS"

Definition at line 12 of file cs42l42.c.

Function Documentation

◆ cs42l42_acpi_name()

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

Definition at line 103 of file cs42l42.c.

References CS42L42_ACPI_NAME.

◆ cs42l42_enable()

static void cs42l42_enable ( struct device dev)
static

Definition at line 115 of file cs42l42.c.

References cs42l42_ops, and device::ops.

◆ cs42l42_fill_ssdt()

Variable Documentation

◆ cs42l42_ops

struct device_operations cs42l42_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = cs42l42_acpi_name,
.acpi_fill_ssdt = cs42l42_fill_ssdt,
}
static void cs42l42_fill_ssdt(const struct device *dev)
Definition: cs42l42.c:15
static const char * cs42l42_acpi_name(const struct device *dev)
Definition: cs42l42.c:103
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

Definition at line 103 of file cs42l42.c.

Referenced by cs42l42_enable().

◆ drivers_i2c_cs42l42_ops

struct chip_operations drivers_i2c_cs42l42_ops
Initial value:
= {
.enable_dev = cs42l42_enable
}
static void cs42l42_enable(struct device *dev)
Definition: cs42l42.c:115

Definition at line 115 of file cs42l42.c.

Referenced by audio_codec_device_update().