mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Add TPS2H160B device PoC support for p3898 platform Bug 4066218 Change-Id: I9b237d233614e1a23b08b91101db9be9db8e4958 Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2885804 (cherry picked from commit ab43d7eab8918cad5afccc1b7cb66b3ee65bf08f) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2889935 Reviewed-by: Frank Chen <frankc@nvidia.com> Reviewed-by: Aniket Bahadarpurkar <aniketb@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
// Copyright (c) 2020-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
|
|
#ifndef __UAPI_CDI_DEV_H__
|
|
#define __UAPI_CDI_DEV_H__
|
|
|
|
#include <linux/ioctl.h>
|
|
#include <linux/types.h>
|
|
|
|
#define CDI_DEV_PKG_FLAG_WR 1
|
|
|
|
#define CDI_DEV_IOCTL_RW _IOW('o', 1, struct cdi_dev_package)
|
|
#define CDI_DEV_IOCTL_GET_PWR_INFO _IOW('o', 2, struct cdi_dev_pwr_ctrl_info)
|
|
#define CDI_DEV_IOCTL_FRSYNC_MUX _IOW('o', 3, struct cdi_dev_fsync_mux)
|
|
|
|
#define DES_PWR_NVCCP 0U
|
|
#define DES_PWR_GPIO 1U
|
|
#define DES_PWR_NO_PWR 0xFFU
|
|
#define CAM_PWR_NVCCP 0U
|
|
#define CAM_PWR_MAX20087 1U
|
|
#define CAM_PWR_TPS160 2U
|
|
#define CAM_PWR_NO_PWR 0xFFU
|
|
|
|
#define MAX_POWER_LINKS_PER_BLOCK (4U)
|
|
|
|
struct __attribute__ ((__packed__)) cdi_dev_pwr_ctrl_info {
|
|
__s8 cam_pwr_method;
|
|
__s8 cam_pwr_i2c_addr;
|
|
__u8 cam_pwr_links[MAX_POWER_LINKS_PER_BLOCK];
|
|
};
|
|
|
|
struct cdi_dev_fsync_mux {
|
|
__s8 mux_sel;
|
|
__s8 cam_grp;
|
|
};
|
|
|
|
struct __attribute__ ((__packed__)) cdi_dev_package {
|
|
__u16 offset;
|
|
__u16 offset_len;
|
|
__u32 size;
|
|
__u32 flags;
|
|
unsigned long buffer;
|
|
};
|
|
|
|
#endif /* __UAPI_CDI_DEV_H__ */
|