coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hda.c File Reference
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_def.h>
#include <device/pci_ids.h>
#include <reg_script.h>
#include <soc/intel/common/hda_verb.h>
#include <soc/iomap.h>
#include <soc/iosf.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
Include dependency graph for hda.c:

Go to the source code of this file.

Functions

static void hda_init (struct device *dev)
 

Variables

static const struct reg_script init_ops []
 
static const uint32_t hdmi_codec_verb_table []
 
static const struct device_operations device_ops
 
static const struct pci_driver southcluster __pci_driver
 

Function Documentation

◆ hda_init()

static void hda_init ( struct device dev)
static

Definition at line 58 of file hda.c.

Variable Documentation

◆ __pci_driver

const struct pci_driver southcluster __pci_driver
static
Initial value:
= {
.ops = &device_ops,
.vendor = PCI_VID_INTEL,
.device = HDA_DEVID,
}
#define PCI_VID_INTEL
Definition: pci_ids.h:2157
static const struct device_operations device_ops
Definition: hda.c:86
#define HDA_DEVID
Definition: pci_devs.h:129

Definition at line 58 of file hda.c.

◆ device_ops

const struct device_operations device_ops
static
Initial value:
= {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = hda_init,
.ops_pci = &soc_pci_ops,
}
void pci_dev_enable_resources(struct device *dev)
Definition: pci_device.c:721
void pci_dev_read_resources(struct device *dev)
Definition: pci_device.c:534
void pci_dev_set_resources(struct device *dev)
Definition: pci_device.c:691
struct pci_operations soc_pci_ops
Definition: chip.c:51
static void hda_init(struct device *dev)
Definition: hda.c:58

Definition at line 58 of file hda.c.

◆ hdmi_codec_verb_table

const uint32_t hdmi_codec_verb_table[]
static
Initial value:
= {
0x80862882,
0x00000000,
0x00000003,
0x20471c10,
0x20471d00,
0x20471e56,
0x20471f18,
0x20571c20,
0x20571d00,
0x20571e56,
0x20571f18,
0x20671c30,
0x20671d00,
0x20671e56,
0x20671f58,
}

Definition at line 33 of file hda.c.

◆ init_ops

const struct reg_script init_ops[]
static
Initial value:
= {
REG_PCI_OR16(0x78, 1 << 11),
REG_PCI_OR32(0xc4, 1 << 1),
REG_PCI_OR8(0x43, (1 << 3) | (1 << 6)),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_PWRGT_CONTROL, 0xc0),
REG_IOSF_WRITE(IOSF_PORT_PMC, PUNIT_PWRGT_CONTROL, 0x00),
REG_PCI_OR32(0xc0, 0x7 << 21),
REG_PCI_OR32(0xc4, (0x3 << 26) | (1 << 13) | (1 << 10)),
REG_PCI_WRITE32(0xc8, 0x82a30000),
REG_PCI_RMW32(0xd0, ~(1 << 31), 0x0),
REG_PCI_RMW8(0x4d, ~(1 << 7), 0),
}
#define IOSF_PORT_PMC
Definition: iosf.h:93
#define PUNIT_PWRGT_CONTROL
Definition: iosf.h:236
#define REG_PCI_OR8(reg_, value_)
Definition: reg_script.h:183
#define REG_PCI_OR32(reg_, value_)
Definition: reg_script.h:187
#define REG_PCI_RMW8(reg_, mask_, value_)
Definition: reg_script.h:171
#define REG_PCI_OR16(reg_, value_)
Definition: reg_script.h:185
#define REG_PCI_RMW32(reg_, mask_, value_)
Definition: reg_script.h:175
#define REG_PCI_WRITE32(reg_, value_)
Definition: reg_script.h:169
#define REG_SCRIPT_END
Definition: reg_script.h:427

Definition at line 1 of file hda.c.