drm/tegra: dc - Add YUYV support
authorThierry Reding <treding@nvidia.com>
Wed, 29 Jan 2014 19:31:17 +0000 (20:31 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 5 Jun 2014 21:09:16 +0000 (23:09 +0200)
YUYV is UYVY with swapped bytes. Luckily the Tegra DC hardware can swap
bytes during scan-out, so supporting YUYV is simply a matter of writing
the correct value to the byteswap register.

This patch modifies tegra_dc_format() to return the byte swap parameter
via an output parameter in addition to returning the pixel format. Many
other formats can potentially be supported in a similar way.

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

Simple merge
Simple merge