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_hdmi_audio {
27 VOU_HDMI_AUD_SPDIF = BIT(0),
28 VOU_HDMI_AUD_I2S = BIT(1),
29 VOU_HDMI_AUD_DSD = BIT(2),
30 VOU_HDMI_AUD_HBR = BIT(3),
31 VOU_HDMI_AUD_PARALLEL = BIT(4),
34 void vou_inf_hdmi_audio_sel(struct drm_crtc *crtc,
35 enum vou_inf_hdmi_audio aud);
36 void vou_inf_enable(enum vou_inf_id id, struct drm_crtc *crtc);
37 void vou_inf_disable(enum vou_inf_id id, struct drm_crtc *crtc);
56 struct vou_div_config {
61 void zx_vou_config_dividers(struct drm_crtc *crtc,
62 struct vou_div_config *configs, int num);
64 void zx_vou_layer_enable(struct drm_plane *plane);
65 void zx_vou_layer_disable(struct drm_plane *plane);
67 #endif /* __ZX_VOU_H__ */