diff options
author | Sudhir Vyas <svyas@nvidia.com> | 2018-06-27 13:40:54 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-29 15:57:42 -0400 |
commit | a126ba0addf99211530e1afdcec972c818685fcb (patch) | |
tree | af922cde691455b3069ab7b1d79d2c9639c60d23 /include | |
parent | c58d3b8e42ddb1d6de12014a324cb725add01d1f (diff) |
media: define gmsl header
Bug 200407741
Change-Id: I6c0de55073ecbec734aecb57392948787151510b
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1763274
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@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/gmsl-link.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/include/media/gmsl-link.h b/include/media/gmsl-link.h new file mode 100644 index 000000000..70782abb0 --- /dev/null +++ b/include/media/gmsl-link.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /** | ||
2 | * Copyright (c) 2018, NVIDIA Corporation. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #ifndef __GMSL_LINK_H__ | ||
18 | #define __GMSL_LINK_H__ | ||
19 | |||
20 | #define GMSL_CSI_1X4_MODE 0x1 | ||
21 | #define GMSL_CSI_2X4_MODE 0x2 | ||
22 | #define GMSL_CSI_2X2_MODE 0x3 | ||
23 | #define GMSL_CSI_4X2_MODE 0x4 | ||
24 | |||
25 | #define GMSL_CSI_PORT_A 0x0 | ||
26 | #define GMSL_CSI_PORT_B 0x1 | ||
27 | |||
28 | #define GMSL_ST_ID_UNUSED 0XFF | ||
29 | |||
30 | #define GMSL_PIPE_X_ID 0x1 | ||
31 | #define GMSL_PIPE_Y_ID 0x2 | ||
32 | #define GMSL_PIPE_Z_ID 0x3 | ||
33 | #define GMSL_PIPE_U_ID 0x4 | ||
34 | |||
35 | /* Didn't find kernel defintions, for now adding here */ | ||
36 | #define GMSL_CSI_DT_RAW_12 0x2C | ||
37 | #define GMSL_CSI_DT_UED_U1 0x30 | ||
38 | |||
39 | #define GMSL_DEV_MAX_NUM_DATA_STREAMS 4 | ||
40 | |||
41 | struct gmsl_stream { | ||
42 | __u32 st_id_sel; | ||
43 | __u32 st_data_type; | ||
44 | __u32 pipe_id; | ||
45 | }; | ||
46 | |||
47 | struct gmsl_link_data { | ||
48 | __u32 st_vc; | ||
49 | __u32 dst_vc; | ||
50 | __u32 src_csi_port; | ||
51 | __u32 dst_csi_port; | ||
52 | __u32 num_streams; | ||
53 | __u32 num_csi_lanes; | ||
54 | __u32 csi_mode; | ||
55 | struct gmsl_stream streams[GMSL_DEV_MAX_NUM_DATA_STREAMS]; | ||
56 | struct device *s_dev; | ||
57 | }; | ||
58 | |||
59 | #endif /* __GMSL_LINK_H__ */ | ||