drm/tegra: Implement VBLANK support
authorThierry Reding <thierry.reding@avionic-design.de>
Wed, 28 Nov 2012 10:45:47 +0000 (11:45 +0100)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 22 Feb 2013 07:21:23 +0000 (08:21 +0100)
commit6e5ff998997ba7dc5ca10b6662e95a9d07f764c4
treee816da159f67fe32c93e824b2efd6f77c0a0aa47
parent23fb47404e6118eb53fb34c95ed98a3f4f822a76
drm/tegra: Implement VBLANK support

Implement support for the VBLANK IOCTL. Note that Tegra is somewhat
special in this case because it doesn't use the generic IRQ support
provided by the DRM core (DRIVER_HAVE_IRQ) but rather registers one
interrupt handler for each display controller.

While at it, clean up the way that interrupts are enabled to ensure
that the VBLANK interrupt only gets enabled when required.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h