1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * S5K6AAFX camera sensor driver header
5 * Copyright (C) 2011 Samsung Electronics Co., Ltd.
11 #include <media/v4l2-mediabus.h>
14 * struct s5k6aa_gpio - data structure describing a GPIO
16 * @level: indicates active state of the @gpio
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
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
;