Searched refs:i2cd (Results 1 – 1 of 1) sorted by relevance
58 static void gpu_enable_i2c_bus(struct gpu_i2c_dev *i2cd) in gpu_enable_i2c_bus() argument63 val = readl(i2cd->regs + I2C_MST_HYBRID_PADCTL); in gpu_enable_i2c_bus()67 writel(val, i2cd->regs + I2C_MST_HYBRID_PADCTL); in gpu_enable_i2c_bus()74 writel(val, i2cd->regs + I2C_MST_I2C0_TIMING); in gpu_enable_i2c_bus()77 static int gpu_i2c_check_status(struct gpu_i2c_dev *i2cd) in gpu_i2c_check_status() argument82 ret = readl_poll_timeout(i2cd->regs + I2C_MST_CNTL, val, in gpu_i2c_check_status()88 dev_err(i2cd->dev, "i2c timeout error %x\n", val); in gpu_i2c_check_status()92 val = readl(i2cd->regs + I2C_MST_CNTL); in gpu_i2c_check_status()105 static int gpu_i2c_read(struct gpu_i2c_dev *i2cd, u8 *data, u16 len) in gpu_i2c_read() argument113 writel(val, i2cd->regs + I2C_MST_CNTL); in gpu_i2c_read()[all …]