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

Go to the source code of this file.

Macros

#define RT5663_ACPI_NAME   "RT53"
 
#define RT5663_ACPI_HID   "10EC5663"
 
#define RT5663_DP_INT(key, val)    acpi_dp_add_integer(dp, "realtek," key, (val))
 

Functions

static void rt5663_fill_ssdt (const struct device *dev)
 
static const char * rt5663_acpi_name (const struct device *dev)
 
static void rt5663_enable (struct device *dev)
 

Variables

static struct device_operations rt5663_ops
 
struct chip_operations drivers_i2c_rt5663_ops
 

Macro Definition Documentation

◆ RT5663_ACPI_HID

#define RT5663_ACPI_HID   "10EC5663"

Definition at line 12 of file rt5663.c.

◆ RT5663_ACPI_NAME

#define RT5663_ACPI_NAME   "RT53"

Definition at line 11 of file rt5663.c.

◆ RT5663_DP_INT

#define RT5663_DP_INT (   key,
  val 
)     acpi_dp_add_integer(dp, "realtek," key, (val))

Definition at line 14 of file rt5663.c.

Function Documentation

◆ rt5663_acpi_name()

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

Definition at line 69 of file rt5663.c.

References RT5663_ACPI_NAME.

◆ rt5663_enable()

static void rt5663_enable ( struct device dev)
static

Definition at line 81 of file rt5663.c.

◆ rt5663_fill_ssdt()

Variable Documentation

◆ drivers_i2c_rt5663_ops

struct chip_operations drivers_i2c_rt5663_ops
Initial value:
= {
.enable_dev = rt5663_enable
}
static void rt5663_enable(struct device *dev)
Definition: rt5663.c:81

Definition at line 81 of file rt5663.c.

◆ rt5663_ops

struct device_operations rt5663_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = rt5663_acpi_name,
.acpi_fill_ssdt = rt5663_fill_ssdt,
}
static const char * rt5663_acpi_name(const struct device *dev)
Definition: rt5663.c:69
static void rt5663_fill_ssdt(const struct device *dev)
Definition: rt5663.c:17
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 69 of file rt5663.c.