Loading...
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
12struct drm_rect;
13struct meson_drm;
14
15/* Mux VIU/VPP to ENCL */
16#define MESON_VIU_VPP_MUX_ENCL 0x0
17/* Mux VIU/VPP to ENCI */
18#define MESON_VIU_VPP_MUX_ENCI 0x5
19/* Mux VIU/VPP to ENCP */
20#define MESON_VIU_VPP_MUX_ENCP 0xA
21
22void meson_vpp_setup_mux(struct meson_drm *priv, unsigned int mux);
23
24void meson_vpp_setup_interlace_vscaler_osd1(struct meson_drm *priv,
25 struct drm_rect *input);
26void meson_vpp_disable_interlace_vscaler_osd1(struct meson_drm *priv);
27
28void meson_vpp_init(struct meson_drm *priv);
29
30#endif /* __MESON_VPP_H */
1/*
2 * Copyright (C) 2016 BayLibre, SAS
3 * Author: Neil Armstrong <narmstrong@baylibre.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 */
18
19/* Video Post Process */
20
21#ifndef __MESON_VPP_H
22#define __MESON_VPP_H
23
24/* Mux VIU/VPP to ENCI */
25#define MESON_VIU_VPP_MUX_ENCI 0x5
26
27void meson_vpp_setup_mux(struct meson_drm *priv, unsigned int mux);
28
29void meson_vpp_setup_interlace_vscaler_osd1(struct meson_drm *priv,
30 struct drm_rect *input);
31void meson_vpp_disable_interlace_vscaler_osd1(struct meson_drm *priv);
32
33void meson_vpp_init(struct meson_drm *priv);
34
35#endif /* __MESON_VPP_H */