summaryrefslogtreecommitdiff
path: root/include/media/tegra_v4l2_camera.h
blob: f6390b6e5609d24642a09bbdfa945c562cc774e9 (plain)
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
39
40
/*
 * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _TEGRA_CAMERA_H_
#define _TEGRA_CAMERA_H_

#include <linux/regulator/consumer.h>
#include <linux/i2c.h>
#include <linux/nvhost.h>

enum tegra_camera_port {
	TEGRA_CAMERA_PORT_CSI_A = 1,
	TEGRA_CAMERA_PORT_CSI_B,
	TEGRA_CAMERA_PORT_VIP,
};

struct tegra_camera_platform_data {
	int			(*enable_camera)(struct nvhost_device *ndev);
	void			(*disable_camera)(struct nvhost_device *ndev);
	bool			flip_h;
	bool			flip_v;
	enum tegra_camera_port	port;
	int			lanes;		/* For CSI port only */
	bool			continuous_clk;	/* For CSI port only */
};

#endif /* _TEGRA_CAMERA_H_ */