summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/zte/zx_vou.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2017-01-19 22:28:38 +0800
committerShawn Guo <shawn.guo@linaro.org>2017-01-28 11:51:23 +0800
commit098988cbe5849e3e125b0bc02a6545a1dc414ab1 (patch)
treef829aa5ad980a65e49d67b7df7c680c1de9cea23 /drivers/gpu/drm/zte/zx_vou.c
parent9f17d740432cfcc76b538808b3724ed90905fe91 (diff)
drm: zte: add tvenc driver support
It adds the TV Encoder driver to support video output in PAL and NTSC format. The driver uses syscon/regmap interface to configure register bit sitting in SYSCTRL module for DAC power control. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Reviewed-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/zte/zx_vou.c')
-rw-r--r--drivers/gpu/drm/zte/zx_vou.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/zte/zx_vou.c b/drivers/gpu/drm/zte/zx_vou.c
index 2552d72708d9..e7bd735b5ddf 100644
--- a/drivers/gpu/drm/zte/zx_vou.c
+++ b/drivers/gpu/drm/zte/zx_vou.c
@@ -199,6 +199,11 @@ static struct vou_inf vou_infs[] = {
.clocks_en_bits = BIT(24) | BIT(18) | BIT(6),
.clocks_sel_bits = BIT(13) | BIT(2),
},
+ [VOU_TV_ENC] = {
+ .data_sel = VOU_YUV444,
+ .clocks_en_bits = BIT(15),
+ .clocks_sel_bits = BIT(11) | BIT(0),
+ },
};
static inline struct zx_vou_hw *crtc_to_vou(struct drm_crtc *crtc)