2 * Copyright 2016 Linaro Ltd.
3 * Copyright 2016 ZTE Corporation.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
14 #define VOU_CRTC_MASK 0x3
16 /* VOU output interfaces */
26 enum vou_inf_data_sel {
33 enum vou_inf_hdmi_audio {
34 VOU_HDMI_AUD_SPDIF = BIT(0),
35 VOU_HDMI_AUD_I2S = BIT(1),
36 VOU_HDMI_AUD_DSD = BIT(2),
37 VOU_HDMI_AUD_HBR = BIT(3),
38 VOU_HDMI_AUD_PARALLEL = BIT(4),
43 enum vou_inf_data_sel data_sel;
48 void vou_inf_hdmi_audio_sel(struct drm_crtc *crtc,
49 enum vou_inf_hdmi_audio aud);
50 void vou_inf_enable(const struct vou_inf *inf, struct drm_crtc *crtc);
51 void vou_inf_disable(const struct vou_inf *inf, struct drm_crtc *crtc);
53 int zx_vou_enable_vblank(struct drm_device *drm, unsigned int pipe);
54 void zx_vou_disable_vblank(struct drm_device *drm, unsigned int pipe);
56 void zx_vou_layer_enable(struct drm_plane *plane);
57 void zx_vou_layer_disable(struct drm_plane *plane);
59 #endif /* __ZX_VOU_H__ */