coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
blobs_init.c File Reference
#include <arch/cache.h>
#include <device/mmio.h>
#include <cbfs.h>
#include <console/console.h>
#include <string.h>
#include <timer.h>
#include <soc/iomap.h>
#include <soc/soc_services.h>
#include "mbn_header.h"
Include dependency graph for blobs_init.c:

Go to the source code of this file.

Macros

#define DDR_VERSION()   ((const char *)0x2a03f600)
 
#define MAX_DDR_VERSION_SIZE   48
 
#define RPM_VERSION()   (*((u32 *)(0x00108008)))
 

Functions

static voidload_ipq_blob (const char *file_name)
 
int initialize_dram (void)
 
void start_tzbsp (void)
 
void start_rpm (void)
 

Macro Definition Documentation

◆ DDR_VERSION

#define DDR_VERSION ( )    ((const char *)0x2a03f600)

Definition at line 45 of file blobs_init.c.

◆ MAX_DDR_VERSION_SIZE

#define MAX_DDR_VERSION_SIZE   48

Definition at line 46 of file blobs_init.c.

◆ RPM_VERSION

#define RPM_VERSION ( )    (*((u32 *)(0x00108008)))

Definition at line 88 of file blobs_init.c.

Function Documentation

◆ initialize_dram()

int initialize_dram ( void  )

Definition at line 48 of file blobs_init.c.

References BIOS_ERR, BIOS_INFO, DDR_VERSION, die(), load_ipq_blob(), MAX_DDR_VERSION_SIZE, and printk.

Here is the call graph for this function:

◆ load_ipq_blob()

static void* load_ipq_blob ( const char *  file_name)
static

Definition at line 15 of file blobs_init.c.

References cache_sync_instructions(), cbfs_map(), mbn_header::mbn_destination, mbn_header::mbn_total_size, mbn_header::mbn_version, memcpy(), and NULL.

Referenced by initialize_dram(), start_rpm(), and start_tzbsp().

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

◆ start_rpm()

void start_rpm ( void  )

Definition at line 89 of file blobs_init.c.

References BIOS_INFO, die(), load_ipq_blob(), printk, read32(), RPM_FW_MAGIC_NUM, RPM_INT, RPM_INT_ACK, RPM_SIGNAL_COOKIE, RPM_SIGNAL_ENTRY, RPM_VERSION, stopwatch_expired(), stopwatch_init_usecs_expire(), and write32().

Referenced by mainboard_init().

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

◆ start_tzbsp()

void start_tzbsp ( void  )

Definition at line 75 of file blobs_init.c.

References BIOS_INFO, die(), load_ipq_blob(), printk, and tz_init_wrapper().

Here is the call graph for this function: