]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/boot/sbl/src/sbl_eve/sbl_lib/src/am57xx/sbl_lib_priv.h
Removed stale IPC examples
[processor-sdk/pdk.git] / packages / ti / boot / sbl / src / sbl_eve / sbl_lib / src / am57xx / sbl_lib_priv.h
1 /*
2  *  Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  *  Redistribution and use in source and binary forms, with or without
5  *  modification, are permitted provided that the following conditions
6  *  are met:
7  *
8  *    Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  *
11  *    Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the
14  *    distribution.
15  *
16  *    Neither the name of Texas Instruments Incorporated nor the names of
17  *    its contributors may be used to endorse or promote products derived
18  *    from this software without specific prior written permission.
19  *
20  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
34 /**
35  *  \file     sbl_lib_am57xx_priv.h
36  *
37  *  \brief    This file contains the platform specific private layer of
38  *            Secondary Bootloader(SBL) Library for AM57xx SOC Family.
39  *            This also contains some related macros.
40  */
42 #ifndef SBL_LIB_AM57XX_PRIV_H_
43 #define SBL_LIB_AM57XX_PRIV_H_
45 /* ========================================================================== */
46 /*                             Include Files                                  */
47 /* ========================================================================== */
49 /* None */
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
55 /* ========================================================================== */
56 /*                           Macros & Typedefs                                */
57 /* ========================================================================== */
59 /**
60  * \brief  This macro contains the size of OCMC1 (512 KB).
61  */
62 #define SBLLIB_SOC_OCMC_RAM1_SIZE                       ((uint32_t) 0x00080000U)
64 /**
65  * \brief  This macro contains the size of OCMC2 (1 MB).
66  */
67 #define SBLLIB_SOC_OCMC_RAM2_SIZE                       ((uint32_t) 0x00100000U)
69 /**
70  * \brief  This macro contains the size of OCMC3 (1 MB).
71  */
72 #define SBLLIB_SOC_OCMC_RAM3_SIZE                       ((uint32_t) 0x00100000U)
74 /**
75  * \brief  This macro contains the L2 base address of DSP.
76  */
77 #define SBLLIB_SOC_DSP_L2_BASE                          ((uint32_t) 0x00800000U)
79 /**
80  * \brief  This macro contains the L1P base address of DSP.
81  */
82 #define SBLLIB_SOC_DSP_L1P_BASE                         ((uint32_t) 0x00E00000U)
84 /**
85  * \brief  This macro contains the L1D base address of DSP.
86  */
87 #define SBLLIB_SOC_DSP_L1D_BASE                         ((uint32_t) 0x00F00000U)
89 /**
90  * \brief  This macro contains the DMEM base address of EVE.
91  */
92 #define SBLLIB_SOC_EVE_DMEM_BASE                        ((uint32_t) 0x40020000U)
94 /**
95  * \brief  This macro contains the WBUF base address of EVE.
96  */
97 #define SBLLIB_SOC_EVE_WBUF_BASE                        ((uint32_t) 0x40040000U)
99 /**
100  * \brief  This macro contains the IBUF LA base address of EVE.
101  */
102 #define SBLLIB_SOC_EVE_IBUF_LA_BASE                     ((uint32_t) 0x40050000U)
104 /**
105  * \brief  This macro contains the IBUF HA base address of EVE.
106  */
107 #define SBLLIB_SOC_EVE_IBUF_HA_BASE                     ((uint32_t) 0x40054000U)
109 /**
110  * \brief  This macro contains the IBUF LB base address of EVE.
111  */
112 #define SBLLIB_SOC_EVE_IBUF_LB_BASE                     ((uint32_t) 0x40070000U)
114 /**
115  * \brief  This macro contains the IBUF HB base address of EVE.
116  */
117 #define SBLLIB_SOC_EVE_IBUF_HB_BASE                     ((uint32_t) 0x40074000U)
119 #if defined (__ARM_ARCH_7A__)
120 /**
121  * \brief  This macro contains the base address of EVE1's MMU as accessed from
122  *         L3.
123  */
124 #define SBLLIB_SOC_L3_EVE1_MMU0_BASE                    (SOC_EVE1_MMU0_BASE)
126 /**
127  * \brief  This macro contains the DMEM base address of EVE1 as accessed from
128  *         L3.
129  */
130 #define SBLLIB_SOC_L3_EVE1_DMEM_BASE                    (SOC_EVE1_DMEM_BASE)
132 /**
133  * \brief  This macro contains the WBUF base address of EVE1 as accessed from
134  *         L3.
135  */
136 #define SBLLIB_SOC_L3_EVE1_WBUF_BASE                    (SOC_EVE1_WBUF_BASE)
138 /**
139  * \brief  This macro contains the IBUF LA base address of EVE1 as accessed from
140  *         L3.
141  */
142 #define SBLLIB_SOC_L3_EVE1_IBUF_LA_BASE                 (SOC_EVE1_IBUFLA_BASE)
144 /**
145  * \brief  This macro contains the IBUF HA base address of EVE1 as accessed from
146  *         L3.
147  */
148 #define SBLLIB_SOC_L3_EVE1_IBUF_HA_BASE                 (SOC_EVE1_IBUFHA_BASE)
150 /**
151  * \brief  This macro contains the IBUF LB base address of EVE1 as accessed from
152  *         L3.
153  */
154 #define SBLLIB_SOC_L3_EVE1_IBUF_LB_BASE                 (SOC_EVE1_IBUFLB_BASE)
156 /**
157  * \brief  This macro contains the IBUF HB base address of EVE1 as accessed from
158  *         L3.
159  */
160 #define SBLLIB_SOC_L3_EVE1_IBUF_HB_BASE                 (SOC_EVE1_IBUFHB_BASE)
162 /**
163  * \brief  This macro contains the TPTC0 base address of EVE1 as accessed from
164  *         L3.
165  */
166 #define SBLLIB_SOC_L3_EVE1_TPTC0_BASE                   (SOC_EVE1_TPTC0_BASE)
168 /**
169  * \brief  This macro contains the TPTC1 base address of EVE1 as accessed from
170  *         L3.
171  */
172 #define SBLLIB_SOC_L3_EVE1_TPTC1_BASE                   (SOC_EVE1_TPTC1_BASE)
174 /**
175  * \brief  This macro contains the base address of EVE2's MMU as accessed from
176  *         L3.
177  */
178 #define SBLLIB_SOC_L3_EVE2_MMU0_BASE                    (SOC_EVE2_MMU0_BASE)
180 /**
181  * \brief  This macro contains the DMEM base address of EVE2 as accessed from
182  *         L3.
183  */
184 #define SBLLIB_SOC_L3_EVE2_DMEM_BASE                    (SOC_EVE2_DMEM_BASE)
186 /**
187  * \brief  This macro contains the WBUF base address of EVE2 as accessed from
188  *         L3.
189  */
190 #define SBLLIB_SOC_L3_EVE2_WBUF_BASE                    (SOC_EVE2_WBUF_BASE)
192 /**
193  * \brief  This macro contains the IBUF LA base address of EVE2 as accessed from
194  *         L3.
195  */
196 #define SBLLIB_SOC_L3_EVE2_IBUF_LA_BASE                 (SOC_EVE2_IBUFLA_BASE)
198 /**
199  * \brief  This macro contains the IBUF HA base address of EVE2 as accessed from
200  *         L3.
201  */
202 #define SBLLIB_SOC_L3_EVE2_IBUF_HA_BASE                 (SOC_EVE2_IBUFHA_BASE)
204 /**
205  * \brief  This macro contains the IBUF LB base address of EVE2 as accessed from
206  *         L3.
207  */
208 #define SBLLIB_SOC_L3_EVE2_IBUF_LB_BASE                 (SOC_EVE2_IBUFLB_BASE)
210 /**
211  * \brief  This macro contains the IBUF HB base address of EVE2 as accessed from
212  *         L3.
213  */
214 #define SBLLIB_SOC_L3_EVE2_IBUF_HB_BASE                 (SOC_EVE2_IBUFHB_BASE)
216 /**
217  * \brief  This macro contains the TPTC0 base address of EVE2 as accessed from
218  *         L3.
219  */
220 #define SBLLIB_SOC_L3_EVE2_TPTC0_BASE                   (SOC_EVE2_TPTC0_BASE)
222 /**
223  * \brief  This macro contains the TPTC1 base address of EVE2 as accessed from
224  *         L3.
225  */
226 #define SBLLIB_SOC_L3_EVE2_TPTC1_BASE                   (SOC_EVE2_TPTC1_BASE)
228 /**
229  * \brief  This macro contains the base address of EVE3's MMU as accessed from
230  *         L3.
231  */
232 #define SBLLIB_SOC_L3_EVE3_MMU0_BASE                    (SOC_EVE3_MMU0_BASE)
234 /**
235  * \brief  This macro contains the DMEM base address of EVE3 as accessed from
236  *         L3.
237  */
238 #define SBLLIB_SOC_L3_EVE3_DMEM_BASE                    (SOC_EVE3_DMEM_BASE)
240 /**
241  * \brief  This macro contains the WBUF base address of EVE3 as accessed from
242  *         L3.
243  */
244 #define SBLLIB_SOC_L3_EVE3_WBUF_BASE                    (SOC_EVE3_WBUF_BASE)
246 /**
247  * \brief  This macro contains the IBUF LA base address of EVE3 as accessed from
248  *         L3.
249  */
250 #define SBLLIB_SOC_L3_EVE3_IBUF_LA_BASE                 (SOC_EVE3_IBUFLA_BASE)
252 /**
253  * \brief  This macro contains the IBUF HA base address of EVE3 as accessed from
254  *         L3.
255  */
256 #define SBLLIB_SOC_L3_EVE3_IBUF_HA_BASE                 (SOC_EVE3_IBUFHA_BASE)
258 /**
259  * \brief  This macro contains the IBUF LB base address of EVE3 as accessed from
260  *         L3.
261  */
262 #define SBLLIB_SOC_L3_EVE3_IBUF_LB_BASE                 (SOC_EVE3_IBUFLB_BASE)
264 /**
265  * \brief  This macro contains the IBUF HB base address of EVE3 as accessed from
266  *         L3.
267  */
268 #define SBLLIB_SOC_L3_EVE3_IBUF_HB_BASE                 (SOC_EVE3_IBUFHB_BASE)
270 /**
271  * \brief  This macro contains the TPTC0 base address of EVE3 as accessed from
272  *         L3.
273  */
274 #define SBLLIB_SOC_L3_EVE3_TPTC0_BASE                   (SOC_EVE3_TPTC0_BASE)
276 /**
277  * \brief  This macro contains the TPTC1 base address of EVE3 as accessed from
278  *         L3.
279  */
280 #define SBLLIB_SOC_L3_EVE3_TPTC1_BASE                   (SOC_EVE3_TPTC1_BASE)
282 /**
283  * \brief  This macro contains the base address of EVE4's MMU as accessed from
284  *         L3.
285  */
286 #define SBLLIB_SOC_L3_EVE4_MMU0_BASE                    (SOC_EVE4_MMU0_BASE)
288 /**
289  * \brief  This macro contains the DMEM base address of EVE4 as accessed from
290  *         L3.
291  */
292 #define SBLLIB_SOC_L3_EVE4_DMEM_BASE                    (SOC_EVE4_DMEM_BASE)
294 /**
295  * \brief  This macro contains the WBUF base address of EVE4 as accessed from
296  *         L3.
297  */
298 #define SBLLIB_SOC_L3_EVE4_WBUF_BASE                    (SOC_EVE4_WBUF_BASE)
300 /**
301  * \brief  This macro contains the IBUF LA base address of EVE4 as accessed from
302  *         L3.
303  */
304 #define SBLLIB_SOC_L3_EVE4_IBUF_LA_BASE                 (SOC_EVE4_IBUFLA_BASE)
306 /**
307  * \brief  This macro contains the IBUF HA base address of EVE4 as accessed from
308  *         L3.
309  */
310 #define SBLLIB_SOC_L3_EVE4_IBUF_HA_BASE                 (SOC_EVE4_IBUFHA_BASE)
312 /**
313  * \brief  This macro contains the IBUF LB base address of EVE4 as accessed from
314  *         L3.
315  */
316 #define SBLLIB_SOC_L3_EVE4_IBUF_LB_BASE                 (SOC_EVE4_IBUFLB_BASE)
318 /**
319  * \brief  This macro contains the IBUF HB base address of EVE4 as accessed from
320  *         L3.
321  */
322 #define SBLLIB_SOC_L3_EVE4_IBUF_HB_BASE                 (SOC_EVE4_IBUFHB_BASE)
324 /**
325  * \brief  This macro contains the TPTC0 base address of EVE4 as accessed from
326  *         L3.
327  */
328 #define SBLLIB_SOC_L3_EVE4_TPTC0_BASE                   (SOC_EVE4_TPTC0_BASE)
330 /**
331  * \brief  This macro contains the TPTC1 base address of EVE4 as accessed from
332  *         L3.
333  */
334 #define SBLLIB_SOC_L3_EVE4_TPTC1_BASE                   (SOC_EVE4_TPTC1_BASE)
335 #endif
337 /**
338  * \brief  This macro contains the EVE core's boot address when there is no
339  *         App Image for EVE.
340  */
341 #define SBLLIB_EVE_BOOT_ADDRESS_NO_IMAGE                ((uint32_t) 0x80000000U)
343 /**
344  * \brief  This macro contains the EVE core's reset vector address when there
345  *         is no App Image for EVE.
346  */
347 #define SBLLIB_EVE_RESET_VECTOR_ADDRESS_NO_IMAGE       ( \
348         SBLLIB_EVE_BOOT_ADDRESS_NO_IMAGE + 0x100U)
350 /* ========================================================================== */
351 /*                         Structures and Enums                               */
352 /* ========================================================================== */
354 /* None */
356 /* ========================================================================== */
357 /*                 Internal Function Declarations                             */
358 /* ========================================================================== */
360 /* None */
362 /* ========================================================================== */
363 /*                            Global Variables                                */
364 /* ========================================================================== */
366 /* None */
368 /* ========================================================================== */
369 /*                          Function Declarations                             */
370 /* ========================================================================== */
372 /* None */
374 #ifdef __cplusplus
377 #endif
379 #endif