AM62Px MCU+ SDK  09.02.01
sdl_ip_pbist.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Texas Instruments Incorporated
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 
40 /*
41  * @file sdl/pbist/v0/sdl_ip_pbist.h
42  *
43  * @brief This file contains the SDL-FL API's for PBIST
44  *
45  * This is the SDL-FL API documentation for the Programmable Built-In Self Test
46  * (PBIST) module.
47  *
48  */
49 
50 #ifndef SDL_IP_PBIST_H_
51 #define SDL_IP_PBIST_H_
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
57 #include <stdint.h>
58 #include <stdbool.h>
60 #include <sdl/pbist/v0/soc/sdl_soc_pbist.h>
61 
70 typedef struct
71 {
74  uint32_t override;
75 
81  uint32_t algorithmsBitMap;
82 
86 
89  uint64_t scrambleValue;
91 
101 typedef struct
102 {
105  uint32_t CA0;
106 
109  uint32_t CA1;
110 
113  uint32_t CA2;
114 
117  uint32_t CA3;
118 
121  uint32_t CL0;
122 
125  uint32_t CL1;
126 
129  uint32_t CL2;
130 
133  uint32_t CL3;
134 
137  uint32_t CMS;
138 
141  uint32_t CSR;
142 
145  uint32_t I0;
146 
149  uint32_t I1;
150 
153  uint32_t I2;
154 
157  uint32_t I3;
158 
161  uint32_t RAMT;
163 
177 int32_t SDL_PBIST_softReset(SDL_pbistRegs *pPBISTRegs);
178 
192 int32_t SDL_PBIST_start(SDL_pbistRegs *pPBISTRegs,
193  const SDL_PBIST_config * pConfig);
194 
208 int32_t SDL_PBIST_startNeg(SDL_pbistRegs *pPBISTRegs,
209  const SDL_PBIST_configNeg *pConfig);
210 
224 int32_t SDL_PBIST_checkResult (const SDL_pbistRegs *pPBISTRegs, bool *pResult);
225 
240 
258 
261 #ifdef __cplusplus
262 }
263 #endif
264 
265 #endif /* SDL_IP_PBIST_H_ */
SDL_PBIST_configNeg::RAMT
uint32_t RAMT
Definition: sdl_ip_pbist.h:161
SDL_pbistRegs
Definition: sdlr_pbist.h:53
SDL_PBIST_configNeg::I0
uint32_t I0
Definition: sdl_ip_pbist.h:145
SDL_PBIST_postResult
Definition: sdl_soc_pbist.h:121
sdlr_pbist.h
SDL_PBIST_checkResult
int32_t SDL_PBIST_checkResult(const SDL_pbistRegs *pPBISTRegs, bool *pResult)
PBIST check result.
SDL_PBIST_configNeg::I1
uint32_t I1
Definition: sdl_ip_pbist.h:149
SDL_PBIST_getPOSTStatus
int32_t SDL_PBIST_getPOSTStatus(SDL_PBIST_postResult *pResult)
PBIST POST result status.
SDL_PBIST_config::scrambleValue
uint64_t scrambleValue
Definition: sdl_ip_pbist.h:89
SDL_PBIST_configNeg::I2
uint32_t I2
Definition: sdl_ip_pbist.h:153
SDL_PBIST_configNeg::CMS
uint32_t CMS
Definition: sdl_ip_pbist.h:137
SDL_PBIST_config::memoryGroupsBitMap
uint64_t memoryGroupsBitMap
Definition: sdl_ip_pbist.h:85
SDL_PBIST_releaseTestMode
int32_t SDL_PBIST_releaseTestMode(SDL_pbistRegs *pPBISTRegs)
PBIST Release Test mode.
SDL_PBIST_configNeg::CSR
uint32_t CSR
Definition: sdl_ip_pbist.h:141
SDL_PBIST_config
This structure contains the different configuration used for PBIST.
Definition: sdl_ip_pbist.h:71
SDL_PBIST_configNeg::CL3
uint32_t CL3
Definition: sdl_ip_pbist.h:133
SDL_PBIST_configNeg::CA2
uint32_t CA2
Definition: sdl_ip_pbist.h:113
SDL_PBIST_configNeg::CA1
uint32_t CA1
Definition: sdl_ip_pbist.h:109
SDL_PBIST_configNeg::CL0
uint32_t CL0
Definition: sdl_ip_pbist.h:121
SDL_PBIST_configNeg::CA0
uint32_t CA0
Definition: sdl_ip_pbist.h:105
SDL_PBIST_start
int32_t SDL_PBIST_start(SDL_pbistRegs *pPBISTRegs, const SDL_PBIST_config *pConfig)
PBIST Start.
SDL_PBIST_configNeg::CL2
uint32_t CL2
Definition: sdl_ip_pbist.h:129
SDL_PBIST_config::algorithmsBitMap
uint32_t algorithmsBitMap
Definition: sdl_ip_pbist.h:81
SDL_PBIST_softReset
int32_t SDL_PBIST_softReset(SDL_pbistRegs *pPBISTRegs)
PBIST Soft reset.
SDL_PBIST_configNeg::CA3
uint32_t CA3
Definition: sdl_ip_pbist.h:117
SDL_PBIST_configNeg::CL1
uint32_t CL1
Definition: sdl_ip_pbist.h:125
SDL_PBIST_configNeg
This structure contains the different configuration used for PBIST for the failure insertion test to ...
Definition: sdl_ip_pbist.h:102
SDL_PBIST_configNeg::I3
uint32_t I3
Definition: sdl_ip_pbist.h:157
SDL_PBIST_startNeg
int32_t SDL_PBIST_startNeg(SDL_pbistRegs *pPBISTRegs, const SDL_PBIST_configNeg *pConfig)
PBIST Failure Insertion Test Start.