2 * Aptina Sensor PLL Configuration
4 * Copyright (C) 2012 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21 #ifndef __APTINA_PLL_H
22 #define __APTINA_PLL_H
25 unsigned int ext_clock;
26 unsigned int pix_clock;
33 struct aptina_pll_limits {
34 unsigned int ext_clock_min;
35 unsigned int ext_clock_max;
36 unsigned int int_clock_min;
37 unsigned int int_clock_max;
38 unsigned int out_clock_min;
39 unsigned int out_clock_max;
40 unsigned int pix_clock_max;
52 int aptina_pll_calculate(struct device *dev,
53 const struct aptina_pll_limits *limits,
54 struct aptina_pll *pll);
56 #endif /* __APTINA_PLL_H */