UPSTREAM: drm: bridge: dw-hdmi: Switch to V4L bus format and encodings
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 4 Apr 2017 12:31:57 +0000 (14:31 +0200)
committerZheng Yang <zhengyang@rock-chips.com>
Mon, 19 Jun 2017 10:25:22 +0000 (18:25 +0800)
commitbcad7aa4e4efa4e79714210d2764ac2a1629c67b
tree5a2ae17b9bd3e4e4cbcd7df09a42b6ff262a18dd
parentc9e9762da7fefd5cea763d325df5dc6506100de5
UPSTREAM: drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

Switch code to use the newly introduced V4L bus formats IDs instead of custom
defines. Also use the V4L encoding defines.

Some display pipelines can only provide non-RBG input pixels to the HDMI TX
Controller, this patch takes the pixel format from the plat_data if provided.

Change-Id: I2b70ed0f3cab8c6873bb407977738677375b24b0
Reviewed-by: Jose Abreu <joabreu@synopsys.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
(cherry picked from commit def23aa7e9821a3dfe3fb7b139dd0229a89fdeb0)
drivers/gpu/drm/bridge/dw-hdmi.c
include/drm/bridge/dw_hdmi.h