blob: 2805ff9b8c5008962d8ebba8d065a14978c0356f [file] [log] [blame]
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __MDSS_DP_PLL_H
#define __MDSS_DP_PLL_H
struct dp_pll_vco_clk {
unsigned long rate; /* current vco rate */
u64 min_rate; /* min vco rate */
u64 max_rate; /* max vco rate */
void *priv;
struct clk c;
};
static inline struct dp_pll_vco_clk *mdss_dp_to_vco_clk(struct clk *clk)
{
return container_of(clk, struct dp_pll_vco_clk, c);
}
int dp_pll_clock_register_8998(struct platform_device *pdev,
struct mdss_pll_resources *pll_res);
#endif /* __MDSS_DP_PLL_H */