blob: 0401b5213471372aa5fc4782724dca122dc6f084 [file] [log] [blame]
Neil Armstrongbbbe7752016-11-10 15:29:37 +01001/*
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 Clock */
20
21#ifndef __MESON_VCLK_H
22#define __MESON_VCLK_H
23
24enum {
25 MESON_VCLK_TARGET_CVBS = 0,
Neil Armstrong2f4c95d2017-04-04 14:15:25 +020026 MESON_VCLK_TARGET_HDMI = 1,
Neil Armstrongbbbe7752016-11-10 15:29:37 +010027};
28
29/* 27MHz is the CVBS Pixel Clock */
Neil Armstrong2f4c95d2017-04-04 14:15:25 +020030#define MESON_VCLK_CVBS 27000
Neil Armstrongbbbe7752016-11-10 15:29:37 +010031
32void meson_vclk_setup(struct meson_drm *priv, unsigned int target,
Neil Armstrong2f4c95d2017-04-04 14:15:25 +020033 unsigned int vclk_freq, unsigned int venc_freq,
34 unsigned int dac_freq, bool hdmi_use_enci);
Neil Armstrongbbbe7752016-11-10 15:29:37 +010035
36#endif /* __MESON_VCLK_H */