Files
linux-nv-oot/include/media/tegra_v4l2_camera.h
Frank Chen 92ac7bc35a media: camera: Build tegra-camera as OOT module
Port camera drivers below from /kenrel/nvidia to
/kernel/nvidia-oot as OOT modules:
- Fusa-capture driver
- Tegra V4L2 framework driver
- vi/csi driver
- tegra camera platform driver

Change-Id: I390af27096425bb11e0934201dd1a90f001bb3fa
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2780698
Reviewed-by: FNU Raunak <fraunak@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2022-12-13 06:15:42 -08:00

37 lines
913 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2012-2022, NVIDIA CORPORATION. All rights reserved.
*/
#ifndef _TEGRA_CAMERA_H_
#define _TEGRA_CAMERA_H_
#include <linux/regulator/consumer.h>
#include <linux/i2c.h>
enum tegra_camera_port {
TEGRA_CAMERA_PORT_CSI_A = 0,
TEGRA_CAMERA_PORT_CSI_B,
TEGRA_CAMERA_PORT_CSI_C,
TEGRA_CAMERA_PORT_CSI_D,
TEGRA_CAMERA_PORT_CSI_E,
TEGRA_CAMERA_PORT_CSI_F,
TEGRA_CAMERA_PORT_VIP,
};
struct tegra_camera_platform_data {
int (*enable_camera)(struct platform_device *pdev);
void (*disable_camera)(struct platform_device *pdev);
bool flip_h;
bool flip_v;
enum tegra_camera_port port;
int lanes; /* For CSI port only */
bool continuous_clk; /* For CSI port only */
};
struct i2c_camera_ctrl {
int (*new_devices)(struct platform_device *pdev);
void (*remove_devices)(struct platform_device *pdev);
};
#endif /* _TEGRA_CAMERA_H_ */