Searched refs:iproc_i2c (Results 1 – 1 of 1) sorted by relevance
220 static void bcm_iproc_i2c_enable_disable(struct bcm_iproc_i2c_dev *iproc_i2c,223 static inline u32 iproc_i2c_rd_reg(struct bcm_iproc_i2c_dev *iproc_i2c, in iproc_i2c_rd_reg() argument228 if (iproc_i2c->idm_base) { in iproc_i2c_rd_reg()229 spin_lock(&iproc_i2c->idm_lock); in iproc_i2c_rd_reg()230 writel(iproc_i2c->ape_addr_mask, in iproc_i2c_rd_reg()231 iproc_i2c->idm_base + IDM_CTRL_DIRECT_OFFSET); in iproc_i2c_rd_reg()232 val = readl(iproc_i2c->base + offset); in iproc_i2c_rd_reg()233 spin_unlock(&iproc_i2c->idm_lock); in iproc_i2c_rd_reg()235 val = readl(iproc_i2c->base + offset); in iproc_i2c_rd_reg()241 static inline void iproc_i2c_wr_reg(struct bcm_iproc_i2c_dev *iproc_i2c, in iproc_i2c_wr_reg() argument[all …]