]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: dc: rgb: Move PCLK shifter programming to CRTC
authorDmitry Osipenko <digetx@gmail.com>
Wed, 29 Sep 2021 22:28:04 +0000 (01:28 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:06 +0000 (14:07 +0100)
commitfb41d932a3cabd3bdad40b435bc429d8d6e32131
tree604ca7e17e6fa5a191881e2c069889cdad69f229
parentfaa8af60b0c085ac35a54813cee0ae186b707f16
drm/tegra: dc: rgb: Move PCLK shifter programming to CRTC

Asus TF700T tablet uses TC358768 DPI->DSI bridge that sits between Tegra's
DPI output and display panel input. Bridge requires to have stable PCLK
output before RGB encoder is enabled because it uses PCLK by itself to
clock internal logic and bridge is programmed before Tegra's encoder is
enabled. Hence the PCLK clock shifter must be programmed when CRTC is
enabled, otherwise clock is unstable and bridge hangs because of it.
Move the shifter programming from RGB encoder into CRTC.

Tested-by: Maxim Schwalm <maxim.schwalm@gmail.com> #TF700T
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/rgb.c