mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
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>
43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* sensor_common.h - utilities for tegra camera driver
|
|
*
|
|
* Copyright (c) 2017-2022, NVIDIA Corporation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __sensor_common__
|
|
#define __sensor_common__
|
|
|
|
#include <linux/delay.h>
|
|
#include <linux/fs.h>
|
|
#include <linux/i2c.h>
|
|
#include <linux/regmap.h>
|
|
#include <linux/clk.h>
|
|
#include <linux/regulator/consumer.h>
|
|
#include <linux/platform_device.h>
|
|
#include <linux/videodev2.h>
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/debugfs.h>
|
|
|
|
#include <media/v4l2-device.h>
|
|
#include <media/v4l2-subdev.h>
|
|
#include <media/v4l2-ctrls.h>
|
|
#include <linux/v4l2-mediabus.h>
|
|
#include <media/tegra-v4l2-camera.h>
|
|
#include <uapi/media/camera_device.h>
|
|
|
|
struct sensor_properties {
|
|
struct sensor_cfg cfg;
|
|
/* sensor_modes points to an array of mode properties */
|
|
struct sensor_mode_properties *sensor_modes;
|
|
u32 num_modes;
|
|
};
|
|
|
|
int sensor_common_parse_num_modes(const struct device *dev);
|
|
int sensor_common_init_sensor_properties(
|
|
struct device *dev, struct device_node *node,
|
|
struct sensor_properties *sensor);
|
|
|
|
#endif /* __sensor_common__ */
|