xref: /linux/drivers/gpu/drm/meson/meson_encoder_cvbs.h (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2016 BayLibre, SAS
4  * Author: Neil Armstrong <narmstrong@baylibre.com>
5  * Copyright (C) 2014 Endless Mobile
6  *
7  * Written by:
8  *     Jasper St. Pierre <jstpierre@mecheye.net>
9  */
10 
11 #ifndef __MESON_VENC_CVBS_H
12 #define __MESON_VENC_CVBS_H
13 
14 #include "meson_drv.h"
15 #include "meson_venc.h"
16 
17 struct meson_cvbs_mode {
18 	struct meson_cvbs_enci_mode *enci;
19 	struct drm_display_mode mode;
20 };
21 
22 #define MESON_CVBS_MODES_COUNT	2
23 
24 /* Modes supported by the CVBS output */
25 extern struct meson_cvbs_mode meson_cvbs_modes[MESON_CVBS_MODES_COUNT];
26 
27 int meson_encoder_cvbs_probe(struct meson_drm *priv);
28 void meson_encoder_cvbs_remove(struct meson_drm *priv);
29 
30 #endif /* __MESON_VENC_CVBS_H */
31