AM273x MCU+ SDK  09.02.00
sdl_stc_soc.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2022 Texas Instruments Incorporated.
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  */
33 
34 
35 #ifndef SDL_STC_SOC_H_
36 #define SDL_STC_SOC_H_
37 
38 #include <sdl/include/am273x/sdlr_soc_baseaddress.h>
39 #include <sdl/include/am273x/sdlr_mss_rcm.h>
40 #include <sdl/include/am273x/sdlr_mss_ctrl.h>
41 #include <sdl/include/am273x/sdlr_dss_rcm.h>
42 #include <sdl/include/am273x/sdlr_dss_ctrl.h>
43 
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
66 /*======================================================================================================
67 * Required Macros for Instances config
68 ======================================================================================================*/
69 
70 #define SDL_STC_NUM_INSTANCES 2U
71 
72 #define SDL_DSP_PD_WAKEUP_MASK0_WAKEUP_MASK0 (0xEFFFFFFFU)
73 
79 /*======================================================================================================
80 * Enum for Different Core in SOC
81 ======================================================================================================*/
82 
83 typedef enum {
84 
87 
89 
90 } SDL_STC_Inst;
91 
92 /* @} */
93 
94 
95 /* ========================================================================== */
96 /* Function Declarations */
97 /* ========================================================================== */
98 
110 static void SDL_STC_resetCauseClear(void);
111 
115 /*======================================================================================================
116 * This is global array gives the BASE ADDRESS of STC modules
117 ======================================================================================================*/
118 
119 static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES] = {SDL_MSS_R5SS_STC_U_BASE, SDL_DSS_DSP_STC_U_BASE};
120 
121 #define MSS_RCM_BaseAddress (SDL_MSS_RCM_U_BASE)
122 #define MSS_CTRL_BaseAddress (SDL_MSS_CTRL_U_BASE)
123 
124 
125 
126 #define DSS_RCM_BaseAddress (SDL_DSS_RCM_U_BASE)
127 #define DSS_CTRL_BaseAddress (SDL_DSS_CTRL_U_BASE)
128 #define DSS_DSP_ICFG_PDCCMD (0x01810000U)
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif /* SDL_STC_SOC_H_ */
SDL_STC_INST_MAINR5F0
@ SDL_STC_INST_MAINR5F0
Definition: sdl_stc_soc.h:85
SDL_STC_Inst
SDL_STC_Inst
Definition: sdl_stc_soc.h:83
SDL_STC_resetCauseClear
static void SDL_STC_resetCauseClear(void)
This API is used to clear the reset cause bits for processor core.
INVALID_INSTANCE
@ INVALID_INSTANCE
Definition: sdl_stc_soc.h:88
SDL_STC_INST_DSP
@ SDL_STC_INST_DSP
Definition: sdl_stc_soc.h:86
SDL_STC_NUM_INSTANCES
#define SDL_STC_NUM_INSTANCES
Definition: sdl_stc_soc.h:70
SDL_STC_baseAddress
static uint32_t SDL_STC_baseAddress[SDL_STC_NUM_INSTANCES]
Definition: sdl_stc_soc.h:119