i2c/dw: add missing PCI device information
The PCI device information for both i2c ports is missing, resulting in broken PCI enumeration. Fix this by adding the missing PCI device information. Change-Id: I5d1739cc994491c34a2a938166a9e56a082ed32e Signed-off-by: Ido Yariv <idox.yariv@intel.com> Signed-off-by: Anas Nashif <anas.nashif@intel.com> Signed-off-by: Ido Yariv <ido@wizery.com>
This commit is contained in:
parent
e77df3fa30
commit
77e7b0f66d
1 changed files with 20 additions and 0 deletions
|
@ -710,6 +710,16 @@ struct i2c_dw_rom_config i2c_config_dw_0 = {
|
||||||
#ifdef CONFIG_GPIO_DW_0_IRQ_SHARED
|
#ifdef CONFIG_GPIO_DW_0_IRQ_SHARED
|
||||||
.shared_irq_dev_name = CONFIG_I2C_DW_0_IRQ_SHARED_NAME,
|
.shared_irq_dev_name = CONFIG_I2C_DW_0_IRQ_SHARED_NAME,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_PCI
|
||||||
|
.pci_dev.class = CONFIG_I2C_DW_CLASS,
|
||||||
|
.pci_dev.bus = CONFIG_I2C_DW_0_BUS,
|
||||||
|
.pci_dev.dev = CONFIG_I2C_DW_0_DEV,
|
||||||
|
.pci_dev.vendor_id = CONFIG_I2C_DW_VENDOR_ID,
|
||||||
|
.pci_dev.device_id = CONFIG_I2C_DW_DEVICE_ID,
|
||||||
|
.pci_dev.function = CONFIG_I2C_DW_0_FUNCTION,
|
||||||
|
.pci_dev.bar = CONFIG_I2C_DW_0_BAR,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct i2c_dw_dev_config i2c_0_runtime = {
|
struct i2c_dw_dev_config i2c_0_runtime = {
|
||||||
|
@ -762,6 +772,16 @@ struct i2c_dw_rom_config i2c_config_dw_1 = {
|
||||||
.base_address = CONFIG_I2C_DW_1_BASE,
|
.base_address = CONFIG_I2C_DW_1_BASE,
|
||||||
.irq_num = CONFIG_I2C_DW_1_IRQ,
|
.irq_num = CONFIG_I2C_DW_1_IRQ,
|
||||||
.config_func = i2c_config_1,
|
.config_func = i2c_config_1,
|
||||||
|
|
||||||
|
#if CONFIG_PCI
|
||||||
|
.pci_dev.class = CONFIG_I2C_DW_CLASS,
|
||||||
|
.pci_dev.bus = CONFIG_I2C_DW_1_BUS,
|
||||||
|
.pci_dev.dev = CONFIG_I2C_DW_1_DEV,
|
||||||
|
.pci_dev.vendor_id = CONFIG_I2C_DW_VENDOR_ID,
|
||||||
|
.pci_dev.device_id = CONFIG_I2C_DW_DEVICE_ID,
|
||||||
|
.pci_dev.function = CONFIG_I2C_DW_1_FUNCTION,
|
||||||
|
.pci_dev.bar = CONFIG_I2C_DW_1_BAR,
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct i2c_dw_dev_config i2c_1_runtime = {
|
struct i2c_dw_dev_config i2c_1_runtime = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue