coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cs35l53.c File Reference
#include <acpi/acpi.h>
#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 cs35l53.c:

Go to the source code of this file.

Macros

#define CS35L53_ACPI_HID   "CSC3541"
 

Functions

static void cs35l53_fill_ssdt (const struct device *dev)
 
static const char * cs35l53_acpi_name (const struct device *dev)
 
static void cs35l53_enable (struct device *dev)
 

Variables

static struct device_operations cs35l53_ops
 
struct chip_operations drivers_i2c_cs35l53_ops
 

Macro Definition Documentation

◆ CS35L53_ACPI_HID

#define CS35L53_ACPI_HID   "CSC3541"

Definition at line 13 of file cs35l53.c.

Function Documentation

◆ cs35l53_acpi_name()

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

Definition at line 120 of file cs35l53.c.

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

Here is the call graph for this function:

◆ cs35l53_enable()

static void cs35l53_enable ( struct device dev)
static

Definition at line 139 of file cs35l53.c.

References cs35l53_ops, and device::ops.

◆ cs35l53_fill_ssdt()

Variable Documentation

◆ cs35l53_ops

struct device_operations cs35l53_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = cs35l53_acpi_name,
.acpi_fill_ssdt = cs35l53_fill_ssdt,
}
static const char * cs35l53_acpi_name(const struct device *dev)
Definition: cs35l53.c:120
static void cs35l53_fill_ssdt(const struct device *dev)
Definition: cs35l53.c:15
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 120 of file cs35l53.c.

Referenced by cs35l53_enable().

◆ drivers_i2c_cs35l53_ops

struct chip_operations drivers_i2c_cs35l53_ops
Initial value:
= {
.enable_dev = cs35l53_enable
}
static void cs35l53_enable(struct device *dev)
Definition: cs35l53.c:139

Definition at line 139 of file cs35l53.c.