forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/meson/meson_vclk.h
....@@ -1,25 +1,17 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2016 BayLibre, SAS
34 * 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/>.
175 */
186
197 /* Video Clock */
208
219 #ifndef __MESON_VCLK_H
2210 #define __MESON_VCLK_H
11
+
12
+#include <drm/drm_modes.h>
13
+
14
+struct meson_drm;
2315
2416 enum {
2517 MESON_VCLK_TARGET_CVBS = 0,
....@@ -32,9 +24,13 @@
3224
3325 enum drm_mode_status
3426 meson_vclk_dmt_supported_freq(struct meson_drm *priv, unsigned int freq);
27
+enum drm_mode_status
28
+meson_vclk_vic_supported_freq(struct meson_drm *priv, unsigned int phy_freq,
29
+ unsigned int vclk_freq);
3530
3631 void meson_vclk_setup(struct meson_drm *priv, unsigned int target,
37
- unsigned int vclk_freq, unsigned int venc_freq,
38
- unsigned int dac_freq, bool hdmi_use_enci);
32
+ unsigned int phy_freq, unsigned int vclk_freq,
33
+ unsigned int venc_freq, unsigned int dac_freq,
34
+ bool hdmi_use_enci);
3935
4036 #endif /* __MESON_VCLK_H */