drivers: media: CDI: Add IO Expander support

Add IO Expander support in CDI Dev to control the FRSYNC multiplexer
with the speicific platform

Bug 3582660

Change-Id: I3ee376e7a0bccabcfa16efb228879d4df0d65748
Signed-off-by: Junghyun Kim <juskim@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2727256
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2824551
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Junghyun Kim
2022-06-09 07:10:42 -07:00
committed by mobile promotions
parent eb1d8b3b58
commit 9269dac3ec
6 changed files with 329 additions and 109 deletions

View File

@@ -11,6 +11,7 @@
#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
@@ -27,6 +28,11 @@ struct __attribute__ ((__packed__)) cdi_dev_pwr_ctrl_info {
__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;