Vinu Deokaran | dc3ce96 | 2014-12-01 14:56:28 -0800 | [diff] [blame^] | 1 | /* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. |
Dhaval Patel | 83e27fc | 2013-12-19 14:52:24 -0800 | [diff] [blame] | 2 | * |
| 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 Piper | a07eed0 | 2014-10-22 18:25:12 -0700 | [diff] [blame] | 16 | struct hdmi_pll_cfg { |
| 17 | unsigned long vco_rate; |
| 18 | u32 reg; |
| 19 | }; |
| 20 | |
Dhaval Patel | 83e27fc | 2013-12-19 14:52:24 -0800 | [diff] [blame] | 21 | struct 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 Piper | a07eed0 | 2014-10-22 18:25:12 -0700 | [diff] [blame] | 26 | 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 Patel | 83e27fc | 2013-12-19 14:52:24 -0800 | [diff] [blame] | 31 | void *priv; |
| 32 | |
| 33 | struct clk c; |
| 34 | }; |
| 35 | |
| 36 | int hdmi_pll_clock_register(struct platform_device *pdev, |
| 37 | struct mdss_pll_resources *pll_res); |
| 38 | |
Casey Piper | 27b5830 | 2014-06-12 21:30:41 -0700 | [diff] [blame] | 39 | int hdmi_20nm_pll_clock_register(struct platform_device *pdev, |
| 40 | struct mdss_pll_resources *pll_res); |
Vinu Deokaran | dc3ce96 | 2014-12-01 14:56:28 -0800 | [diff] [blame^] | 41 | |
| 42 | int hdmi_14nm_pll_clock_register(struct platform_device *pdev, |
| 43 | struct mdss_pll_resources *pll_res); |
Dhaval Patel | 83e27fc | 2013-12-19 14:52:24 -0800 | [diff] [blame] | 44 | #endif |