WIP FPC-III support
[linux/fpc-iii.git] / include / media / i2c / s5k6aa.h
blobfd78e85e8b78e9d6797714ed286a1134c8cb6586
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * S5K6AAFX camera sensor driver header
5 * Copyright (C) 2011 Samsung Electronics Co., Ltd.
6 */
8 #ifndef S5K6AA_H
9 #define S5K6AA_H
11 #include <media/v4l2-mediabus.h>
13 /**
14 * struct s5k6aa_gpio - data structure describing a GPIO
15 * @gpio: GPIO number
16 * @level: indicates active state of the @gpio
18 struct s5k6aa_gpio {
19 int gpio;
20 int level;
23 /**
24 * struct s5k6aa_platform_data - s5k6aa driver platform data
25 * @set_power: an additional callback to the board code, called
26 * after enabling the regulators and before switching
27 * the sensor off
28 * @mclk_frequency: sensor's master clock frequency in Hz
29 * @gpio_reset: GPIO driving RESET pin
30 * @gpio_stby: GPIO driving STBY pin
31 * @nlanes: maximum number of MIPI-CSI lanes used
32 * @horiz_flip: default horizontal image flip value, non zero to enable
33 * @vert_flip: default vertical image flip value, non zero to enable
36 struct s5k6aa_platform_data {
37 int (*set_power)(int enable);
38 unsigned long mclk_frequency;
39 struct s5k6aa_gpio gpio_reset;
40 struct s5k6aa_gpio gpio_stby;
41 enum v4l2_mbus_type bus_type;
42 u8 nlanes;
43 u8 horiz_flip;
44 u8 vert_flip;
47 #endif /* S5K6AA_H */