PDK API Guide for J721E
tisci_procboot.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-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  */
54 #ifndef TISCI_PROCBOOT_H_
55 #define TISCI_PROCBOOT_H_
56 
57 
70  struct tisci_header hdr;
71  uint8_t processor_id;
72 } __attribute__((__packed__));
73 
89  struct tisci_header hdr;
90 } __attribute__((__packed__));
91 
103  uint8_t processor_id;
104 } __attribute__((__packed__));
105 
121 } __attribute__((__packed__));
122 
136  uint8_t processor_id;
137  uint8_t host_id;
138 } __attribute__((__packed__));
139 
156 } __attribute__((__packed__));
157 
158 /* A53 Config Flags */
159 
161 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_ARMV8_DBG_EN (0x00000001U)
162 
163 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_ARMV8_DBG_NIDEN (0x00000002U)
164 
165 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_ARMV8_DBG_SPIDEN (0x00000004U)
166 
167 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_ARMV8_DBG_SPNIDEN (0x00000008U)
168 
169 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_ARMV8_AARCH32 (0x00000100U)
170 
171 /* R5 Config Flags */
172 
174 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_DBG_EN (0x00000001U)
175 
176 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_DBG_NIDEN (0x00000002U)
177 
178 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_LOCKSTEP (0x00000100U)
179 
180 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_TEINIT (0x00000200U)
181 
182 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_NMFI_EN (0x00000400U)
183 
184 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_TCM_RSTBASE (0x00000800U)
185 
186 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_BTCM_EN (0x00001000U)
187 
188 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_ATCM_EN (0x00002000U)
189 
190 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_MEM_INIT_DIS (0x00004000U)
191 
193 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_R5_SINGLE_CORE (0x00008000U)
194 
195 /* C7x Config Flags */
196 
197 /* L2_PIPELINE_LATENCY_VALUE */
199 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_MASK (0x0000000FU)
201 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_SHIFT (0x00000000U)
203 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_1 (0x00000001U)
205 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_2 (0x00000002U)
207 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_3 (0x00000003U)
209 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_4 (0x00000004U)
210 
211 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2PL_5 (0x00000005U)
212 
213 /* L2_ACCESS_LATENCY_VALUE */
215 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2AL_MASK (0x000000F0U)
216 
217 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2AL_SHIFT (0x00000004U)
218 
219 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2AL_2 (0x00000020U)
220 
221 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2AL_3 (0x00000030U)
222 
223 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2AL_4 (0x00000040U)
224 
225 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C7X_L2AL_5 (0x00000050U)
226 
227 /* C6x Config Flags */
228 
229 /* SSCLK_MODE_DIV_CLK_MODE_VALUE values
230  *
231  * NOTE: Values are 1 more than actual programmed values to avoid '0' as a
232  * valid value that we pass via flags.
233  */
235 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C6X_SSCLKMV_MASK (0x00000007U)
236 
237 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C6X_SSCLKMV_SHIFT (0x00000000U)
238 
239 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C6X_SSCLKMV_DIV2 (0x00000001U)
240 
241 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C6X_SSCLKMV_DIV3 (0x00000002U)
242 
243 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_C6X_SSCLKMV_DIV4 (0x00000003U)
244 
245 /* M4F Config Flags */
246 
248 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_M4F_DBG_EN (0x00000001U)
249 
250 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_M4F_DBG_NIDEN (0x00000002U)
251 
252 #define TISCI_MSG_VAL_PROC_BOOT_CFG_FLAG_HSM_DBG_EN (0x00000004U)
253 
267  uint8_t processor_id;
268  uint32_t bootvector_lo;
269  uint32_t bootvector_hi;
272 } __attribute__((__packed__));
273 
289 } __attribute__((__packed__));
290 
291 /* ARMV8 Control Flags */
292 
294 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_ARMV8_ACINACTM (0x00000001U)
295 
296 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_ARMV8_AINACTS (0x00000002U)
297 
298 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_ARMV8_L2FLUSHREQ (0x00000100U)
299 
300 /* R5 Control Flags */
301 
303 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_R5_CORE_HALT (0x00000001U)
304 
305 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_R5_LPSC (0x00000002U)
306 
307 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_R5_RESET (0x00000004U)
308 
309 /* M4 Control Flags */
310 
312 #define TISCI_MSG_VAL_PROC_BOOT_CTRL_FLAG_HSM_M4_RESET (0x00000001U)
313 
325  uint8_t processor_id;
328 } __attribute__((__packed__));
329 
345 } __attribute__((__packed__));
346 
357 } __attribute__((__packed__));
358 
380  uint32_t image_size;
381 } __attribute__((__packed__));
382 
391  uint8_t processor_id;
392 } __attribute__((__packed__));
393 
394 /* ARMV8 Status Flags */
395 
397 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_ARMV8_WFE (0x00000001U)
398 
399 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_ARMV8_WFI (0x00000002U)
400 
401 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_ARMV8_L2F_DONE (0x00000010U)
402 
403 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_ARMV8_STANDBYWFIL2 (0x00000020U)
404 
405 /* R5 Status Flags */
406 
408 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_R5_WFE (0x00000001U)
409 
410 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_R5_WFI (0x00000002U)
411 
412 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_R5_CLK_GATED (0x00000004U)
413 
414 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_R5_LOCKSTEP_PERMITTED (0x00000100U)
415 
416 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_R5_SINGLECORE_ONLY (0x00000200U)
417 
418 /* C7x Status Flags */
419 
421 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_C7X_WFE (0x00000001U)
422 
423 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_C7X_WFI (0x00000002U)
424 
425 /* M4F Status Flags */
426 
428 #define TISCI_MSG_VAL_PROC_BOOT_STATUS_FLAG_M4F_WFI (0x00000002U)
429 
451  uint8_t processor_id;
452  uint32_t bootvector_lo;
453  uint32_t bootvector_hi;
454  uint32_t config_flags_1;
455  uint32_t control_flags_1;
456  uint32_t status_flags_1;
457 } __attribute__((__packed__));
458 
489  uint8_t processor_id;
498 } __attribute__((__packed__));
499 
513 } __attribute__((__packed__));
514 
515 #endif /* TISCI_SECURITY_H_ */
516 
517 /* @} */
uint32_t status_flags_1_clr_any_wait
Definition: tisci_procboot.h:497
uint32_t certificate_address_hi
Definition: tisci_procboot.h:356
uint32_t bootvector_lo
Definition: tisci_procboot.h:452
Optional processor specific message for sequence control.
Definition: tisci_procboot.h:323
This file contains:
Definition: tisci_procboot.h:69
uint32_t image_address_lo
Definition: tisci_procboot.h:378
Request for physical processor control response.
Definition: tisci_procboot.h:88
uint8_t num_match_iterations
Definition: tisci_procboot.h:491
struct tisci_header hdr
Definition: tisci_procboot.h:390
uint8_t processor_id
Definition: tisci_procboot.h:451
Processor Status Wait.
Definition: tisci_procboot.h:487
Request to handover control of a processor to another host if permitted.
Definition: tisci_procboot.h:134
uint32_t control_flags_1_set
Definition: tisci_procboot.h:326
Release physical processor control request.
Definition: tisci_procboot.h:101
uint8_t processor_id
Definition: tisci_procboot.h:136
uint32_t config_flags_1
Definition: tisci_procboot.h:454
uint8_t delay_per_iteration_us
Definition: tisci_procboot.h:492
Response to Processor Boot Configuration message.
Definition: tisci_procboot.h:287
uint32_t certificate_address_lo
Definition: tisci_procboot.h:355
struct tisci_header hdr
Definition: tisci_procboot.h:266
Processor Status Wait Response.
Definition: tisci_procboot.h:511
struct tisci_header hdr
Definition: tisci_procboot.h:450
uint32_t control_flags_1_clear
Definition: tisci_procboot.h:327
struct tisci_header hdr
Definition: tisci_procboot.h:155
uint8_t host_id
Definition: tisci_procboot.h:137
struct tisci_header hdr
Definition: tisci_procboot.h:70
struct tisci_header hdr
Definition: tisci_procboot.h:135
uint8_t processor_id
Definition: tisci_procboot.h:391
Processor Status request.
Definition: tisci_procboot.h:389
uint32_t image_size
Definition: tisci_procboot.h:380
struct tisci_header hdr
Definition: tisci_procboot.h:102
struct tisci_header hdr
Definition: tisci_procboot.h:354
uint32_t status_flags_1_clr_all_wait
Definition: tisci_procboot.h:496
Response to authenticate and start image request.
Definition: tisci_procboot.h:376
uint32_t status_flags_1_set_any_wait
Definition: tisci_procboot.h:495
uint8_t delay_before_iteration_loop_start_us
Definition: tisci_procboot.h:493
struct tisci_msg_proc_request_req __attribute__((__packed__))
Processor Boot Configuration.
Definition: tisci_procboot.h:265
uint8_t num_wait_iterations
Definition: tisci_procboot.h:490
Release physical processor control response.
Definition: tisci_procboot.h:119
uint32_t config_flags_1_set
Definition: tisci_procboot.h:270
uint32_t image_address_hi
Definition: tisci_procboot.h:379
Authenticate and start image.
Definition: tisci_procboot.h:353
uint32_t bootvector_lo
Definition: tisci_procboot.h:268
struct tisci_header hdr
Definition: tisci_procboot.h:324
struct tisci_header hdr
Definition: tisci_procboot.h:488
uint8_t processor_id
Definition: tisci_procboot.h:325
struct tisci_header hdr
Definition: tisci_procboot.h:512
uint8_t processor_id
Definition: tisci_procboot.h:489
struct tisci_header hdr
Definition: tisci_procboot.h:377
Response to handover of control of a processor to another host if permitted.
Definition: tisci_procboot.h:154
Response to optional processor specific message for sequence control.
Definition: tisci_procboot.h:343
uint8_t processor_id
Definition: tisci_procboot.h:267
struct tisci_header hdr
Definition: tisci_procboot.h:89
struct tisci_header hdr
Definition: tisci_procboot.h:288
uint32_t config_flags_1_clear
Definition: tisci_procboot.h:271
struct tisci_header hdr
Definition: tisci_procboot.h:120
uint32_t bootvector_hi
Definition: tisci_procboot.h:453
uint8_t processor_id
Definition: tisci_procboot.h:71
Processor Status Response.
Definition: tisci_procboot.h:449
uint8_t processor_id
Definition: tisci_procboot.h:103
uint32_t bootvector_hi
Definition: tisci_procboot.h:269
uint32_t control_flags_1
Definition: tisci_procboot.h:455
Header that prefixes all TISCI messages.
Definition: tisci_protocol.h:89
struct tisci_header hdr
Definition: tisci_procboot.h:344
uint32_t status_flags_1_set_all_wait
Definition: tisci_procboot.h:494
uint32_t status_flags_1
Definition: tisci_procboot.h:456