|
AM273x MCU+ SDK
09.02.00
|
|
Go to the documentation of this file.
44 #include <drivers/soc.h>
45 #include <drivers/hw_include/csl_types.h>
46 #include <drivers/hw_include/cslr_soc.h>
47 #include <drivers/bootloader/soc/bootloader_soc.h>
48 #include <drivers/bootloader/bootloader_profile.h>
49 #include <drivers/hw_include/soc_config.h>
68 #define BOOTLOADER_INVALID_ID (0xDEADBABE)
73 #define BOOTLOADER_OPMODE_LOCKSTEP (0U)
74 #define BOOTLOADER_OPMODE_STANDALONE (1U)
79 #define BOOTLOADER_MEDIA_MEM (0xB0070001)
80 #define BOOTLOADER_MEDIA_FLASH (0xB0070002)
81 #define BOOTLOADER_MEDIA_EMMC (0xB0070003)
82 #define BOOTLOADER_MEDIA_SD (0xB0070004)
83 #define BOOTLOADER_MEDIA_BUFIO (0xB0070005)
84 #define BOOTLOADER_MEDIA_PCIE (0xB0070006)
85 #define BOOTLOADER_MEDIA_USB (0xB0070007)
95 typedef struct Bootloader_Params_s
189 typedef struct Bootloader_Fxns_s
202 typedef struct Bootloader_Config_s
220 #include <drivers/bootloader/bootloader_flash.h>
221 #include <drivers/bootloader/bootloader_mem.h>
222 #include <drivers/bootloader/bootloader_buf_io.h>
227 typedef struct Bootloader_CpuInfo_s
239 typedef struct Bootloader_BootImageInfo_s
#define CSL_CORE_ID_MAX
Definition: cslr_soc_defines.h:63
uint32_t coresPresentMap
Definition: bootloader.h:208
void * args
Definition: hsmclient_msg.h:4
Bootloader_Fxns * fxns
Definition: bootloader.h:204
uint32_t disableAppImageAuth
Definition: bootloader.h:214
uint32_t Bootloader_isCorePresent(Bootloader_Handle handle, uint32_t cslCoreId)
API to check if a particular core's RPRC image is present in the multicore image.
uint32_t memArgsAppImageBaseAddr
Definition: bootloader.h:97
int32_t Bootloader_bootSelfCpu(Bootloader_Handle handle, Bootloader_BootImageInfo *bootImageInfo)
API to boot self CPU.
void(* Bootloader_imgCloseFxn)(void *handle, void *args)
Driver implementation to close a specific bootloader driver - Memory, OSPI, UART, MMCSD etc.
Definition: bootloader.h:181
int32_t Bootloader_rprcImageParseEntryPoint(Bootloader_Handle handle, Bootloader_CpuInfo *cpuInfo)
Parse entrypoint from RPRC.
uint32_t Bootloader_getBootMedia(Bootloader_Handle handle)
API to get the selected boot media in the bootloader instance.
Bootloader_imgOpenFxn imgOpenFxn
Definition: bootloader.h:191
void Bootloader_BootImageInfo_init(Bootloader_BootImageInfo *bootImageInfo)
Initialize BootImage info.
uint32_t isAppimageSigned
Definition: bootloader.h:213
uint32_t bufIoDeviceIndex
Definition: bootloader.h:106
void Bootloader_Params_init(Bootloader_Params *params)
Initialize Bootloader params.
uint32_t Bootloader_getMulticoreImageSize(Bootloader_Handle handle)
API to fetch the size of the multicore image.
uint32_t rprcOffset
Definition: bootloader.h:231
void * args
Definition: bootloader.h:205
Bootloader_imgSeekFxn imgSeekFxn
Definition: bootloader.h:194
int32_t Bootloader_runSelfCpuWithLinux(void)
API to boot self CPU with Linux.
uint8_t * bufIoTempBuf
Definition: bootloader.h:100
int32_t Bootloader_parseMultiCoreAppImage(Bootloader_Handle handle, Bootloader_BootImageInfo *bootImageInfo)
Parse Multicore Appimage.
Bootloader driver configuration, these are filled by SysCfg based on the boot media selected.
Definition: bootloader.h:203
uint32_t(* Bootloader_imgOffsetFxn)(void *args)
Driver implementation to get the current offset in the boot media.
Definition: bootloader.h:154
Bootloader_imgOffsetFxn imgOffsetFxn
Definition: bootloader.h:193
void Bootloader_close(Bootloader_Handle handle)
Close bootloader driver.
void * socCoreOpMode
Definition: bootloader.h:210
int32_t Bootloader_loadSelfCpu(Bootloader_Handle handle, Bootloader_CpuInfo *cpuInfo, uint32_t skipLoad)
API to load self CPU.
int32_t Bootloader_bootCpu(Bootloader_Handle handle, Bootloader_CpuInfo *cpuInfo)
API to boot a non-self CPU.
int32_t Bootloader_runCpu(Bootloader_Handle handle, Bootloader_CpuInfo *cpuInfo)
API to run a non-self CPU.
uint32_t bootImageSize
Definition: bootloader.h:207
uint32_t bufIoTempBufSize
Definition: bootloader.h:103
uint32_t clkHz
Definition: bootloader.h:230
uint32_t cpuId
Definition: bootloader.h:229
Data structure containing information related to a particular CPU, required for RPRC loading.
Definition: bootloader.h:228
int32_t(* Bootloader_imgOpenFxn)(void *args, Bootloader_Params *params)
Driver implementation to open a specific bootloader driver - Memory, OSPI, UART, MMCSD etc.
Definition: bootloader.h:128
Data structure containing information related all CPUs, this will be filled by Bootloader_parseMultiC...
Definition: bootloader.h:240
uint32_t bootMedia
Definition: bootloader.h:206
int32_t Bootloader_runSelfCpu(Bootloader_Handle handle, Bootloader_BootImageInfo *bootImageInfo)
API to boot self CPU.
int32_t Bootloader_rprcImageLoad(Bootloader_Handle handle, Bootloader_CpuInfo *cpuInfo)
Load application binaries into SOC memory.
void(* Bootloader_imgSeekFxn)(uint32_t location, void *args)
Driver implementation to read from boot media using a specific bootloader driver - Memory,...
Definition: bootloader.h:168
Bootloader_imgCloseFxn imgCloseFxn
Definition: bootloader.h:195
int32_t Bootloader_parseAndLoadLinuxAppImage(Bootloader_Handle handle, Bootloader_BootImageInfo *bootImageInfo)
Parse and load linux Appimage, containing linux binaries(ATF, OPTEE, SPL)
Driver implementation callbacks.
Definition: bootloader.h:190
int32_t(* Bootloader_imgReadFxn)(void *dstAddr, uint32_t length, void *args)
Driver implementation to read from boot media using a specific bootloader driver - Memory,...
Definition: bootloader.h:142
void * Bootloader_Handle
Handle to the Bootloader driver returned by Bootloader_open()
Definition: bootloader.h:90
void Bootloader_CpuInfo_init(Bootloader_CpuInfo *cpuInfo)
Initialize CPU info.
Parameters passed during Bootloader_open()
Definition: bootloader.h:96
Bootloader_Handle Bootloader_open(uint32_t instanceNum, Bootloader_Params *openParams)
Open bootloader driver.
int32_t Bootloader_loadCpu(Bootloader_Handle handle, Bootloader_CpuInfo *cpuInfo)
API to load a non-self CPU.
uint8_t * scratchMemPtr
Definition: bootloader.h:209
uintptr_t entryPoint
Definition: bootloader.h:232
uint32_t initICSSCores
Definition: bootloader.h:216
Bootloader_imgReadFxn imgReadFxn
Definition: bootloader.h:192