xref: /OK3568_Linux_fs/kernel/include/media/i2c/m5mols.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Driver header for M-5MOLS 8M Pixel camera sensor with ISP
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (C) 2011 Samsung Electronics Co., Ltd.
6*4882a593Smuzhiyun  * Author: HeungJun Kim <riverful.kim@samsung.com>
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * Copyright (C) 2009 Samsung Electronics Co., Ltd.
9*4882a593Smuzhiyun  * Author: Dongsoo Nathaniel Kim <dongsoo45.kim@samsung.com>
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifndef MEDIA_M5MOLS_H
13*4882a593Smuzhiyun #define MEDIA_M5MOLS_H
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun /**
16*4882a593Smuzhiyun  * struct m5mols_platform_data - platform data for M-5MOLS driver
17*4882a593Smuzhiyun  * @gpio_reset:	GPIO driving the reset pin of M-5MOLS
18*4882a593Smuzhiyun  * @reset_polarity: active state for gpio_reset pin, 0 or 1
19*4882a593Smuzhiyun  * @set_power:	an additional callback to the board setup code
20*4882a593Smuzhiyun  *		to be called after enabling and before disabling
21*4882a593Smuzhiyun  *		the sensor's supply regulators
22*4882a593Smuzhiyun  */
23*4882a593Smuzhiyun struct m5mols_platform_data {
24*4882a593Smuzhiyun 	int gpio_reset;
25*4882a593Smuzhiyun 	u8 reset_polarity;
26*4882a593Smuzhiyun 	int (*set_power)(struct device *dev, int on);
27*4882a593Smuzhiyun };
28*4882a593Smuzhiyun 
29*4882a593Smuzhiyun #endif	/* MEDIA_M5MOLS_H */
30