12 #include <soc/iomap.h>
15 #include <soc/device_nvs.h>
16 #include <soc/pattrs.h>
17 #include <soc/pci_devs.h>
19 #include <soc/ramstage.h>
26 #define FIRMWARE_PHYS_BASE (512 << 20)
27 #define FIRMWARE_PHYS_LENGTH (1 << 20)
28 #define FIRMWARE_PCI_REG_BASE 0xa8
29 #define FIRMWARE_PCI_REG_LENGTH 0xac
30 #define FIRMWARE_REG_BASE_C0 0x144000
31 #define FIRMWARE_REG_LENGTH_C0 (FIRMWARE_REG_BASE_C0 + 4)
77 switch (
config->lpe_codec_clk_freq) {
96 if (
config->lpe_codec_clk_num < 0 ||
config->lpe_codec_clk_num > 5) {
104 clk_reg +=
config->lpe_codec_clk_num;
142 if (
config->lpe_acpi_mode)
163 static const struct pci_driver southcluster
__pci_driver = {
void * acpi_get_device_nvs(void)
static void write32(void *addr, uint32_t val)
static uint32_t read32(const void *addr)
#define LPE_PCICFGCTR1_ACPI_INT_EN
#define LPE_PCICFGCTR1_PCI_CFG_DIS
static const struct pattrs * pattrs_get(void)
static void lpe_enable_acpi_mode(struct device *dev)
#define FIRMWARE_PHYS_BASE
#define FIRMWARE_REG_BASE_C0
static const struct device_operations device_ops
#define FIRMWARE_PHYS_LENGTH
static const struct pci_driver southcluster __pci_driver
#define FIRMWARE_PCI_REG_LENGTH
static void setup_codec_clock(struct device *dev)
static void assign_device_nvs(struct device *dev, u32 *field, unsigned int index)
static void lpe_read_resources(struct device *dev)
#define FIRMWARE_PCI_REG_BASE
#define FIRMWARE_REG_LENGTH_C0
static void lpe_init(struct device *dev)
static void lpe_stash_firmware_info(struct device *dev)
#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.
struct resource * find_resource(const struct device *dev, unsigned int index)
Return an existing resource structure for a given index.
static DEVTREE_CONST void * config_of(const struct device *dev)
#define reserved_ram_resource(dev, idx, basek, sizek)
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
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)
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)