1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright 2016 Linaro Ltd.
4 * Copyright 2016 ZTE Corporation.
10 #define VOU_CRTC_MASK 0x3
12 /* VOU output interfaces */
22 enum vou_inf_hdmi_audio
{
23 VOU_HDMI_AUD_SPDIF
= BIT(0),
24 VOU_HDMI_AUD_I2S
= BIT(1),
25 VOU_HDMI_AUD_DSD
= BIT(2),
26 VOU_HDMI_AUD_HBR
= BIT(3),
27 VOU_HDMI_AUD_PARALLEL
= BIT(4),
30 void vou_inf_hdmi_audio_sel(struct drm_crtc
*crtc
,
31 enum vou_inf_hdmi_audio aud
);
32 void vou_inf_enable(enum vou_inf_id id
, struct drm_crtc
*crtc
);
33 void vou_inf_disable(enum vou_inf_id id
, struct drm_crtc
*crtc
);
52 struct vou_div_config
{
57 void zx_vou_config_dividers(struct drm_crtc
*crtc
,
58 struct vou_div_config
*configs
, int num
);
60 void zx_vou_layer_enable(struct drm_plane
*plane
);
61 void zx_vou_layer_disable(struct drm_plane
*plane
,
62 struct drm_plane_state
*old_state
);
64 #endif /* __ZX_VOU_H__ */