]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commitf925390efccb24016a4fafe77721770021ed754a
treeeb338c23ebcc4d51553ba75003c94b89d35bcec5
parent688c59afbf74cf729d4f50b0cd862bb30f6de658
drm/tegra: dc - Add YUYV support

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