1 /* 2 * linux-5.4/drivers/media/platform/sunxi-vin/vin-cci/sunxi_cci.h 3 * 4 * Copyright (c) 2007-2017 Allwinnertech Co., Ltd. 5 * 6 * This software is licensed under the terms of the GNU General Public 7 * License version 2, as published by the Free Software Foundation, and 8 * may be copied, distributed, and modified under those terms. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 */ 16 17 /* 18 ****************************************************************************** 19 * 20 * sunxi_cci.h 21 * 22 * Hawkview ISP - sunxi_cci.h module 23 * 24 * Copyright (c) 2014 by Allwinnertech Co., Ltd. http://www.allwinnertech.com 25 * 26 * Version Author Date Description 27 * 28 * 2.0 Yang Feng 2014/06/23 Second Version 29 * 30 ****************************************************************************** 31 */ 32 33 #ifndef _SUNXI_CCI_H_ 34 #define _SUNXI_CCI_H_ 35 36 #include "../platform/platform_cfg.h" 37 #include <linux/i2c.h> 38 39 struct cci_dev { 40 struct platform_device *pdev; 41 struct i2c_adapter adap; 42 unsigned int id; 43 spinlock_t slock; 44 int irq; 45 int use_cnt; 46 wait_queue_head_t wait; 47 48 void __iomem *base; 49 50 struct list_head cci_list; 51 struct pinctrl *pctrl; 52 struct clk *clock; 53 }; 54 55 int sunxi_cci_platform_register(void); 56 void sunxi_cci_platform_unregister(void); 57 58 #endif /*_SUNXI_CCI_H_*/ 59