| 
									
										
										
										
											2014-03-21 17:59:37 -07:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2014, The Linux Foundation. All rights reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This software is licensed under the terms of the GNU General Public | 
					
						
							|  |  |  |  * License version 2, as published by the Free Software Foundation, and | 
					
						
							|  |  |  |  * may be copied, distributed, and modified under those terms. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * 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 __QCOM_CLK_COMMON_H__
 | 
					
						
							|  |  |  | #define __QCOM_CLK_COMMON_H__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct platform_device; | 
					
						
							|  |  |  | struct regmap_config; | 
					
						
							|  |  |  | struct clk_regmap; | 
					
						
							|  |  |  | struct qcom_reset_map; | 
					
						
							| 
									
										
										
										
											2014-07-15 14:59:21 -07:00
										 |  |  | struct regmap; | 
					
						
							| 
									
										
										
										
											2014-03-21 17:59:37 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | struct qcom_cc_desc { | 
					
						
							|  |  |  | 	const struct regmap_config *config; | 
					
						
							|  |  |  | 	struct clk_regmap **clks; | 
					
						
							|  |  |  | 	size_t num_clks; | 
					
						
							|  |  |  | 	const struct qcom_reset_map *resets; | 
					
						
							|  |  |  | 	size_t num_resets; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-07-15 14:59:21 -07:00
										 |  |  | extern struct regmap *qcom_cc_map(struct platform_device *pdev, | 
					
						
							|  |  |  | 				  const struct qcom_cc_desc *desc); | 
					
						
							|  |  |  | extern int qcom_cc_really_probe(struct platform_device *pdev, | 
					
						
							|  |  |  | 				const struct qcom_cc_desc *desc, | 
					
						
							|  |  |  | 				struct regmap *regmap); | 
					
						
							| 
									
										
										
										
											2014-03-21 17:59:37 -07:00
										 |  |  | extern int qcom_cc_probe(struct platform_device *pdev, | 
					
						
							|  |  |  | 			 const struct qcom_cc_desc *desc); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern void qcom_cc_remove(struct platform_device *pdev); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif
 |