diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-core.h')
-rw-r--r-- | drivers/i2c/busses/i2c-designware-core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-core.h b/drivers/i2c/busses/i2c-designware-core.h index 02d1a2ddd853..9c1840ee09c7 100644 --- a/drivers/i2c/busses/i2c-designware-core.h +++ b/drivers/i2c/busses/i2c-designware-core.h | |||
@@ -82,7 +82,7 @@ struct dw_i2c_dev { | |||
82 | unsigned int status; | 82 | unsigned int status; |
83 | u32 abort_source; | 83 | u32 abort_source; |
84 | int irq; | 84 | int irq; |
85 | int swab; | 85 | u32 accessor_flags; |
86 | struct i2c_adapter adapter; | 86 | struct i2c_adapter adapter; |
87 | u32 functionality; | 87 | u32 functionality; |
88 | u32 master_cfg; | 88 | u32 master_cfg; |
@@ -90,6 +90,9 @@ struct dw_i2c_dev { | |||
90 | unsigned int rx_fifo_depth; | 90 | unsigned int rx_fifo_depth; |
91 | }; | 91 | }; |
92 | 92 | ||
93 | #define ACCESS_SWAP 0x00000001 | ||
94 | #define ACCESS_16BIT 0x00000002 | ||
95 | |||
93 | extern u32 dw_readl(struct dw_i2c_dev *dev, int offset); | 96 | extern u32 dw_readl(struct dw_i2c_dev *dev, int offset); |
94 | extern void dw_writel(struct dw_i2c_dev *dev, u32 b, int offset); | 97 | extern void dw_writel(struct dw_i2c_dev *dev, u32 b, int offset); |
95 | extern int i2c_dw_init(struct dw_i2c_dev *dev); | 98 | extern int i2c_dw_init(struct dw_i2c_dev *dev); |