Lines Matching refs:I2C_CTL
20 #define I2C_CTL 0x00 macro
100 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
103 writel(tmp & ~STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
105 writel(tmp | STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
110 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
112 writel(tmp & ~I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
157 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_set_full_thld()
161 writel(tmp, i2c_dev->base + I2C_CTL); in sprd_i2c_set_full_thld()
166 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_set_empty_thld()
170 writel(tmp, i2c_dev->base + I2C_CTL); in sprd_i2c_set_empty_thld()
175 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_set_fifo_full_int()
182 writel(tmp, i2c_dev->base + I2C_CTL); in sprd_i2c_set_fifo_full_int()
187 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_set_fifo_empty_int()
194 writel(tmp, i2c_dev->base + I2C_CTL); in sprd_i2c_set_fifo_empty_int()
199 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_opt_start()
201 writel(tmp | I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_opt_start()
206 u32 cmd = readl(i2c_dev->base + I2C_CTL) & ~I2C_MODE; in sprd_i2c_opt_mode()
208 writel(cmd | rw << 3, i2c_dev->base + I2C_CTL); in sprd_i2c_opt_mode()
355 writel(tmp, i2c_dev->base + I2C_CTL); in sprd_i2c_enable()
364 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_enable()
365 writel(tmp | I2C_EN | I2C_INT_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_enable()