SDL API Guide for J7200
sdl_ip_pok.h
Go to the documentation of this file.
1 /*
2  * @file sdl_ip_pok.h
3  *
4  * @brief
5  * C implementation interface header file for the POK module SDL-FL.
6  *
7  * Translates POK ID to POK Address. This is a SOC specific source file.
8  *
9  * \par
10  * ============================================================================
11  * @n (C) Copyright 2021, Texas Instruments, Inc.
12  *
13  * Redistribution and use in source and binary forms, with or without
14  * modification, are permitted provided that the following conditions
15  * are met:
16  *
17  * Redistributions of source code must retain the above copyright
18  * notice, this list of conditions and the following disclaimer.
19  *
20  * Redistributions in binary form must reproduce the above copyright
21  * notice, this list of conditions and the following disclaimer in the
22  * documentation and/or other materials provided with the
23  * distribution.
24  *
25  * Neither the name of Texas Instruments Incorporated nor the names of
26  * its contributors may be used to endorse or promote products derived
27  * from this software without specific prior written permission.
28  *
29  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40  *
41 */
42 #ifndef SDL_POK_IP_H
43 #define SDL_POK_IP_H
44 
45 #ifdef __cplusplus
46  extern "C" {
47 #endif
48 
49 #if defined (SOC_J721E)
50 #include <src/ip/pok/V0/sdl_pok_def.h>
51 #include <src/ip/pok/soc/j721e/sdl_ip_pok.h>
52 #elif defined (SOC_J7200)
54 #include <src/ip/pok/soc/j7200/sdl_ip_pok.h>
55 #endif
56 
70 /*=============================================================================
71  * Internal definitions and functions
72  *===========================================================================*/
73 
74 /* This function read the registers of POK module */
76  SDL_POK_Inst instance,
77  SDL_pokShiftsAndMasks_t *pShMasks);
78 
84 /* This function set the POK register values */
100 int32_t SDL_pokSetControl (SDL_wkupCtrlRegsBase_t *pBaseAddress,
101  const SDL_POK_config *pPokCfg,
102  SDL_POK_Inst instance);
103 
120 int32_t SDL_pokGetControl (SDL_wkupCtrlRegsBase_t *pBaseAddress,
121  const SDL_POK_config *pPokCfg,
122  SDL_pokVal_t *pPokVal,
123  SDL_POK_Inst instance);
124 
139 int32_t SDL_porSetControl (SDL_wkupCtrlRegsBase_t *pBaseAddress,
140  const SDL_pokPorCfg_t *pPorCfg);
141 
144 #ifdef __cplusplus
145 }
146 #endif
147 #endif /* SDL_POK_IP_H */
148 /* Nothing past this point */
149 
POK Configuration structure.
Definition: sdl_pok_def.h:415
int32_t SDL_porSetControl(SDL_wkupCtrlRegsBase_t *pBaseAddress, const SDL_pokPorCfg_t *pPorCfg)
write the POR configuration for the specified POK control register
POK functionality of POR Configuration structure.
Definition: sdl_pok_def.h:471
SDL_wkup_ctrl_mmr_cfg0Regs SDL_wkupCtrlRegsBase_t
Definition: sdl_pok_def.h:398
int32_t SDL_pokSetControl(SDL_wkupCtrlRegsBase_t *pBaseAddress, const SDL_POK_config *pPokCfg, SDL_POK_Inst instance)
write the POK configuration for the specified POK control register
int32_t SDL_pok_GetShiftsAndMasks(SDL_wkupCtrlRegsBase_t *pBaseAddress, SDL_POK_Inst instance, SDL_pokShiftsAndMasks_t *pShMasks)
Header file containing various enumerations, structure definitions and function declarations for the ...
int32_t SDL_pokGetControl(SDL_wkupCtrlRegsBase_t *pBaseAddress, const SDL_POK_config *pPokCfg, SDL_pokVal_t *pPokVal, SDL_POK_Inst instance)
Read the POK configuration for the specified POK control register.
POK Configuration structure read value.
Definition: sdl_pok_def.h:442
Definition: sdl_pok_def.h:73