#include <stdint.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/iosf.h>
#include <soc/nvs.h>
#include <soc/device_nvs.h>
#include <soc/pci_devs.h>
#include <soc/ramstage.h>
#include "chip.h"
Go to the source code of this file.
◆ CASE_I2C
#define CASE_I2C |
( |
|
name_ | ) |
case PCI_DEVFN(name_ ## _DEV, name_ ## _FUNC) |
◆ SET_IOSF_REG
#define SET_IOSF_REG |
( |
|
name_ | ) |
|
Value: case PCI_DEVFN(name_ ## _DEV, name_ ## _FUNC): \
do { \
*iosf_reg = LPSS_ ## name_ ## _CTL; \
*nvs_index = LPSS_NVS_ ## name_; \
} while (0)
#define PCI_DEVFN(slot, func)
Definition at line 62 of file lpss.c.
◆ dev_ctl_reg()
static void dev_ctl_reg |
( |
struct device * |
dev, |
|
|
int * |
iosf_reg, |
|
|
int * |
nvs_index |
|
) |
| |
|
static |
Definition at line 69 of file lpss.c.
References reg_script::dev, pci_path::devfn, I2C1, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7, device::path, device_path::pci, and SET_IOSF_REG.
◆ dev_enable_acpi_mode()
static void dev_enable_acpi_mode |
( |
struct device * |
dev, |
|
|
int |
iosf_reg, |
|
|
int |
nvs_index |
|
) |
| |
|
static |
Definition at line 19 of file lpss.c.
References acpi_get_device_nvs(), resource::base, IOSF_PORT_LPSS, device_nvs::lpss_bar0, device_nvs::lpss_bar1, LPSS_CTL_ACPI_INT_EN, LPSS_CTL_PCI_CFG_DIS, device_nvs::lpss_en, ops, PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, PCI_COMMAND, PCI_COMMAND_INT_DISABLE, PCI_COMMAND_MASTER, PCI_COMMAND_MEMORY, probe_resource(), REG_PCI_OR16, REG_SCRIPT_END, and reg_script_run_on_dev().
◆ dev_enable_snoop_and_pm()
static void dev_enable_snoop_and_pm |
( |
struct device * |
dev, |
|
|
int |
iosf_reg |
|
) |
| |
|
static |
◆ i2c_disable_resets()
static void i2c_disable_resets |
( |
struct device * |
dev | ) |
|
|
static |
Definition at line 108 of file lpss.c.
References BIOS_DEBUG, CASE_I2C, reg_script::dev, pci_path::devfn, I2C1, I2C2, I2C3, I2C4, I2C5, I2C6, I2C7, ops, device::path, device_path::pci, PCI_BASE_ADDRESS_0, printk, REG_RES_WRITE32, REG_SCRIPT_END, and reg_script_run_on_dev().
◆ lpss_init()
◆ __pci_driver
const struct pci_driver southcluster __pci_driver |
|
static |
Initial value:= {
}
static struct device_operations device_ops
static const unsigned short pci_device_ids[]
Definition at line 160 of file lpss.c.
◆ device_ops
Initial value:= {
}
static void lpss_init(struct device *dev)
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
void pci_dev_set_resources(struct device *dev)
struct pci_operations soc_pci_ops
Definition at line 132 of file lpss.c.
◆ pci_device_ids
Initial value:
Definition at line 160 of file lpss.c.