11 #include <soc/pci_devs.h>
13 #include <soc/ramstage.h>
102 if (
config->clkreq_enable)
126 if (rp_config != 0x0)
131 if (rp_config == 0x3)
136 if (rp_config >= 0x2)
146 u8 device_not_present = 1;
162 device_not_present = 0;
168 return device_not_present;
204 if (
config->pcie_wake_enable)
219 static const struct reg_script wait_for_link_active[] = {
245 static const struct pci_driver pcie_root_ports
__pci_driver = {
#define printk(level,...)
static DEVTREE_CONST void * config_of(const struct device *dev)
static __always_inline void pci_write_config32(const struct device *dev, u16 reg, u32 val)
static __always_inline u32 pci_read_config32(const struct device *dev, u16 reg)
static __always_inline u8 pci_read_config8(const struct device *dev, u16 reg)
static __always_inline void pci_write_config8(const struct device *dev, u16 reg, u8 val)
#define PCIE_ROOT_PORT_COUNT
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void pci_bus_enable_resources(struct device *dev)
void pci_bus_read_resources(struct device *dev)
void do_pci_scan_bridge(struct device *dev, void(*do_scan_bus)(struct bus *bus, unsigned int min_devfn, unsigned int max_devfn))
Scan a PCI bridge and the buses behind the bridge.
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
void pciexp_scan_bus(struct bus *bus, unsigned int min_devfn, unsigned int max_devfn)
#define REG_PCI_OR32(reg_, value_)
#define REG_PCI_RMW16(reg_, mask_, value_)
#define REG_SCRIPT_NEXT(next_)
void reg_script_run_on_dev(struct device *dev, const struct reg_script *step)
#define REG_PCI_OR16(reg_, value_)
#define REG_PCI_RMW32(reg_, mask_, value_)
#define REG_PCI_WRITE32(reg_, value_)
#define REG_PCI_POLL32(reg_, mask_, value_, timeout_)
void southcluster_enable_dev(struct device *dev)
void smm_southcluster_save_param(int param, uint32_t data)
@ SMM_SAVE_PARAM_PCIE_WAKE_ENABLE
static struct device_operations device_ops
static const struct reg_script init_static_after_exit_latency[]
static const struct reg_script no_dev_behind_port[]
static void byt_pcie_enable(struct device *dev)
static int is_first_port(struct device *dev)
static void check_device_present(struct device *dev)
static const struct reg_script init_static_before_exit_latency[]
static int root_port_offset(struct device *dev)
static const struct pci_driver pcie_root_ports __pci_driver
static u8 all_ports_no_dev_present(struct device *dev)
static void byt_pcie_init(struct device *dev)
static void check_port_enabled(struct device *dev)
static const unsigned short pci_device_ids[]
static uint32_t strpfusecfg
static void byt_pciexp_scan_bridge(struct device *dev)
void(* read_resources)(struct device *dev)