1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/atomic.h>
3 #include <linux/clk.h>
4 #include <linux/delay.h>
5 #include <linux/device.h>
6 #include <linux/i2c.h>
7 #include <linux/i2c-smbus.h>
8 #include <linux/io.h>
9 #include <linux/kernel.h>
10 
11 #define PASEMI_HW_REV_PCI -1
12 
13 struct pasemi_smbus {
14 	struct device		*dev;
15 	struct i2c_adapter	 adapter;
16 	void __iomem		*ioaddr;
17 	unsigned int		 clk_div;
18 	int			 hw_rev;
19 };
20 
21 int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
22