AM62Px MCU+ SDK
09.02.01
sdl_soc_pok.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Texas Instruments Incorporated 2023
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
42
#ifndef SDL_SOC_POK_H_
43
#define SDL_SOC_POK_H_
44
#include <sdl/esm/sdl_ip_esm.h>
45
#include <
sdl/dpl/sdl_dpl.h
>
46
#include <sdl/include/am62px/sdlr_soc_baseaddress.h>
47
#include <sdl/include/am62px/sdlr_mcu_ctrl_mmr.h>
48
#include <sdl/include/am62px/sdlr_intr_wkup_esm0.h>
49
50
#ifdef __cplusplus
51
extern
"C"
{
52
#endif
53
71
/**************************************************************************
72
* Register Macros
73
**************************************************************************/
74
75
typedef
int8_t
SDL_POK_Inst
;
76
78
#define SDL_FIRST_POK_ID (0)
79
/* PMIC POK ID */
80
#define SDL_POK_VDDA_PMIC_IN_ID (SDL_FIRST_POK_ID)
81
/* VDDS DDRIO Under voltage/Over Voltage POK ID */
82
#define SDL_POK_VDDS_DDRIO_ID (1)
83
/* VDDR CORE Under Voltage/Over Voltage POK ID */
84
#define SDL_POK_VDDR_CORE_ID (2)
85
/* VMON CAP MCU Under Voltage/Over Voltage POK ID */
86
#define SDL_POK_VMON_CAP_MCU_GENERAL_ID (3)
87
/* VDDSHV MAIN 1P8 Under Voltage/Over Voltage POK ID */
88
#define SDL_POK_VDDSHV_MAIN_1P8_ID (4)
89
/* VDDSHV MAIN 3P3 Under Voltage/Over Voltage POK ID */
90
#define SDL_POK_VDDSHV_MAIN_3P3_ID (5)
91
/* CORE Over Voltage POK ID */
92
#define SDL_POK_VDD_MCU_OV_ID (6)
93
/* VDDA MCU Under Voltage POK ID */
94
#define SDL_POR_VDDA_MCU_UV_ID (7)
95
/* VDD Under Voltage POK ID */
96
#define SDL_POR_VDD_MCU_UV_ID (8)
97
/* VDDA MCU Over Voltage POK ID */
98
#define SDL_POR_VDDA_MCU_OV_ID (9)
99
100
/* LAST POK ID */
101
#define SDL_LAST_POK_ID (SDL_POR_VDDA_MCU_OV_ID)
102
103
104
typedef
int8_t
SDL_PRG_Inst
;
105
107
#define SDL_POK_PRG_FIRST_ID (0)
108
109
#define SDL_POK_PRG_PP_0_ID (1)
110
111
#define SDL_POK_PRG_PP_1_ID (2)
112
114
#define SDL_POK_PRG_LAST_ID (SDL_POK_PRG_PP_1_ID)
115
116
117
118
119
#define SDL_POK_MMR_BASE (SDL_WKUP_CTRL_MMR1_CFG0_BASE)
120
#define MCU_ESM_INSTANCE (SDL_WKUP_ESM0_CFG_BASE)
121
#define MCU_ESM_INTID (SDLR_WKUP_ESM0_ESM_LVL_EVENT_ESM0_ESM_INT_HI_LVL_0)
122
123
#define MCU_ESM_ERR_SIG_VDDA_PMIC_IN_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU0_POK_PGOOD_UV_OUT_N_TO_ESM_3)
124
#define MCU_ESM_ERR_SIG_VDD_MCU_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU0_POK_PGOOD_UV_OUT_N_TO_ESM_0 )
125
#define MCU_ESM_ERR_SIG_VDD_MCU_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU0_POK_PGOOD_UV_OUT_N_TO_ESM_4)
126
#define MCU_ESM_ERR_SIG_VDDS_DDRIO_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_UV_OUT_N_TO_ESM_4)
127
#define MCU_ESM_ERR_SIG_VDDS_DDRIO_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_OV_OUT_N_TO_ESM_4)
128
#define MCU_ESM_ERR_SIG_VDDR_CORE_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_UV_OUT_N_TO_ESM_3)
129
#define MCU_ESM_ERR_SIG_VDDR_CORE_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_OV_OUT_N_TO_ESM_3)
130
#define MCU_ESM_ERR_SIG_VMON_CAP_MCU_GENERAL_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_UV_OUT_N_TO_ESM_2 )
131
#define MCU_ESM_ERR_SIG_VMON_CAP_MCU_GENERAL_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_OV_OUT_N_TO_ESM_2)
132
#define MCU_ESM_ERR_SIG_VDDSHV_MAIN_1P8_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_UV_OUT_N_TO_ESM_1)
133
#define MCU_ESM_ERR_SIG_VDDSHV_MAIN_1P8_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_OV_OUT_N_TO_ESM_1)
134
#define MCU_ESM_ERR_SIG_VDDSHV_MAIN_3P3_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_UV_OUT_N_TO_ESM_0)
135
#define MCU_ESM_ERR_SIG_VDDSHV_MAIN_3P3_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU_5POKS0_POK_PGOOD_OV_OUT_N_TO_ESM_0)
136
#define MCU_ESM_ERR_SIG_VDDA_MCU_UV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU0_POK_PGOOD_UV_OUT_N_TO_ESM_2)
137
#define MCU_ESM_ERR_SIG_VDDA_MCU_OV (SDLR_WKUP_ESM0_ESM_PLS_EVENT0_MCU_PRG_MCU0_POK_PGOOD_UV_OUT_N_TO_ESM_1)
138
139
140
141
#define ESM_ERR_SIG_VDDA_PMIC_IN_UV MCU_ESM_ERR_SIG_VDDA_PMIC_IN_UV
142
#define ESM_ERR_SIG_VDD_MCU_UV MCU_ESM_ERR_SIG_VDD_MCU_UV
143
#define ESM_ERR_SIG_VDD_MCU_OV MCU_ESM_ERR_SIG_VDD_MCU_OV
144
#define ESM_ERR_SIG_VDDS_DDRIO_UV MCU_ESM_ERR_SIG_VDDS_DDRIO_UV
145
#define ESM_ERR_SIG_VDDS_DDRIO_OV MCU_ESM_ERR_SIG_VDDS_DDRIO_OV
146
#define ESM_ERR_SIG_VDDR_CORE_UV MCU_ESM_ERR_SIG_VDDR_CORE_UV
147
#define ESM_ERR_SIG_VDDR_CORE_OV MCU_ESM_ERR_SIG_VDDR_CORE_OV
148
#define ESM_ERR_SIG_VMON_CAP_MCU_GENERAL_UV MCU_ESM_ERR_SIG_VMON_CAP_MCU_GENERAL_UV
149
#define ESM_ERR_SIG_VMON_CAP_MCU_GENERAL_OV MCU_ESM_ERR_SIG_VMON_CAP_MCU_GENERAL_OV
150
#define ESM_ERR_SIG_VDDSHV_MAIN_1P8_UV MCU_ESM_ERR_SIG_VDDSHV_MAIN_1P8_UV
151
#define ESM_ERR_SIG_VDDSHV_MAIN_1P8_OV MCU_ESM_ERR_SIG_VDDSHV_MAIN_1P8_OV
152
#define ESM_ERR_SIG_VDDSHV_MAIN_3P3_UV MCU_ESM_ERR_SIG_VDDSHV_MAIN_3P3_UV
153
#define ESM_ERR_SIG_VDDSHV_MAIN_3P3_OV MCU_ESM_ERR_SIG_VDDSHV_MAIN_3P3_OV
154
#define ESM_ERR_SIG_VDDA_MCU_UV MCU_ESM_ERR_SIG_VDDA_MCU_UV
155
#define ESM_ERR_SIG_VDDA_MCU_OV MCU_ESM_ERR_SIG_VDDA_MCU_OV
156
157
158
159
160
161
#define ESM_INSTANCE MCU_ESM_INSTANCE
162
#define ESM_INTID MCU_ESM_INTID
163
164
165
166
167
168
169
typedef
enum
{
170
SDL_POK_MCU_CTRL_MMR0
,
171
172
}
SDL_POK_InstanceType
;
173
174
bool
SDL_POK_getBaseaddr
(
SDL_POK_InstanceType
instance, uint32_t *pbaseAddress);
175
176
177
178
179
#ifdef __cplusplus
180
}
181
#endif
182
#endif
/* SDL_SOC_POK_H_ */
183
184
SDL_PRG_Inst
int8_t SDL_PRG_Inst
Definition:
sdl_soc_pok.h:104
SDL_POK_InstanceType
SDL_POK_InstanceType
Definition:
sdl_soc_pok.h:169
sdl_dpl.h
This file contains the SDL DPL API's.
SDL_POK_MCU_CTRL_MMR0
@ SDL_POK_MCU_CTRL_MMR0
Definition:
sdl_soc_pok.h:170
SDL_POK_getBaseaddr
bool SDL_POK_getBaseaddr(SDL_POK_InstanceType instance, uint32_t *pbaseAddress)
SDL_POK_Inst
int8_t SDL_POK_Inst
Definition:
sdl_soc_pok.h:75
source
sdl
pok
v1
soc
am62px
sdl_soc_pok.h
generated by
1.8.20