Lines Matching refs:value
142 static inline void tegra_mipi_writel(struct tegra_mipi *mipi, u32 value, in tegra_mipi_writel() argument
145 writel(value, mipi->regs + (offset << 2)); in tegra_mipi_writel()
150 u32 value; in tegra_mipi_power_up() local
157 value = tegra_mipi_readl(mipi, MIPI_CAL_BIAS_PAD_CFG0); in tegra_mipi_power_up()
158 value &= ~MIPI_CAL_BIAS_PAD_PDVCLAMP; in tegra_mipi_power_up()
161 value |= MIPI_CAL_BIAS_PAD_E_VCLAMP_REF; in tegra_mipi_power_up()
163 tegra_mipi_writel(mipi, value, MIPI_CAL_BIAS_PAD_CFG0); in tegra_mipi_power_up()
165 value = tegra_mipi_readl(mipi, MIPI_CAL_BIAS_PAD_CFG2); in tegra_mipi_power_up()
166 value &= ~MIPI_CAL_BIAS_PAD_PDVREG; in tegra_mipi_power_up()
167 tegra_mipi_writel(mipi, value, MIPI_CAL_BIAS_PAD_CFG2); in tegra_mipi_power_up()
176 u32 value; in tegra_mipi_power_down() local
188 value = tegra_mipi_readl(mipi, MIPI_CAL_BIAS_PAD_CFG2); in tegra_mipi_power_down()
189 value |= MIPI_CAL_BIAS_PAD_PDVREG; in tegra_mipi_power_down()
190 tegra_mipi_writel(mipi, value, MIPI_CAL_BIAS_PAD_CFG2); in tegra_mipi_power_down()
198 value = tegra_mipi_readl(mipi, MIPI_CAL_BIAS_PAD_CFG0); in tegra_mipi_power_down()
201 value &= ~MIPI_CAL_BIAS_PAD_E_VCLAMP_REF; in tegra_mipi_power_down()
203 value |= MIPI_CAL_BIAS_PAD_PDVCLAMP; in tegra_mipi_power_down()
204 tegra_mipi_writel(mipi, value, MIPI_CAL_BIAS_PAD_CFG0); in tegra_mipi_power_down()
300 u32 value; in tegra_mipi_finish_calibration() local
303 err = readl_relaxed_poll_timeout(status_reg, value, in tegra_mipi_finish_calibration()
304 !(value & MIPI_CAL_STATUS_ACTIVE) && in tegra_mipi_finish_calibration()
305 (value & MIPI_CAL_STATUS_DONE), 50, in tegra_mipi_finish_calibration()
318 u32 value; in tegra_mipi_start_calibration() local
327 value = MIPI_CAL_BIAS_PAD_DRV_DN_REF(soc->pad_drive_down_ref) | in tegra_mipi_start_calibration()
329 tegra_mipi_writel(device->mipi, value, MIPI_CAL_BIAS_PAD_CFG1); in tegra_mipi_start_calibration()
331 value = tegra_mipi_readl(device->mipi, MIPI_CAL_BIAS_PAD_CFG2); in tegra_mipi_start_calibration()
332 value &= ~MIPI_CAL_BIAS_PAD_VCLAMP(0x7); in tegra_mipi_start_calibration()
333 value &= ~MIPI_CAL_BIAS_PAD_VAUXP(0x7); in tegra_mipi_start_calibration()
334 value |= MIPI_CAL_BIAS_PAD_VCLAMP(soc->pad_vclamp_level); in tegra_mipi_start_calibration()
335 value |= MIPI_CAL_BIAS_PAD_VAUXP(soc->pad_vauxp_level); in tegra_mipi_start_calibration()
336 tegra_mipi_writel(device->mipi, value, MIPI_CAL_BIAS_PAD_CFG2); in tegra_mipi_start_calibration()
357 value = tegra_mipi_readl(device->mipi, MIPI_CAL_CTRL); in tegra_mipi_start_calibration()
358 value &= ~MIPI_CAL_CTRL_NOISE_FILTER(0xf); in tegra_mipi_start_calibration()
359 value &= ~MIPI_CAL_CTRL_PRESCALE(0x3); in tegra_mipi_start_calibration()
360 value |= MIPI_CAL_CTRL_NOISE_FILTER(0xa); in tegra_mipi_start_calibration()
361 value |= MIPI_CAL_CTRL_PRESCALE(0x2); in tegra_mipi_start_calibration()
364 value &= ~MIPI_CAL_CTRL_CLKEN_OVR; in tegra_mipi_start_calibration()
366 value |= MIPI_CAL_CTRL_CLKEN_OVR; in tegra_mipi_start_calibration()
368 tegra_mipi_writel(device->mipi, value, MIPI_CAL_CTRL); in tegra_mipi_start_calibration()
371 value = tegra_mipi_readl(device->mipi, MIPI_CAL_STATUS); in tegra_mipi_start_calibration()
372 tegra_mipi_writel(device->mipi, value, MIPI_CAL_STATUS); in tegra_mipi_start_calibration()
374 value = tegra_mipi_readl(device->mipi, MIPI_CAL_CTRL); in tegra_mipi_start_calibration()
375 value |= MIPI_CAL_CTRL_START; in tegra_mipi_start_calibration()
376 tegra_mipi_writel(device->mipi, value, MIPI_CAL_CTRL); in tegra_mipi_start_calibration()