SDL API Guide for J721E
sdl_esm_soc.h
Go to the documentation of this file.
1 /*
2  * SDL ESM
3  *
4  * Software Diagnostics Reference module for Error Signaling Module
5  *
6  * Copyright (c) Texas Instruments Incorporated 2021
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in the
17  * documentation and/or other materials provided with the
18  * distribution.
19  *
20  * Neither the name of Texas Instruments Incorporated nor the names of
21  * its contributors may be used to endorse or promote products derived
22  * from this software without specific prior written permission.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35  *
36  */
37 
38 #ifndef INCLUDE_SDL_ESM_SOC_H_
39 #define INCLUDE_SDL_ESM_SOC_H_
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 #include <sdl_esm.h>
46 
47 #if defined (SOC_J721E)
48 #include <include/soc/j721e/sdlr_soc_baseaddress.h>
49 #endif /* SOC_J721E */
50 
51 /* Defines for ESM base addresses */
52 #define SOC_MCU_ESM_BASE SDL_MCU_ESM0_CFG_BASE
53 #define SOC_WKUP_ESM_BASE SDL_WKUP_ESM0_CFG_BASE
54 #define SOC_MAIN_ESM_BASE SDL_ESM0_CFG_BASE
55 
56 /* Defines for Maximum number of ESM events */
57 #define SOC_MCU_ESM_MAX_NUM_EVENTS (SDLR_MCU_ESM0_ESM_PLS_EVENT2_MCU_R5FSS0_CCM_COMPARE_STAT_PULSE_INTR_0+1U)
58 #define SOC_WKUP_ESM_MAX_NUM_EVENTS (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_WKUP_GPIOMUX_INTRTR0_OUTP_15+1U)
59 #define SOC_MAIN_ESM_MAX_NUM_EVENTS (SDLR_ESM0_ESM_PLS_EVENT0_PCIE3_PCIE_ASF_PULSE_0+1U)
60 
61 #ifdef __cplusplus
62 }
63 #endif /* extern "C" */
64 
65 #endif /* INCLUDE_SDL_ESM_SOC_H_ */