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 #include <include/soc/j721e/sdlr_soc_baseaddress.h>
47 
48 /* Defines for ESM base addresses */
49 #define SOC_MCU_ESM_BASE SDL_MCU_ESM0_CFG_BASE
50 #define SOC_WKUP_ESM_BASE SDL_WKUP_ESM0_CFG_BASE
51 #define SOC_MAIN_ESM_BASE SDL_ESM0_CFG_BASE
52 
53 /* Defines for Maximum number of ESM events */
54 #define SOC_MCU_ESM_MAX_NUM_EVENTS (SDLR_MCU_ESM0_ESM_PLS_EVENT2_MCU_R5FSS0_CCM_COMPARE_STAT_PULSE_INTR_0+1U)
55 #define SOC_WKUP_ESM_MAX_NUM_EVENTS (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_WKUP_GPIOMUX_INTRTR0_OUTP_15+1U)
56 #define SOC_MAIN_ESM_MAX_NUM_EVENTS (SDLR_ESM0_ESM_PLS_EVENT0_PCIE3_PCIE_ASF_PULSE_0+1U)
57 
58 #ifdef __cplusplus
59 }
60 #endif /* extern "C" */
61 
62 #endif /* INCLUDE_SDL_ESM_SOC_H_ */