]> Git Repo - linux.git/blob - drivers/gpu/drm/meson/meson_vclk.h
Merge tag 'zonefs-5.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal...
[linux.git] / drivers / gpu / drm / meson / meson_vclk.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright (C) 2016 BayLibre, SAS
4  * Author: Neil Armstrong <[email protected]>
5  */
6
7 /* Video Clock */
8
9 #ifndef __MESON_VCLK_H
10 #define __MESON_VCLK_H
11
12 #include <drm/drm_modes.h>
13
14 struct meson_drm;
15
16 enum {
17         MESON_VCLK_TARGET_CVBS = 0,
18         MESON_VCLK_TARGET_HDMI = 1,
19         MESON_VCLK_TARGET_DMT = 2,
20 };
21
22 /* 27MHz is the CVBS Pixel Clock */
23 #define MESON_VCLK_CVBS                 27000
24
25 enum drm_mode_status
26 meson_vclk_dmt_supported_freq(struct meson_drm *priv, unsigned int freq);
27 enum drm_mode_status
28 meson_vclk_vic_supported_freq(unsigned int freq);
29
30 void meson_vclk_setup(struct meson_drm *priv, unsigned int target,
31                       unsigned int vclk_freq, unsigned int venc_freq,
32                       unsigned int dac_freq, bool hdmi_use_enci);
33
34 #endif /* __MESON_VCLK_H */
This page took 0.034209 seconds and 4 git commands to generate.