-
Notifications
You must be signed in to change notification settings - Fork 2
/
genx320.h
38 lines (31 loc) · 948 Bytes
/
genx320.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __INCLUDED_GENX32__
#define __INCLUDED_GENX32__
#include <media/v4l2-subdev.h>
#include "psee_controls.h"
#define GENX320_MAX_NUM_SUPPLIES 3
/**
* struct genx320 - genx320 sensor device structure
* @dev: Pointer to generic device
* @client: Pointer to i2c client
* @sd: V4L2 sub-device
* @pad: Media pad. Only one pad supported
* @nreset_gpio: Sensor RSTn gpio
* @inclk: Sensor input clock
* @supplies: Regulator supplies
* @mutex: Mutex for serializing sensor controls
* @link_freq: frequency of the CSI-2 clock lane
* @format_code: Media-ctl code of the output format
* @streaming: Flag indicating streaming state
*/
struct genx320 {
struct media_pad pad;
struct gpio_desc *nreset_gpio;
struct clk *inclk;
struct regulator_bulk_data supplies[GENX320_MAX_NUM_SUPPLIES];
struct mutex mutex;
struct psee_v4l2_ctrl_wrapper pcw;
s64 link_freq;
u32 format_code;
};
#endif