]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: sor - Don't hardcode link parameters
authorThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 14:31:10 +0000 (16:31 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jun 2014 10:02:47 +0000 (12:02 +0200)
commitbaac6ecb9f5de4078276b3ec8bcff0319fa597ec
treeb191566cc27d6a8c64468c5b67de37b0b1f28a46
parent787f96423b3b9a42e41481b546f61c8b5b83e184
drm/tegra: sor - Don't hardcode link parameters

The currently hardcoded link parameters don't work on all eDP panels, so
compute the parameters at runtime depending on the mode and panel type
to allow the driver to cope with a wider variety of panels.

Note that the number of bits per pixel of the panel is still hardcoded,
but this can be addressed in a separate patch.

This is largely based on a patch by Stéphane Marchesin but the algorithm
was largely rewritten to be more readable and concise.

Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c