2021-10-09 00:35:27 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#include <linux/atomic.h>
|
|
|
|
#include <linux/clk.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/device.h>
|
|
|
|
#include <linux/i2c.h>
|
|
|
|
#include <linux/i2c-smbus.h>
|
|
|
|
#include <linux/io.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
|
2021-10-09 00:35:32 +08:00
|
|
|
#define PASEMI_HW_REV_PCI -1
|
|
|
|
|
2021-10-09 00:35:27 +08:00
|
|
|
struct pasemi_smbus {
|
|
|
|
struct device *dev;
|
|
|
|
struct i2c_adapter adapter;
|
|
|
|
void __iomem *ioaddr;
|
2021-10-09 00:35:29 +08:00
|
|
|
unsigned int clk_div;
|
2021-10-09 00:35:32 +08:00
|
|
|
int hw_rev;
|
2021-10-09 00:35:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
|