1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * This file is created based on Intel Alder Lake Processor PCH Datasheet
5 * Document number: 621483
9 #include <device/device.h>
10 #include <drivers/i2c/designware/dw_i2c.h>
11 #include <soc/pci_devs.h>
13 int dw_i2c_soc_devfn_to_bus(unsigned int devfn
)
36 int dw_i2c_soc_bus_to_devfn(unsigned int bus
)
40 return PCH_DEVFN_I2C0
;
42 return PCH_DEVFN_I2C1
;
44 return PCH_DEVFN_I2C2
;
46 return PCH_DEVFN_I2C3
;
48 return PCH_DEVFN_I2C4
;
50 return PCH_DEVFN_I2C5
;
52 return PCH_DEVFN_I2C6
;
54 return PCH_DEVFN_I2C7
;