PDK API Guide for J721E
csirx_socPriv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2018-2022
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 CSIRX_SOC_PRIV_H_
49 #define CSIRX_SOC_PRIV_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 CSIRX_STREAM_ID_INST_0_STRM_0 ((uint32_t) 0x0U)
76 
77 #define CSIRX_STREAM_ID_INST_0_STRM_1 ((uint32_t) 0x1U)
78 
79 #define CSIRX_STREAM_ID_INST_0_STRM_2 ((uint32_t) 0x2U)
80 
81 #define CSIRX_STREAM_ID_INST_0_STRM_3 ((uint32_t) 0x3U)
82 
83 #define CSIRX_STREAM_ID_INST_1_STRM_0 ((uint32_t) 0x4U)
84 
85 #define CSIRX_STREAM_ID_INST_1_STRM_1 ((uint32_t) 0x5U)
86 
87 #define CSIRX_STREAM_ID_INST_1_STRM_2 ((uint32_t) 0x6U)
88 
89 #define CSIRX_STREAM_ID_INST_1_STRM_3 ((uint32_t) 0x7U)
90 #if defined (SOC_J784S4)
91 
92 #define CSIRX_STREAM_ID_INST_2_STRM_0 ((uint32_t) 0x8U)
93 
94 #define CSIRX_STREAM_ID_INST_2_STRM_1 ((uint32_t) 0x9U)
95 
96 #define CSIRX_STREAM_ID_INST_2_STRM_2 ((uint32_t) 0xAU)
97 
98 #define CSIRX_STREAM_ID_INST_2_STRM_3 ((uint32_t) 0xBU)
99 #endif
100 /* @} */
101 /* ========================================================================== */
102 /* Structure Declarations */
103 /* ========================================================================== */
111 typedef struct
112 {
113  uint32_t numInstances;
115  uint32_t numCaptCh;
117  uint32_t numOtfCh;
119  uint32_t numLpbkfCh;
121  uint32_t numCaptStrms;
123  uint32_t numOtfStrms;
125  uint32_t numLpbkfStrms;
131  uint32_t modAddr[CSIRX_INSTANCE_ID_MAX];
133  uint32_t shimAddr[CSIRX_INSTANCE_ID_MAX];
135  uint32_t psilThreadIdStart[CSIRX_INSTANCE_ID_MAX];
137  uint32_t dPhyWrapAddr[CSIRX_INSTANCE_ID_MAX];
139  uint32_t dPhyCoreAddr[CSIRX_INSTANCE_ID_MAX];
142 
143 /* ========================================================================== */
144 /* Internal/Private Function Declarations */
145 /* ========================================================================== */
146 
147 /* None */
148 
149 /* ========================================================================== */
150 /* Function Declarations */
151 /* ========================================================================== */
159 void CsirxDrv_initPlatData(Csirx_PlatformData *platformData);
160 
161 /* ========================================================================== */
162 /* Static Function Definitions */
163 /* ========================================================================== */
164 
165 /* None */
166 
167 #ifdef __cplusplus
168 }
169 #endif
170 
171 /* @} */
172 
173 #endif /* #ifndef CSIRX_SOC_PRIV_H_ */
#define CSIRX_MAX_NUM_OF_STREAMS
Definition: csirx_if.h:61
uint32_t numInstances
Definition: csirx_socPriv.h:113
uint32_t numOtfStrms
Definition: csirx_socPriv.h:123
uint32_t numOtfCh
Definition: csirx_socPriv.h:117
uint32_t numLpbkfStrms
Definition: csirx_socPriv.h:125
uint32_t numCaptCh
Definition: csirx_socPriv.h:115
void CsirxDrv_initPlatData(Csirx_PlatformData *platformData)
This function should be used to initialize platform data for the given SoC.
#define CSIRX_INSTANCE_ID_MAX
Definition: csirx_soc.h:83
uint32_t numCaptStrms
Definition: csirx_socPriv.h:121
This structure holds information about CSI Rx instances available in current SoC.
Definition: csirx_socPriv.h:111
uint32_t numLpbkfCh
Definition: csirx_socPriv.h:119