coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sdram_configs.c File Reference
#include <boardid.h>
#include <cbfs.h>
#include <console/console.h>
#include <gpio.h>
#include <soc/sdram.h>
#include <string.h>
#include <types.h>
Include dependency graph for sdram_configs.c:

Go to the source code of this file.

Enumerations

enum  dram_speeds { dram_800MHz = 800 , dram_928MHz = 928 }
 

Functions

static enum dram_speeds get_sdram_target_mhz (void)
 
const struct rk3399_sdram_paramsget_sdram_config ()
 

Variables

static const char * sdram_configs []
 
static struct rk3399_sdram_params params
 

Enumeration Type Documentation

◆ dram_speeds

Enumerator
dram_800MHz 
dram_928MHz 

Definition at line 34 of file sdram_configs.c.

Function Documentation

◆ get_sdram_config()

const struct rk3399_sdram_params* get_sdram_config ( void  )

Definition at line 47 of file sdram_configs.c.

References ARRAY_SIZE, cbfs_load(), die(), get_sdram_target_mhz(), params, ram_code(), sdram_configs, and snprintf().

Here is the call graph for this function:

◆ get_sdram_target_mhz()

static enum dram_speeds get_sdram_target_mhz ( void  )
static

Definition at line 11 of file sdram_configs.c.

Referenced by get_sdram_config().

Here is the caller graph for this function:

Variable Documentation

◆ params

struct rk3399_sdram_params params
static

Definition at line 11 of file sdram_configs.c.

Referenced by get_sdram_config().

◆ sdram_configs

const char* sdram_configs[]
static
Initial value:
= {
[0] = "sdram-lpddr3-generic-4GB",
[1] = "sdram-lpddr3-generic-4GB",
[3] = "sdram-lpddr3-generic-2GB",
[4] = "sdram-lpddr3-generic-2GB",
[5] = "sdram-lpddr3-generic-4GB",
[6] = "sdram-lpddr3-generic-4GB",
}

Definition at line 11 of file sdram_configs.c.

Referenced by get_sdram_config().