drm/tegra: hub: Implement basic scaling support
authorThierry Reding <treding@nvidia.com>
Thu, 27 May 2021 18:27:21 +0000 (20:27 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 31 May 2021 12:30:11 +0000 (14:30 +0200)
commitecc583e22d4689e38a528a8bf841ba1ce58edd7b
tree3dead89bc612f40ced0d908ffda5099c58b0b8dd
parente16efff4e5f490ce34a8c60d9ae7297dca5eb616
drm/tegra: hub: Implement basic scaling support

Parameterize code in several places to allow scaling of windows. Note
that this currently still relies on static programming of the various
metering and memory pool allocation registers. This seems to work for
the common cases, but may eventually need to be updated to support
use-cases with multiple windows and higher bandwidth and latency
requirements.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.h
drivers/gpu/drm/tegra/hub.c