13 #include <soc/device_nvs.h>
14 #include <soc/pci_devs.h>
15 #include <soc/ramstage.h>
44 dev_nvs->
lpss_en[nvs_index] = 1;
62 #define SET_IOSF_REG(name_) \
63 case PCI_DEVFN(name_ ## _DEV, name_ ## _FUNC): \
65 *iosf_reg = LPSS_ ## name_ ## _CTL; \
66 *nvs_index = LPSS_NVS_ ## name_; \
106 #define CASE_I2C(name_) case PCI_DEVFN(name_ ## _DEV, name_ ## _FUNC)
135 int iosf_reg, nvs_index;
148 if (
config->lpss_acpi_mode)
178 static const struct pci_driver southcluster
__pci_driver = {
void * acpi_get_device_nvs(void)
#define LPSS_CTL_PCI_CFG_DIS
#define LPSS_CTL_ACPI_INT_EN
#define LPSS_CTL_PM_CAP_PRSNT
static struct device_operations device_ops
static void dev_ctl_reg(struct device *dev, int *iosf_reg, int *nvs_index)
static void lpss_init(struct device *dev)
static const struct pci_driver southcluster __pci_driver
static const unsigned short pci_device_ids[]
static void i2c_disable_resets(struct device *dev)
#define SET_IOSF_REG(name_)
static void dev_enable_snoop_and_pm(struct device *dev, int iosf_reg)
static void dev_enable_acpi_mode(struct device *dev, int iosf_reg, int nvs_index)
#define printk(level,...)
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
static DEVTREE_CONST void * config_of(const struct device *dev)
static struct device_operations ops
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define PCI_COMMAND_MASTER
#define PCI_COMMAND_MEMORY
#define PCI_COMMAND_INT_DISABLE
#define PCI_BASE_ADDRESS_0
#define PCI_BASE_ADDRESS_1
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
void pci_dev_set_resources(struct device *dev)
#define REG_RES_WRITE32(bar_, reg_, value_)
void reg_script_run_on_dev(struct device *dev, const struct reg_script *step)
#define REG_PCI_OR16(reg_, value_)
struct pci_operations soc_pci_ops
void(* read_resources)(struct device *dev)