![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <device/pci_ops.h>
#include <acpi/acpi_gnvs.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <reg_script.h>
#include <soc/iomap.h>
#include <soc/iosf.h>
#include <soc/lpc.h>
#include <soc/device_nvs.h>
#include <soc/pattrs.h>
#include <soc/pci_devs.h>
#include <soc/pm.h>
#include <soc/ramstage.h>
#include "chip.h"
Go to the source code of this file.
Macros | |
#define | FIRMWARE_PHYS_BASE (512 << 20) |
#define | FIRMWARE_PHYS_LENGTH (1 << 20) |
#define | FIRMWARE_PCI_REG_BASE 0xa8 |
#define | FIRMWARE_PCI_REG_LENGTH 0xac |
#define | FIRMWARE_REG_BASE_C0 0x144000 |
#define | FIRMWARE_REG_LENGTH_C0 (FIRMWARE_REG_BASE_C0 + 4) |
Functions | |
static void | assign_device_nvs (struct device *dev, u32 *field, unsigned int index) |
static void | lpe_enable_acpi_mode (struct device *dev) |
static void | setup_codec_clock (struct device *dev) |
static void | lpe_stash_firmware_info (struct device *dev) |
static void | lpe_init (struct device *dev) |
static void | lpe_read_resources (struct device *dev) |
Variables | |
static const struct device_operations | device_ops |
static const struct pci_driver southcluster | __pci_driver |
#define FIRMWARE_REG_LENGTH_C0 (FIRMWARE_REG_BASE_C0 + 4) |
Definition at line 33 of file lpe.c.
References resource::base, resource::index, and probe_resource().
Referenced by lpe_enable_acpi_mode().
Definition at line 42 of file lpe.c.
References acpi_get_device_nvs(), assign_device_nvs(), FIRMWARE_PCI_REG_BASE, IOSF_PORT_0x58, device_nvs::lpe_bar0, device_nvs::lpe_bar1, device_nvs::lpe_en, device_nvs::lpe_fw, LPE_PCICFGCTR1, LPE_PCICFGCTR1_ACPI_INT_EN, LPE_PCICFGCTR1_PCI_CFG_DIS, ops, PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, PCI_COMMAND, PCI_COMMAND_INT_DISABLE, PCI_COMMAND_MASTER, PCI_COMMAND_MEMORY, REG_PCI_OR16, REG_SCRIPT_END, and reg_script_run_on_dev().
Referenced by lpe_init().
Definition at line 135 of file lpe.c.
References config, config_of(), lpe_enable_acpi_mode(), lpe_stash_firmware_info(), and setup_codec_clock().
Definition at line 109 of file lpe.c.
References resource::base, BIOS_DEBUG, find_resource(), FIRMWARE_PCI_REG_BASE, FIRMWARE_PCI_REG_LENGTH, FIRMWARE_REG_BASE_C0, FIRMWARE_REG_LENGTH_C0, NULL, pattrs_get(), PCI_BASE_ADDRESS_0, pci_write_config32(), printk, probe_resource(), resource::size, STEP_C0, pattrs::stepping, and write32().
Referenced by lpe_init().
Definition at line 69 of file lpe.c.
References BIOS_DEBUG, CLK_CTL_ON, CLK_FREQ_19P2MHZ, CLK_FREQ_25MHZ, config, config_of(), PLT_CLK_CTL_0, PMC_BASE_ADDRESS, printk, read32(), and write32().
Referenced by lpe_init().
|
static |
|
static |