Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
smiapp-pll.h
Go to the documentation of this file.
1 /*
2  * drivers/media/i2c/smiapp-pll.h
3  *
4  * Generic driver for SMIA/SMIA++ compliant camera modules
5  *
6  * Copyright (C) 2012 Nokia Corporation
7  * Contact: Sakari Ailus <[email protected]>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * version 2 as published by the Free Software Foundation.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24 
25 #ifndef SMIAPP_PLL_H
26 #define SMIAPP_PLL_H
27 
28 #include <linux/device.h>
29 
30 struct smiapp_pll {
39 
46 
54 
56 };
57 
59  /* Strict PLL limits */
70 
79 
88 
89  /* Other relevant limits */
92 };
93 
94 /* op pix clock is for all lanes in total normally */
95 #define SMIAPP_PLL_FLAG_OP_PIX_CLOCK_PER_LANE (1 << 0)
96 #define SMIAPP_PLL_FLAG_NO_OP_CLOCKS (1 << 1)
97 
98 struct device;
99 
100 int smiapp_pll_calculate(struct device *dev, struct smiapp_pll_limits *limits,
101  struct smiapp_pll *pll);
102 
103 #endif /* SMIAPP_PLL_H */