blob: 59d7f1022d54cb91de6c26ef164d0618c4111457 [file] [log] [blame]
Vinu Deokarandc3ce962014-12-01 14:56:28 -08001/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
Dhaval Patel83e27fc2013-12-19 14:52:24 -08002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef __MDSS_HDMI_PLL_H
14#define __MDSS_HDMI_PLL_H
15
Casey Pipera07eed02014-10-22 18:25:12 -070016struct hdmi_pll_cfg {
17 unsigned long vco_rate;
18 u32 reg;
19};
20
Dhaval Patel83e27fc2013-12-19 14:52:24 -080021struct hdmi_pll_vco_clk {
22 unsigned long rate; /* current vco rate */
23 unsigned long min_rate; /* min vco rate */
24 unsigned long max_rate; /* max vco rate */
25 bool rate_set;
Casey Pipera07eed02014-10-22 18:25:12 -070026 struct hdmi_pll_cfg *ip_seti;
27 struct hdmi_pll_cfg *cp_seti;
28 struct hdmi_pll_cfg *ip_setp;
29 struct hdmi_pll_cfg *cp_setp;
30 struct hdmi_pll_cfg *crctrl;
Dhaval Patel83e27fc2013-12-19 14:52:24 -080031 void *priv;
32
33 struct clk c;
34};
35
36int hdmi_pll_clock_register(struct platform_device *pdev,
37 struct mdss_pll_resources *pll_res);
38
Casey Piper27b58302014-06-12 21:30:41 -070039int hdmi_20nm_pll_clock_register(struct platform_device *pdev,
40 struct mdss_pll_resources *pll_res);
Vinu Deokarandc3ce962014-12-01 14:56:28 -080041
42int hdmi_14nm_pll_clock_register(struct platform_device *pdev,
43 struct mdss_pll_resources *pll_res);
Dhaval Patel83e27fc2013-12-19 14:52:24 -080044#endif