coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
psp_efs.c File Reference
#include <amdblocks/psp_efs.h>
#include <arch/mmio.h>
#include <boot_device.h>
#include <commonlib/region.h>
#include <types.h>
Include dependency graph for psp_efs.c:

Go to the source code of this file.

Functions

bool efs_is_valid (void)
 
bool read_efs_spi_settings (uint8_t *mode, uint8_t *speed)
 

Variables

static struct embedded_firmwareefs
 

Function Documentation

◆ efs_is_valid()

bool efs_is_valid ( void  )

Definition at line 11 of file psp_efs.c.

References boot_device_ro(), efs, EFS_OFFSET, EMBEDDED_FW_SIGNATURE, rdev_mmap(), and embedded_firmware::signature.

Referenced by read_efs_spi_settings().

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

◆ read_efs_spi_settings()

bool read_efs_spi_settings ( uint8_t mode,
uint8_t speed 
)

Definition at line 22 of file psp_efs.c.

References efs, and efs_is_valid().

Referenced by fch_spi_config_modes().

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

Variable Documentation

◆ efs

struct embedded_firmware* efs
static

Definition at line 9 of file psp_efs.c.

Referenced by efs_is_valid(), and read_efs_spi_settings().