gpu: host1x: mipi: Preserve the contents of MIPI_CAL_CTRL
authorSean Paul <seanpaul@chromium.org>
Wed, 10 Sep 2014 14:52:03 +0000 (10:52 -0400)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:11:51 +0000 (16:11 +0100)
commit26f7a92a3a275cad7b0f39063e8cd92e002aff1a
tree5af76373db2acb8b581419e100dcedbbd75f9688
parent57b17ae71f412b870415b698655f00846e34ce0a
gpu: host1x: mipi: Preserve the contents of MIPI_CAL_CTRL

By paving the CTRL reg value, the current code changes MIPI_CAL_PRESCALE
("Auto-cal calibration step prescale") from 1us to 0.1us (val=0). In the
description for PHY's noise filter (MIPI_CAL_NOISE_FLT), the TRM states
that if the value of the prescale is 0 (or 0.1us), the filter should be
set between 2-5. However, the current code sets it to 0.

For now, let's keep the prescale and filter values as-is, which is most
likely the power-on-reset values of 0x2 and 0xa, respectively.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/mipi.c