mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 22:14:41 +08:00
3abdc89b5e
Some later revisions after the original PASemi I2C controller introduce what likely is an enable bit to the CTL register. Without setting it the actual i2c transmission is never started. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sven Peter <sven@svenpeter.dev> Acked-by: Olof Johansson <olof@lixom.net> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Wolfram Sang <wsa@kernel.org>
22 lines
470 B
C
22 lines
470 B
C
/* 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>
|
|
|
|
#define PASEMI_HW_REV_PCI -1
|
|
|
|
struct pasemi_smbus {
|
|
struct device *dev;
|
|
struct i2c_adapter adapter;
|
|
void __iomem *ioaddr;
|
|
unsigned int clk_div;
|
|
int hw_rev;
|
|
};
|
|
|
|
int pasemi_i2c_common_probe(struct pasemi_smbus *smbus);
|