diff options
| author | Ruicheng Dai <rdai@nvidia.com> | 2017-12-11 05:51:11 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-12 23:00:17 -0400 |
| commit | aaa65f73dc90b76db346288d5237a83af5b0246b (patch) | |
| tree | c6bcd3eed79d199250d7b66daa631ffcd95520b2 /include | |
| parent | f62a90bb79f4dc2f5385d9913a0dea74cb83bf01 (diff) | |
media: tegra: camera: add VC support
add virtual channel support to t19x
Bug 1947553
Change-Id: I59286411ecd49cb2882c56f58e7cf8f4765cd8ab
Signed-off-by: Ruicheng Dai <rdai@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1656669
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vincent Chung <vincentc@nvidia.com>
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/csi.h | 2 | ||||
| -rw-r--r-- | include/media/mc_common.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/media/csi.h b/include/media/csi.h index 59130f647..4653e2605 100644 --- a/include/media/csi.h +++ b/include/media/csi.h | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
| 25 | 25 | ||
| 26 | #define MAX_CSI_BLOCK_LANES 4 | 26 | #define MAX_CSI_BLOCK_LANES 4 |
| 27 | #define NUM_TPG_INSTANCE 6 | ||
| 27 | 28 | ||
| 28 | enum tegra_csi_port_num { | 29 | enum tegra_csi_port_num { |
| 29 | PORT_A = 0, | 30 | PORT_A = 0, |
| @@ -116,6 +117,7 @@ struct tegra_csi_channel { | |||
| 116 | struct tegra_csi_device *csi; | 117 | struct tegra_csi_device *csi; |
| 117 | struct tegra_csi_port *ports; | 118 | struct tegra_csi_port *ports; |
| 118 | unsigned char port[TEGRA_CSI_BLOCKS]; | 119 | unsigned char port[TEGRA_CSI_BLOCKS]; |
| 120 | unsigned int virtual_channel; | ||
| 119 | struct mutex format_lock; | 121 | struct mutex format_lock; |
| 120 | unsigned int numports; | 122 | unsigned int numports; |
| 121 | unsigned int numlanes; | 123 | unsigned int numlanes; |
diff --git a/include/media/mc_common.h b/include/media/mc_common.h index ff512c925..b41b29fba 100644 --- a/include/media/mc_common.h +++ b/include/media/mc_common.h | |||
| @@ -152,6 +152,7 @@ struct tegra_channel { | |||
| 152 | struct mutex stop_kthread_lock; | 152 | struct mutex stop_kthread_lock; |
| 153 | 153 | ||
| 154 | unsigned char port[TEGRA_CSI_BLOCKS]; | 154 | unsigned char port[TEGRA_CSI_BLOCKS]; |
| 155 | unsigned int virtual_channel; | ||
| 155 | unsigned int syncpt[TEGRA_CSI_BLOCKS][MAX_SYNCPT_PER_CHANNEL]; | 156 | unsigned int syncpt[TEGRA_CSI_BLOCKS][MAX_SYNCPT_PER_CHANNEL]; |
| 156 | unsigned int syncpoint_fifo[TEGRA_CSI_BLOCKS]; | 157 | unsigned int syncpoint_fifo[TEGRA_CSI_BLOCKS]; |
| 157 | unsigned int buffer_offset[TEGRA_CSI_BLOCKS]; | 158 | unsigned int buffer_offset[TEGRA_CSI_BLOCKS]; |
