coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sx9324.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 <string.h>
#include "chip.h"
#include "registers.h"
Include dependency graph for sx9324.c:

Go to the source code of this file.

Macros

#define I2C_SX9324_ACPI_ID   "STH9324"
 
#define I2C_SX9324_CHIP_NAME   "Semtech SX9324"
 
#define REGISTER(NAME)
 

Functions

static void i2c_sx9324_fill_ssdt (const struct device *dev)
 
static const char * i2c_sx9324_acpi_name (const struct device *dev)
 
static void i2c_sx9324_enable (struct device *dev)
 

Variables

static struct device_operations i2c_sx9324_ops
 
struct chip_operations drivers_i2c_sx9324_ops
 

Macro Definition Documentation

◆ I2C_SX9324_ACPI_ID

#define I2C_SX9324_ACPI_ID   "STH9324"

Definition at line 12 of file sx9324.c.

◆ I2C_SX9324_CHIP_NAME

#define I2C_SX9324_CHIP_NAME   "Semtech SX9324"

Definition at line 13 of file sx9324.c.

◆ REGISTER

#define REGISTER (   NAME)
Value:
I2C_SX9324_ACPI_ID "," #NAME, \
config->NAME)
struct acpi_dp * acpi_dp_add_integer(struct acpi_dp *dp, const char *name, uint64_t value)
Definition: device.c:977
enum board_config config
Definition: memory.c:448
#define I2C_SX9324_ACPI_ID
Definition: sx9324.c:12

Definition at line 15 of file sx9324.c.

Function Documentation

◆ i2c_sx9324_acpi_name()

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

Definition at line 71 of file sx9324.c.

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

Here is the call graph for this function:

◆ i2c_sx9324_enable()

static void i2c_sx9324_enable ( struct device dev)
static

Definition at line 86 of file sx9324.c.

◆ i2c_sx9324_fill_ssdt()

Variable Documentation

◆ drivers_i2c_sx9324_ops

struct chip_operations drivers_i2c_sx9324_ops
Initial value:
= {
.enable_dev = i2c_sx9324_enable
}
static void i2c_sx9324_enable(struct device *dev)
Definition: sx9324.c:86

Definition at line 86 of file sx9324.c.

◆ i2c_sx9324_ops

struct device_operations i2c_sx9324_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = i2c_sx9324_acpi_name,
.acpi_fill_ssdt = i2c_sx9324_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 i2c_sx9324_fill_ssdt(const struct device *dev)
Definition: sx9324.c:19
static const char * i2c_sx9324_acpi_name(const struct device *dev)
Definition: sx9324.c:71

Definition at line 71 of file sx9324.c.