mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
gpu: host1x: mipi: Clear calibration status
Before starting a new calibration cycle, make sure to clear the current status by writing a 1 to the various "calibration done" bits. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
8ed5c06232
commit
2ed264bf91
1 changed files with 4 additions and 0 deletions
|
@ -279,6 +279,10 @@ int tegra_mipi_calibrate(struct tegra_mipi_device *device)
|
|||
|
||||
tegra_mipi_writel(device->mipi, value, MIPI_CAL_CTRL);
|
||||
|
||||
/* clear any pending status bits */
|
||||
value = tegra_mipi_readl(device->mipi, MIPI_CAL_STATUS);
|
||||
tegra_mipi_writel(device->mipi, value, MIPI_CAL_STATUS);
|
||||
|
||||
value = tegra_mipi_readl(device->mipi, MIPI_CAL_CTRL);
|
||||
value |= MIPI_CAL_CTRL_START;
|
||||
tegra_mipi_writel(device->mipi, value, MIPI_CAL_CTRL);
|
||||
|
|
Loading…
Reference in a new issue