coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
emi.h File Reference
#include <types.h>
#include <soc/dramc_common_mt8183.h>
Include dependency graph for emi.h:

Go to the source code of this file.

Data Structures

struct  sdram_params
 Defines the SDRAM parameter structure. More...
 
struct  dram_impedance
 
struct  mr_value
 
struct  dram_shared_data
 

Enumerations

enum  DRAMC_PARAM_SOURCE { DRAMC_PARAM_SOURCE_SDRAM_INVALID = 0 , DRAMC_PARAM_SOURCE_SDRAM_CONFIG , DRAMC_PARAM_SOURCE_FLASH }
 
enum  {
  LP4X_DDR1600 , LP4X_DDR2400 , LP4X_DDR3200 , LP4X_DDR3600 ,
  LP4X_DDRFREQ_MAX
}
 

Functions

int complex_mem_test (u8 *start, unsigned int len)
 
size_t sdram_size (void)
 
const struct sdram_paramsget_sdram_config (void)
 
void enable_emi_dcm (void)
 
int mt_set_emi (const struct dramc_param *dparam)
 
void mt_mem_init (struct dramc_param_ops *dparam_ops)
 

Variables

const u8 phy_mapping [CHANNEL_MAX][16]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LP4X_DDR1600 
LP4X_DDR2400 
LP4X_DDR3200 
LP4X_DDR3600 
LP4X_DDRFREQ_MAX 

Definition at line 66 of file emi.h.

◆ DRAMC_PARAM_SOURCE

Enumerator
DRAMC_PARAM_SOURCE_SDRAM_INVALID 
DRAMC_PARAM_SOURCE_SDRAM_CONFIG 
DRAMC_PARAM_SOURCE_FLASH 

Definition at line 9 of file emi.h.

Function Documentation

◆ complex_mem_test()

int complex_mem_test ( u8 start,
unsigned int  len 
)

Definition at line 25 of file memory_test.c.

◆ enable_emi_dcm()

void enable_emi_dcm ( void  )

Definition at line 469 of file emi.c.

Referenced by dramc_runtime_config().

Here is the caller graph for this function:

◆ get_sdram_config()

const struct sdram_params* get_sdram_config ( void  )

Definition at line 85 of file sdram_configs.c.

◆ mt_mem_init()

void mt_mem_init ( struct dramc_param_ops dparam_ops)

Definition at line 223 of file memory.c.

References dparam_ops, mt_mem_init_run(), and pmic_set_vcore_vol().

Here is the call graph for this function:

◆ mt_set_emi()

◆ sdram_size()

size_t sdram_size ( void  )

Definition at line 117 of file emi.c.

References assert, BIOS_INFO, cbmem_find(), CBMEM_ID_MEM_CHIP_INFO, mem_chip_info::channel, mem_chip_info::mem_chip_channel::density, dramc_get_rank_size(), ENV_ROMSTAGE, mtk_dram_size(), mem_chip_info::num_channels, printk, and RANK_MAX.

Referenced by init_4GB_mode().

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

Variable Documentation

◆ phy_mapping

const u8 phy_mapping[CHANNEL_MAX][16]
extern