mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
Add imx274 camera sensor driver code, mode tables and makefile changes. Bug 3583587 Change-Id: Ica3d468715a2bd1113ecdadef4f4d4d044e210ac Signed-off-by: Ankur Pawar <ankurp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2856283 Reviewed-by: Semi Malinen <smalinen@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (c) 2016-2023, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __UAPI_IMX274_H__
|
|
#define __UAPI_IMX274_H__
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
#define IMX274_IOCTL_SET_MODE _IOW('o', 1, struct imx274_mode)
|
|
#define IMX274_IOCTL_GET_STATUS _IOR('o', 2, __u8)
|
|
#define IMX274_IOCTL_SET_FRAME_LENGTH _IOW('o', 3, __u32)
|
|
#define IMX274_IOCTL_SET_COARSE_TIME _IOW('o', 4, __u32)
|
|
#define IMX274_IOCTL_SET_GAIN _IOW('o', 5, __u16)
|
|
#define IMX274_IOCTL_GET_SENSORDATA _IOR('o', 6, \
|
|
struct imx274_sensordata)
|
|
#define IMX274_IOCTL_SET_GROUP_HOLD _IOW('o', 7, struct imx274_ae)
|
|
#define IMX274_IOCTL_SET_HDR_COARSE_TIME _IOW('o', 8, \
|
|
struct imx274_hdr)
|
|
#define IMX274_IOCTL_SET_POWER _IOW('o', 20, __u32)
|
|
|
|
struct imx274_mode {
|
|
__u32 xres;
|
|
__u32 yres;
|
|
__u32 frame_length;
|
|
__u32 coarse_time;
|
|
__u32 coarse_time_short;
|
|
__u16 gain;
|
|
__u8 hdr_en;
|
|
};
|
|
|
|
struct imx274_hdr {
|
|
__u32 coarse_time_long;
|
|
__u32 coarse_time_short;
|
|
};
|
|
|
|
struct imx274_ae {
|
|
__u32 frame_length;
|
|
__u8 frame_length_enable;
|
|
__u32 coarse_time;
|
|
__u32 coarse_time_short;
|
|
__u8 coarse_time_enable;
|
|
__s32 gain;
|
|
__u8 gain_enable;
|
|
};
|
|
|
|
#endif /* __UAPI_IMX274_H__ */
|