PDK API Guide for J721E
csitx_cfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2020
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the
15  * distribution.
16  *
17  * Neither the name of Texas Instruments Incorporated nor the names of
18  * its contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  */
33 
48 #ifndef CSITX_CFG_H_
49 #define CSITX_CFG_H_
50 
51 /* ========================================================================== */
52 /* Include Files */
53 /* ========================================================================== */
54 
55 /* None */
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 /* ========================================================================== */
62 /* Macros & Typedefs */
63 /* ========================================================================== */
75 #define CSITX_NUM_CH (4U)
76 
77 #define CSITX_CH_ID_DEFAULT ((uint32_t) 0x00U)
78 
80 #define CSITX_VC_NUM_DEFAULT ((uint32_t) 0x00U)
81 
82 #define CSITX_OUT_DT_DEFAULT (FVID2_CSI2_DF_RAW12)
83 
84 #define CSITX_IN_FRAME_WIDTH_DEFAULT (1920U)
85 
86 #define CSITX_IN_FRAME_HEIGHT_DEFAULT (1080U)
87 
89 #define CSITX_IN_FRAME_HB_DEFAULT (0U)
90 
92 #define CSITX_IN_FRAME_VB_DEFAULT (0U)
93 
95 #define CSITX_TX_QUEUE_DEPTH_PER_CH ((uint32_t)10U)
96 
99 #define CSITX_TIMEOUT_VAL_MS ((uint32_t)10U)
100 
102 #define CSITX_DRV_ENABLE_EXTENDED_DT (1U)
103 
105 #define CSITX_DRV_ENABLE_LS_LE (0U)
106 /* @} */
107 
108 
110 #define CsitxTrace ((uint32_t) GT_INFO |\
111  (uint32_t) GT_TraceState_Enable)
112 
115 #define CSITX_DRV_ENABLE_DEBUG (1U)
116 
117 #define CSITX_DRV_LOG_CNT (100U)
118 /* ========================================================================== */
119 /* Structure Declarations */
120 /* ========================================================================== */
121 
122 /* ========================================================================== */
123 /* Internal/Private Function Declarations */
124 /* ========================================================================== */
125 /* None */
126 
127 /* ========================================================================== */
128 /* Function Declarations */
129 /* ========================================================================== */
130 
131 /* None */
132 
133 /* ========================================================================== */
134 /* Static Function Definitions */
135 /* ========================================================================== */
136 /* None */
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif /* #ifndef CSITX_CFG_H_ */
143 
144 /* @} */