Lines Matching refs:regval
104 u32 regval; in i2c_sirfsoc_queue_cmd() local
110 regval = SIRFSOC_I2C_READ | SIRFSOC_I2C_CMD_RP(0); in i2c_sirfsoc_queue_cmd()
113 regval |= SIRFSOC_I2C_STOP | SIRFSOC_I2C_NACK; in i2c_sirfsoc_queue_cmd()
114 writel(regval, in i2c_sirfsoc_queue_cmd()
123 regval = SIRFSOC_I2C_WRITE | SIRFSOC_I2C_CMD_RP(0); in i2c_sirfsoc_queue_cmd()
126 regval |= SIRFSOC_I2C_STOP; in i2c_sirfsoc_queue_cmd()
127 writel(regval, in i2c_sirfsoc_queue_cmd()
174 u32 regval = SIRFSOC_I2C_START | SIRFSOC_I2C_CMD_RP(0) | SIRFSOC_I2C_WRITE; in i2c_sirfsoc_set_address() local
178 regval |= SIRFSOC_I2C_STOP; in i2c_sirfsoc_set_address()
180 writel(regval, siic->base + SIRFSOC_I2C_CMD(siic->cmd_ptr++)); in i2c_sirfsoc_set_address()
191 u32 regval = readl(siic->base + SIRFSOC_I2C_CTRL); in i2c_sirfsoc_xfer_msg() local
198 writel(regval | SIRFSOC_I2C_CMD_DONE_EN | SIRFSOC_I2C_ERR_INT_EN, in i2c_sirfsoc_xfer_msg()
207 writel(regval & ~(SIRFSOC_I2C_CMD_DONE_EN | SIRFSOC_I2C_ERR_INT_EN), in i2c_sirfsoc_xfer_msg()
273 u32 regval; in i2c_sirfsoc_probe() local
350 regval = in i2c_sirfsoc_probe()
353 regval = ctrl_speed / (bitrate * 5); in i2c_sirfsoc_probe()
355 writel(regval, siic->base + SIRFSOC_I2C_CLK_CTRL); in i2c_sirfsoc_probe()
356 if (regval > 0xFF) in i2c_sirfsoc_probe()
359 writel(regval, siic->base + SIRFSOC_I2C_SDA_DELAY); in i2c_sirfsoc_probe()