xref: /linux/drivers/gpu/drm/meson/meson_vpp.h (revision 6fdcba32711044c35c0e1b094cbd8f3f0b4472c9)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2016 BayLibre, SAS
4  * Author: Neil Armstrong <narmstrong@baylibre.com>
5  */
6 
7 /* Video Post Process */
8 
9 #ifndef __MESON_VPP_H
10 #define __MESON_VPP_H
11 
12 struct drm_rect;
13 struct meson_drm;
14 
15 /* Mux VIU/VPP to ENCI */
16 #define MESON_VIU_VPP_MUX_ENCI	0x5
17 /* Mux VIU/VPP to ENCP */
18 #define MESON_VIU_VPP_MUX_ENCP	0xA
19 
20 void meson_vpp_setup_mux(struct meson_drm *priv, unsigned int mux);
21 
22 void meson_vpp_setup_interlace_vscaler_osd1(struct meson_drm *priv,
23 					    struct drm_rect *input);
24 void meson_vpp_disable_interlace_vscaler_osd1(struct meson_drm *priv);
25 
26 void meson_vpp_init(struct meson_drm *priv);
27 
28 #endif /* __MESON_VPP_H */
29