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
32 * @nlanes: maximum number of MIPI-CSI lanes used
33 * @horiz_flip: default horizontal image flip value, non zero to enable
34 * @vert_flip: default vertical image flip value, non zero to enable
37 struct s5k6aa_platform_data {
38 int (*set_power)(int enable);
39 unsigned long mclk_frequency;
40 struct s5k6aa_gpio gpio_reset;
41 struct s5k6aa_gpio gpio_stby;
42 enum v4l2_mbus_type bus_type;