]> git.karo-electronics.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>
Wed, 23 Apr 2014 10:35:26 +0000 (12:35 +0200)
commit6d879168a066f7d75f4ed28f9cf1234cc0c2b88b
tree7427a92abdcab5597808a62f7bea86a279da7741
parent587e0e311e0dcf506d35450272423a2d0ada29e7
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