drm/tegra: dc: Unify enabling the display controller
authorThierry Reding <treding@nvidia.com>
Mon, 8 Dec 2014 15:32:47 +0000 (16:32 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 27 Jan 2015 09:14:58 +0000 (10:14 +0100)
commit666cb873328b5075eb511662858bab02d084ff64
tree022b213d4e97a05efe37b1b5dcef1e0656a972e7
parent8f604f8c4dd2d5383f567856450ba12764061c12
drm/tegra: dc: Unify enabling the display controller

Previously output drivers would enable continuous display mode and power
up the display controller at various points during the initialization.
This is suboptimal because it accesses display controller registers in
output drivers and duplicates a bit of code.

Move this code into the display controller driver and enable the display
controller as the final step of the ->mode_set_nofb() implementation.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dsi.c
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/rgb.c
drivers/gpu/drm/tegra/sor.c