coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spm.c File Reference
#include <assert.h>
#include <console/console.h>
#include <soc/mcu_common.h>
#include <soc/spm.h>
#include <soc/spm_common.h>
#include <string.h>
Include dependency graph for spm.c:

Go to the source code of this file.

Macros

#define SPMFW_HEADER_SIZE   16
 

Functions

void spm_parse_firmware (struct mtk_mcu *mcu)
 

Macro Definition Documentation

◆ SPMFW_HEADER_SIZE

#define SPMFW_HEADER_SIZE   16

Definition at line 10 of file spm.c.

Function Documentation

◆ spm_parse_firmware()

void spm_parse_firmware ( struct mtk_mcu mcu)

Definition at line 12 of file spm.c.

References assert, BIOS_DEBUG, BIOS_INFO, dyna_load_pcm::buf, dyna_load_pcm::desc, mtk_mcu::load_buffer, memcpy(), offset, printk, mtk_mcu::priv, mtk_mcu::run_size, SPMFW_HEADER_SIZE, and pcm_desc::total_words.

Referenced by reset_spm().

Here is the call graph for this function:
Here is the caller graph for this function: