Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | dw_i2c_dev |
Macros | |
#define | DW_IC_CON_MASTER 0x1 |
#define | DW_IC_CON_SPEED_STD 0x2 |
#define | DW_IC_CON_SPEED_FAST 0x4 |
#define | DW_IC_CON_10BITADDR_MASTER 0x10 |
#define | DW_IC_CON_RESTART_EN 0x20 |
#define | DW_IC_CON_SLAVE_DISABLE 0x40 |
#define | ACCESS_SWAP 0x00000001 |
#define | ACCESS_16BIT 0x00000002 |
Functions | |
u32 | dw_readl (struct dw_i2c_dev *dev, int offset) |
void | dw_writel (struct dw_i2c_dev *dev, u32 b, int offset) |
int | i2c_dw_init (struct dw_i2c_dev *dev) |
int | i2c_dw_xfer (struct i2c_adapter *adap, struct i2c_msg msgs[], int num) |
u32 | i2c_dw_func (struct i2c_adapter *adap) |
irqreturn_t | i2c_dw_isr (int this_irq, void *dev_id) |
void | i2c_dw_enable (struct dw_i2c_dev *dev) |
u32 | i2c_dw_is_enabled (struct dw_i2c_dev *dev) |
void | i2c_dw_disable (struct dw_i2c_dev *dev) |
void | i2c_dw_clear_int (struct dw_i2c_dev *dev) |
void | i2c_dw_disable_int (struct dw_i2c_dev *dev) |
u32 | i2c_dw_read_comp_param (struct dw_i2c_dev *dev) |
#define ACCESS_16BIT 0x00000002 |
Definition at line 94 of file i2c-designware-core.h.
#define ACCESS_SWAP 0x00000001 |
Definition at line 93 of file i2c-designware-core.h.
#define DW_IC_CON_10BITADDR_MASTER 0x10 |
Definition at line 33 of file i2c-designware-core.h.
#define DW_IC_CON_MASTER 0x1 |
Definition at line 30 of file i2c-designware-core.h.
#define DW_IC_CON_RESTART_EN 0x20 |
Definition at line 34 of file i2c-designware-core.h.
#define DW_IC_CON_SLAVE_DISABLE 0x40 |
Definition at line 35 of file i2c-designware-core.h.
#define DW_IC_CON_SPEED_FAST 0x4 |
Definition at line 32 of file i2c-designware-core.h.
#define DW_IC_CON_SPEED_STD 0x2 |
Definition at line 31 of file i2c-designware-core.h.
u32 dw_readl | ( | struct dw_i2c_dev * | dev, |
int | offset | ||
) |
Definition at line 166 of file i2c-designware-core.c.
void dw_writel | ( | struct dw_i2c_dev * | dev, |
u32 | b, | ||
int | offset | ||
) |
Definition at line 182 of file i2c-designware-core.c.
void i2c_dw_clear_int | ( | struct dw_i2c_dev * | dev | ) |
Definition at line 711 of file i2c-designware-core.c.
void i2c_dw_disable | ( | struct dw_i2c_dev * | dev | ) |
Definition at line 700 of file i2c-designware-core.c.
void i2c_dw_disable_int | ( | struct dw_i2c_dev * | dev | ) |
Definition at line 717 of file i2c-designware-core.c.
void i2c_dw_enable | ( | struct dw_i2c_dev * | dev | ) |
Definition at line 687 of file i2c-designware-core.c.
u32 i2c_dw_func | ( | struct i2c_adapter * | adap | ) |
Definition at line 575 of file i2c-designware-core.c.
int i2c_dw_init | ( | struct dw_i2c_dev * | dev | ) |
i2c_dw_init() - initialize the designware i2c master hardware : device private data
This functions configures and enables the I2C master. This function is called during I2C init function, and in case of timeout at run time.
Definition at line 258 of file i2c-designware-core.c.
u32 i2c_dw_is_enabled | ( | struct dw_i2c_dev * | dev | ) |
Definition at line 694 of file i2c-designware-core.c.
irqreturn_t i2c_dw_isr | ( | int | this_irq, |
void * | dev_id | ||
) |
Definition at line 641 of file i2c-designware-core.c.
u32 i2c_dw_read_comp_param | ( | struct dw_i2c_dev * | dev | ) |
Definition at line 723 of file i2c-designware-core.c.
Definition at line 510 of file i2c-designware-core.c.