1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <intelblocks/cfg.h>
5 #include <drivers/i2c/designware/dw_i2c.h>
6 #include <soc/pci_devs.h>
8 int dw_i2c_soc_devfn_to_bus(unsigned int devfn
)
27 int dw_i2c_soc_bus_to_devfn(unsigned int bus
)
31 return PCH_DEVFN_I2C0
;
33 return PCH_DEVFN_I2C1
;
35 return PCH_DEVFN_I2C2
;
37 return PCH_DEVFN_I2C3
;
39 return PCH_DEVFN_I2C4
;
41 return PCH_DEVFN_I2C5
;