Home
last modified time | relevance | path

Searched refs:i2c_imx (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/i2c/busses/
H A Di2c-imx.c301 static inline int is_imx1_i2c(struct imx_i2c_struct *i2c_imx) in is_imx1_i2c() argument
303 return i2c_imx->hwdata->devtype == IMX1_I2C; in is_imx1_i2c()
306 static inline int is_vf610_i2c(struct imx_i2c_struct *i2c_imx) in is_vf610_i2c() argument
308 return i2c_imx->hwdata->devtype == VF610_I2C; in is_vf610_i2c()
312 struct imx_i2c_struct *i2c_imx, unsigned int reg) in imx_i2c_write_reg() argument
314 writeb(val, i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_write_reg()
317 static inline unsigned char imx_i2c_read_reg(struct imx_i2c_struct *i2c_imx, in imx_i2c_read_reg() argument
320 return readb(i2c_imx->base + (reg << i2c_imx->hwdata->regshift)); in imx_i2c_read_reg()
323 static void i2c_imx_clear_irq(struct imx_i2c_struct *i2c_imx, unsigned int bits) in i2c_imx_clear_irq() argument
332 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq()
[all …]