|
AM62Ax MCU+ SDK
10.01.00
|
|
Go to the documentation of this file.
33 #ifndef BOOTLOADER_SOC_AM62X_H_
34 #define BOOTLOADER_SOC_AM62X_H_
36 #include <drivers/hw_include/cslr_soc.h>
38 #define FREERTOS_SMP_RPRC_CORE_ID (100)
39 #define FREERTOS_SMP_NO_OF_CORES (4)
40 #define FREERTOS_SMP_CSL_CORE_ID_MAX (FREERTOS_SMP_NO_OF_CORES + CSL_CORE_ID_A53SS0_0)
67 typedef void __attribute__((__noreturn__)) (*Bootloader_SelfCoreJump)(void);
int32_t Bootloader_socCpuSetClock(uint32_t cpuId, uint32_t cpuHz)
Set the clock of a particular CPU in the AM62x SOC.
char * Bootloader_socGetCoreName(uint32_t cpuId)
Get the name of a core.
uint32_t tisciDevId
Definition: bootloader_soc.h:52
int32_t Bootloader_socCpuRequest(uint32_t cpuId)
Request for a particular CPU in the AM62x SOC.
bool Bootloader_socIsSmpEnable(uint32_t rprcCoreId)
Check whether the smp is enabled or not for the soc.
void Bootloader_socCpuPowerOff(uint32_t cpuId)
Power off a core.
uint32_t Bootloader_socIsMCUResetIsoEnabled()
Check if MCU M4 is reset isolated.
uint32_t Bootloader_socGetSciclientCpuProcId(uint32_t cpuId)
Obtain the Sciclient Proc Id corresponding to the CSL core ID.
int32_t Bootloader_socWaitForFWBoot(void)
API to wait for boot notification from SYSFW/ROM.
int32_t Bootloader_socCpuSetEntryPoint(uint32_t cpuId, uintptr_t entryPoint)
Set entry point for self CPU in the AM62x SOC from reset.
uint32_t Bootloader_socIsAuthRequired(void)
API to check if authentication is required for the device. Checks the SYS_STATUS register to see if d...
int32_t Bootloader_socCpuPowerOnReset(uint32_t cpuId, void *socCoreOpMode)
Do power-on-reset of a particular CPU in the AM62x SOC.
uint32_t defaultClockHz
Definition: bootloader_soc.h:54
uint64_t addr
Definition: csl_udmap_tr.h:3
int32_t Bootloader_socCpuResetRelease(uint32_t cpuId, uintptr_t entryPoint)
Release a particular CPU in the AM62x SOC from reset.
uint32_t Bootloader_socGetSciclientCpuDevId(uint32_t cpuId)
Obtain the Sciclient Device Id corresponding to the CSL core ID.
uint32_t tisciProcId
Definition: bootloader_soc.h:51
Data structure containing information about a core specific to the AM62x SOC.
Definition: bootloader_soc.h:50
void Bootloader_enableMCUPLL(void)
Enable MCU PLL. The MCU PLL will be initialized by SYSFW if devgrp is set to DEVGRP_ALL....
uint32_t tisciClockId
Definition: bootloader_soc.h:53
uint32_t Bootloader_socRprcToCslCoreId(uint32_t rprcCoreId)
Obtain the CSL core ID of a CPU from its RPRC core ID.
uint64_t Bootloader_socCpuGetClock(uint32_t cpuId)
Get the clock of a particular CPU in the AM62x SOC.
int32_t Bootloader_socCpuRelease(uint32_t cpuId)
Release a particular CPU in the AM62x SOC.
void __attribute__((__noreturn__))(*Bootloader_SelfCoreJump)(void)
Function pointer to jump a self core to specific code location in AM62x SOC.
Definition: bootloader_soc.h:67
int32_t Bootloader_socAuthImage(uint32_t certLoadAddr)
API to authenticate (and decrypt if needed) an appimage using SYSFW.
uint32_t Bootloader_socTranslateSectionAddr(uint32_t cslCoreId, uint32_t addr)
Translate a CPU address to the SOC address wherever applicable.
uint32_t * Bootloader_socGetSelfCpuList(void)
Get the list of self cpus in the SOC.
uint32_t Bootloader_socCpuGetClkDefault(uint32_t cpuId)
Get the default clock of a particular CPU in the AM62x SOC.
int32_t Bootloader_socSecHandover(void)
API to trigger the security handover from SYSFW.
int32_t Bootloader_socCpuResetReleaseSelf()
Release self CPU in the AM62x SOC from reset.
int32_t Bootloader_socOpenFirewalls(void)
API to open required firewalls using SYSFW.
int32_t Bootloader_socMemInitCpu(uint32_t cpuId)
Initialize the core memories of a specific core.