13 #include <soc/iomap.h>
14 #include <soc/pci_devs.h>
28 return &common_config->
i2c[
bus];
37 #if !ENV_PAYLOAD_LOADER
142 static void dw_i2c_device_init(
struct device *dev)
171 .init = dw_i2c_device_init,
172 #if CONFIG(HAVE_ACPI_TABLES)
static const struct pci_driver asmedia_noaspm __pci_driver
static const unsigned short pci_device_ids[]
@ CB_SUCCESS
Call completed successfully.
#define printk(level,...)
DEVTREE_CONST struct device * pcidev_path_on_root(pci_devfn_t devfn)
struct resource * probe_resource(const struct device *dev, unsigned int index)
See if a resource structure already exists for a given index.
void dw_i2c_dev_init(struct device *dev)
void dw_i2c_acpi_fill_ssdt(const struct device *dev)
enum cb_err dw_i2c_init(unsigned int bus, const struct dw_i2c_bus_config *bcfg)
const struct i2c_bus_operations dw_i2c_bus_ops
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 void pci_write_config16(const struct device *dev, u16 reg, u16 val)
#define EARLY_I2C_BASE(x)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
void lpss_set_power_state(pci_devfn_t devfn, enum lpss_pwr_state state)
void lpss_reset_release(uintptr_t base)
bool lpss_is_controller_in_reset(uintptr_t base)
#define PCI_COMMAND_MASTER
#define PCI_COMMAND_MEMORY
#define PCI_BASE_ADDRESS_0
void pci_dev_enable_resources(struct device *dev)
void pci_dev_read_resources(struct device *dev)
struct pci_operations pci_dev_ops_pci
Default device operation for PCI devices.
void pci_dev_set_resources(struct device *dev)
#define PCI_DID_INTEL_ADP_P_I2C2
#define PCI_DID_INTEL_GLK_I2C5
#define PCI_DID_INTEL_CMP_I2C1
#define PCI_DID_INTEL_TGP_I2C5
#define PCI_DID_INTEL_JSP_I2C5
#define PCI_DID_INTEL_APL_I2C7
#define PCI_DID_INTEL_MTL_I2C2
#define PCI_DID_INTEL_ADP_S_I2C3
#define PCI_DID_INTEL_ICP_I2C1
#define PCI_DID_INTEL_ADP_M_N_I2C0
#define PCI_DID_INTEL_TGP_H_I2C2
#define PCI_DID_INTEL_CMP_I2C5
#define PCI_DID_INTEL_APL_I2C1
#define PCI_DID_INTEL_APL_I2C5
#define PCI_DID_INTEL_TGP_H_I2C5
#define PCI_DID_INTEL_TGP_H_I2C1
#define PCI_DID_INTEL_MTL_I2C5
#define PCI_DID_INTEL_TGP_H_I2C3
#define PCI_DID_INTEL_TGP_I2C3
#define PCI_DID_INTEL_ICP_I2C4
#define PCI_DID_INTEL_CNL_I2C2
#define PCI_DID_INTEL_ADP_P_I2C7
#define PCI_DID_INTEL_CMP_I2C0
#define PCI_DID_INTEL_GLK_I2C6
#define PCI_DID_INTEL_MCC_I2C2
#define PCI_DID_INTEL_GLK_I2C4
#define PCI_DID_INTEL_SPT_I2C3
#define PCI_DID_INTEL_MTL_I2C3
#define PCI_DID_INTEL_UPT_H_I2C0
#define PCI_DID_INTEL_ADP_S_I2C0
#define PCI_DID_INTEL_CMP_I2C3
#define PCI_DID_INTEL_MTL_I2C1
#define PCI_DID_INTEL_MTL_I2C0
#define PCI_DID_INTEL_ADP_P_I2C5
#define PCI_DID_INTEL_MCC_I2C4
#define PCI_DID_INTEL_TGP_H_I2C4
#define PCI_DID_INTEL_TGP_H_I2C6
#define PCI_DID_INTEL_CNP_H_I2C2
#define PCI_DID_INTEL_JSP_I2C1
#define PCI_DID_INTEL_ADP_P_I2C0
#define PCI_DID_INTEL_ICP_I2C2
#define PCI_DID_INTEL_UPT_H_I2C1
#define PCI_DID_INTEL_ADP_M_N_I2C1
#define PCI_DID_INTEL_CNP_H_I2C3
#define PCI_DID_INTEL_JSP_I2C3
#define PCI_DID_INTEL_ADP_P_I2C3
#define PCI_DID_INTEL_ADP_M_N_I2C3
#define PCI_DID_INTEL_MCC_I2C6
#define PCI_DID_INTEL_TGP_I2C1
#define PCI_DID_INTEL_MCC_I2C5
#define PCI_DID_INTEL_CMP_H_I2C1
#define PCI_DID_INTEL_APL_I2C6
#define PCI_DID_INTEL_CNL_I2C4
#define PCI_DID_INTEL_UPT_H_I2C2
#define PCI_DID_INTEL_SPT_I2C0
#define PCI_DID_INTEL_MCC_I2C0
#define PCI_DID_INTEL_ADP_M_N_I2C4
#define PCI_DID_INTEL_MCC_I2C7
#define PCI_DID_INTEL_TGP_I2C6
#define PCI_DID_INTEL_ADP_P_I2C1
#define PCI_DID_INTEL_TGP_I2C7
#define PCI_DID_INTEL_ICP_I2C0
#define PCI_DID_INTEL_ADP_M_N_I2C2
#define PCI_DID_INTEL_CNL_I2C1
#define PCI_DID_INTEL_UPT_H_I2C3
#define PCI_DID_INTEL_GLK_I2C3
#define PCI_DID_INTEL_APL_I2C3
#define PCI_DID_INTEL_CNP_H_I2C1
#define PCI_DID_INTEL_ICP_I2C5
#define PCI_DID_INTEL_CNL_I2C0
#define PCI_DID_INTEL_ADP_S_I2C1
#define PCI_DID_INTEL_CMP_I2C4
#define PCI_DID_INTEL_SPT_I2C5
#define PCI_DID_INTEL_APL_I2C2
#define PCI_DID_INTEL_CMP_H_I2C2
#define PCI_DID_INTEL_SPT_I2C1
#define PCI_DID_INTEL_CNL_I2C3
#define PCI_DID_INTEL_SPT_I2C2
#define PCI_DID_INTEL_JSP_I2C0
#define PCI_DID_INTEL_ADP_S_I2C2
#define PCI_DID_INTEL_CMP_H_I2C0
#define PCI_DID_INTEL_GLK_I2C7
#define PCI_DID_INTEL_TGP_I2C0
#define PCI_DID_INTEL_ICP_I2C3
#define PCI_DID_INTEL_CNL_I2C5
#define PCI_DID_INTEL_GLK_I2C1
#define PCI_DID_INTEL_JSP_I2C2
#define PCI_DID_INTEL_MTL_I2C4
#define PCI_DID_INTEL_SPT_I2C4
#define PCI_DID_INTEL_GLK_I2C2
#define PCI_DID_INTEL_MCC_I2C3
#define PCI_DID_INTEL_ADP_P_I2C4
#define PCI_DID_INTEL_MCC_I2C1
#define PCI_DID_INTEL_CMP_H_I2C3
#define PCI_DID_INTEL_JSP_I2C4
#define PCI_DID_INTEL_TGP_I2C4
#define PCI_DID_INTEL_GLK_I2C0
#define PCI_DID_INTEL_ADP_M_N_I2C5
#define PCI_DID_INTEL_CNP_H_I2C0
#define PCI_DID_INTEL_ADP_S_I2C5
#define PCI_DID_INTEL_CMP_I2C2
#define PCI_DID_INTEL_TGP_I2C2
#define PCI_DID_INTEL_TGP_H_I2C0
#define PCI_DID_INTEL_ADP_P_I2C6
#define PCI_DID_INTEL_ADP_S_I2C4
#define PCI_DID_INTEL_APL_I2C4
#define PCI_DID_INTEL_APL_I2C0
#define PCI_DEV(SEGBUS, DEV, FN)
void scan_static_bus(struct device *bus)
uintptr_t dw_i2c_base_address(unsigned int bus)
int dw_i2c_soc_dev_to_bus(const struct device *dev)
const struct dw_i2c_bus_config * dw_i2c_get_soc_cfg(unsigned int bus)
int dw_i2c_soc_bus_to_devfn(unsigned int bus)
int dw_i2c_soc_devfn_to_bus(unsigned int devfn)
const struct soc_intel_common_config * chip_get_common_soc_structure(void)
static int lpss_i2c_early_init_bus(unsigned int bus)
uintptr_t dw_i2c_get_soc_early_base(unsigned int bus)
void(* read_resources)(struct device *dev)
struct dw_i2c_bus_config i2c[CONFIG_SOC_INTEL_I2C_DEV_MAX]