mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
i2c: designware: Delete SMBus functionalities
The driver didn't implement the smbus interface, so replace the SMBus functionalities with I2C_FUNC_SMBUS_EMUL. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
This commit is contained in:
parent
b07df90911
commit
9bb4ea0163
1 changed files with 4 additions and 6 deletions
|
@ -18,12 +18,10 @@
|
|||
#include <linux/regmap.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#define DW_IC_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | \
|
||||
I2C_FUNC_SMBUS_BYTE | \
|
||||
I2C_FUNC_SMBUS_BYTE_DATA | \
|
||||
I2C_FUNC_SMBUS_WORD_DATA | \
|
||||
I2C_FUNC_SMBUS_BLOCK_DATA | \
|
||||
I2C_FUNC_SMBUS_I2C_BLOCK)
|
||||
#define DW_IC_DEFAULT_FUNCTIONALITY (I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL \
|
||||
& ~I2C_FUNC_SMBUS_QUICK \
|
||||
& ~I2C_FUNC_SMBUS_PROC_CALL \
|
||||
& ~I2C_FUNC_SMBUS_PEC))
|
||||
|
||||
#define DW_IC_CON_MASTER BIT(0)
|
||||
#define DW_IC_CON_SPEED_STD (1 << 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue