54 #include <sdl_types.h> 57 #if defined (SOC_J721E) 58 #include <src/ip/pok/soc/j721e/sdl_ip_pok.h> 61 #if defined (SOC_J7200) 62 #include <src/ip/pok/soc/j7200/sdl_ip_pok.h> 82 typedef struct SDL_pokShiftsAndMasks
124 #define SDL_TYPE_POK ((SDL_pok_type) 1U) 126 #define SDL_TYPE_POK_SA ((SDL_pok_type) 2U) 144 #define SDL_PWRSS_SET_HYSTERESIS_DISABLE ((SDL_pwrss_hysteresis) 0U) 146 #define SDL_PWRSS_SET_HYSTERESIS_ENABLE ((SDL_pwrss_hysteresis) 1U) 148 #define SDL_PWRSS_GET_HYSTERESIS_VALUE ((SDL_pwrss_hysteresis) 2U) 150 #define SDL_PWRSS_HYSTERESIS_NO_ACTION ((SDL_pwrss_hysteresis) 3U) 183 #define SDL_PWRSS_MAX_TRIM_VALUE ((SDL_pwrss_trim) 127U) 186 #define SDL_PWRSS_TRIM_NO_ACTION ((SDL_pwrss_trim) 128U) 189 #define SDL_PWRSS_GET_TRIM_VALUE ((SDL_pwrss_trim) 129U) 192 #define SDL_PWRSS_INVALID_TRIM_VALUE ((SDL_pwrss_trim) 255U) 210 #define SDL_PWRSS_SET_UNDER_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 0U) 212 #define SDL_PWRSS_SET_OVER_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 1U) 214 #define SDL_PWRSS_SET_PP_VOLTAGE_DET_ENABLE ((SDL_pwrss_vd_mode) 2U) 216 #define SDL_PWRSS_GET_VOLTAGE_DET_MODE ((SDL_pwrss_vd_mode) 2U) 218 #define SDL_PWRSS_VOLTAGE_DET_NO_ACTION ((SDL_pwrss_vd_mode) 3U) 234 #define SDL_POK_DETECTION_DISABLED ((SDL_POK_detection_status) 0U) 236 #define SDL_POK_DETECTION_ENABLED ((SDL_POK_detection_status) 1U) 252 #define SDL_POK_DETECTION_DISABLE ((SDL_POK_detection) 0U) 254 #define SDL_POK_DETECTION_ENABLE ((SDL_POK_detection) 1U) 256 #define SDL_POK_DETECTION_NO_ACTION ((SDL_POK_detection) 2U) 258 #define SDL_POK_GET_DETECTION_VALUE ((SDL_POK_detection) 3U) 275 #define SDL_POK_ENSEL_HWTIEOFFS ((SDL_POK_enSelSrc) 0U) 277 #define SDL_POK_ENSEL_PRG_CTRL ((SDL_POK_enSelSrc) 1U) 279 #define SDL_POK_ENSEL_NO_ACTION ((SDL_POK_enSelSrc) 2U) 281 #define SDL_POK_GET_ENSEL_VALUE ((SDL_POK_enSelSrc) 3U) 298 #define SDL_VOLTAGE_ABOVE_THRESHOLD ((SDL_POK_thrStatus) 0U) 300 #define SDL_VOLTAGE_BELOW_THRESHOLD ((SDL_POK_thrStatus) 1U) 302 #define SDL_VOLTAGE_GOOD ((SDL_POK_thrStatus) 2U) 319 #define SDL_POR_TRIM_SELECTION_FROM_HHV_DEFAULT ((uint8_t) 0U) 323 #define SDL_POR_TRIM_SELECTION_FROM_CTRL_REGS ((uint8_t) 1U) 326 #define SDL_POR_TRIM_SELECTION_NO_CHANGE ((uint8_t) 2U) 329 #define SDL_POR_TRIM_SELECTION_GET_VALUE ((uint8_t) 3U) 347 #define SDL_POR_OVERRIDE_NOT_SET_DISABLE ((SDL_por_override) 0U) 350 #define SDL_POR_OVERRIDE_NOT_SET_ENABLE ((SDL_por_override) 1U) 353 #define SDL_POR_OVERRIDE_SET_DISABLE ((SDL_por_override) 2U) 356 #define SDL_POR_OVERRIDE_SET_ENABLE ((SDL_por_override) 3U) 359 #define SDL_POR_GET_OVERRIDE_VALUE ((SDL_por_override) 4U) 362 #define SDL_POR_SET_OVERRIDE_NO_CHANGE ((SDL_por_override) 5U) 365 #define SDL_OVERRIDE_SET_UNKNOWN ((SDL_por_override) 0xFFU) 381 #define SDL_PORHV_OVERRIDE_INDEX (0U) 384 #define SDL_BGAP_OVERRIDE_INDEX (1U) 387 #define SDL_POKHV_OVERRIDE_INDEX (2U) 390 #define SDL_POKLVA_OVERRIDE_INDEX (3U) 393 #define SDL_POKLVB_OVERRIDE_INDEX (4U) 396 #define SDL_MAX_OVERRIDE_INDEX (5U) 414 #define SDL_POR_MODULE_STATUS_FUNCTIONAL_MODE ((SDL_por_module_status) 0U) 416 #define SDL_POR_MODULE_STATUS_RESET_MODE ((SDL_por_module_status) 1U) 457 typedef struct SDL_pokCfg
479 typedef struct SDL_pokVal
504 typedef struct SDL_pokPorCfg
522 typedef struct SDL_pokPorVal
541 typedef struct SDL_pokPorStat
552 void sdlGetErrSig(uint32_t
id, SDL_POK_Inst *instance, uint32_t *esm_err_sig,
bool *usePorCfgFlag);
SDL_POK_enSelSrc pokEnSelSrcCtrl
Definition: sdl_pok_def.h:490
uint8_t SDL_POK_thrStatus
Definition: sdl_pok_def.h:296
uint32_t ovSelShift
Definition: sdl_pok_def.h:102
uint8_t SDL_por_override
Definition: sdl_pok_def.h:344
void sdlGetErrSig(uint32_t id, SDL_POK_Inst *instance, uint32_t *esm_err_sig, bool *usePorCfgFlag)
POK Configuration structure.
Definition: sdl_pok_def.h:457
uint32_t pokEnSelMask
Definition: sdl_pok_def.h:103
uint8_t SDL_pwrss_trim
Definition: sdl_pok_def.h:176
POK functionality of POR Configuration structure.
Definition: sdl_pok_def.h:504
SDL_POK_detection_status detectionStatus
Definition: sdl_pok_def.h:488
uint32_t pokEnPPMask
Definition: sdl_pok_def.h:89
bool porBGapOK
Definition: sdl_pok_def.h:546
SDL_wkup_ctrl_mmr_cfg0Regs SDL_wkupCtrlRegsBase_t
Definition: sdl_pok_def.h:429
uint32_t trimShift
Definition: sdl_pok_def.h:106
SDL_POK_enSelSrc pokEnSelSrcCtrl
Definition: sdl_pok_def.h:468
SDL_pwrss_trim trim
Definition: sdl_pok_def.h:486
uint8_t SDL_pok_type
Definition: sdl_pok_def.h:121
uint8_t SDL_pwrss_vd_mode
Definition: sdl_pok_def.h:207
uint32_t hystMask
Definition: sdl_pok_def.h:91
uint32_t pokEnPPShift
Definition: sdl_pok_def.h:90
volatile uint32_t * pokAddr
Definition: sdl_pok_def.h:84
uint8_t SDL_por_module_status
Definition: sdl_pok_def.h:411
uint32_t vdDetOVShift
Definition: sdl_pok_def.h:98
#define SDL_MAX_OVERRIDE_INDEX
Definition: sdl_pok_def.h:396
volatile uint32_t * pokDetAddr
Definition: sdl_pok_def.h:86
SDL_por_trim_sel trim_select
Definition: sdl_pok_def.h:511
uint32_t hystOVMask
Definition: sdl_pok_def.h:93
uint8_t SDL_por_trim_sel
Definition: sdl_pok_def.h:316
SDL_POK_thrStatus voltageThrStatus
Definition: sdl_pok_def.h:492
SDL_POK_detection detectionCtrl
Definition: sdl_pok_def.h:466
uint8_t SDL_POK_detection
Definition: sdl_pok_def.h:250
uint32_t hystShift
Definition: sdl_pok_def.h:92
uint8_t SDL_POK_detection_status
Definition: sdl_pok_def.h:232
SDL_pwrss_vd_mode voltDetMode
Definition: sdl_pok_def.h:462
SDL_por_trim_sel trim_select
Definition: sdl_pok_def.h:529
uint8_t SDL_pwrss_hysteresis
Definition: sdl_pok_def.h:141
volatile uint32_t * pokEnPPAddr
Definition: sdl_pok_def.h:88
uint32_t hystOVShift
Definition: sdl_pok_def.h:94
SDL_POK_thrStatus porModuleStatus
Definition: sdl_pok_def.h:544
uint32_t ovSelMask
Definition: sdl_pok_def.h:101
POK functionality of POR Configuration structure.
Definition: sdl_pok_def.h:541
uint8_t SDL_POK_enSelSrc
Definition: sdl_pok_def.h:273
uint32_t vdDetMask
Definition: sdl_pok_def.h:95
POK functionality of POR Value structure.
Definition: sdl_pok_def.h:522
bool maskHHVOutputEnable
Definition: sdl_pok_def.h:509
SDL_pwrss_vd_mode voltDetMode
Definition: sdl_pok_def.h:484
uint32_t trimOVShift
Definition: sdl_pok_def.h:108
This file contains SOC specific defintions.
volatile uint32_t * pokOVAddr
Definition: sdl_pok_def.h:85
volatile uint32_t * pokEnSelAddr
Definition: sdl_pok_def.h:87
uint32_t vdDetShift
Definition: sdl_pok_def.h:96
bool maskHHVOutputEnable
Definition: sdl_pok_def.h:527
uint32_t pokEnSelShift
Definition: sdl_pok_def.h:104
uint32_t detEnMask
Definition: sdl_pok_def.h:99
SDL_pwrss_trim trim
Definition: sdl_pok_def.h:464
SDL_pwrss_hysteresis hystCtrl
Definition: sdl_pok_def.h:482
uint32_t trimMask
Definition: sdl_pok_def.h:105
POK Configuration structure read value.
Definition: sdl_pok_def.h:479
uint32_t vdDetOVMask
Definition: sdl_pok_def.h:97
Definition: sdl_pok_def.h:82
uint32_t trimOVMask
Definition: sdl_pok_def.h:107
SDL_pwrss_hysteresis hystCtrl
Definition: sdl_pok_def.h:460
uint32_t detEnShift
Definition: sdl_pok_def.h:100