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

Go to the source code of this file.

Functions

size_t sdram_size (void)
 
size_t mtk_dram_size (void)
 
void mt_set_emi (struct dramc_param *dparam)
 
void mt_mem_init (struct dramc_param *dparam)
 
void mtk_dram_init (void)
 
int complex_mem_test (u8 *start, unsigned int len)
 
bool is_dvfs_enabled (void)
 
u32 get_ddr_geometry (void)
 
u32 get_ddr_type (void)
 
void init_dram_by_params (struct dramc_param *dparam)
 

Function Documentation

◆ complex_mem_test()

int complex_mem_test ( u8 start,
unsigned int  len 
)

Definition at line 25 of file memory_test.c.

References PATTERN0, PATTERN1, PATTERN2, PATTERN3, PATTERN4, PATTERN5, PATTERN6, PATTERN7, PATTERN8, PATTERN9, PATTERNA, PATTERNB, PATTERNC, PATTERND, PATTERNE, PATTERNF, and value.

Referenced by mt_mem_init(), and mt_mem_test().

Here is the caller graph for this function:

◆ get_ddr_geometry()

◆ get_ddr_type()

◆ init_dram_by_params()

void init_dram_by_params ( struct dramc_param dparam)

Definition at line 31 of file dram_init.c.

References dramc_params, and mt_set_emi().

Referenced by dram_run_fast_calibration().

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

◆ is_dvfs_enabled()

bool is_dvfs_enabled ( void  )

◆ mt_mem_init()

void mt_mem_init ( struct dramc_param dparam)

Definition at line 304 of file memory.c.

References get_sdram_config(), and mt_mem_init_run().

Referenced by mtk_dram_init(), and platform_romstage_main().

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

◆ mt_set_emi()

void mt_set_emi ( struct dramc_param dparam)

Definition at line 34 of file emi.c.

Referenced by init_dram_by_params(), mt_mem_init(), and mt_mem_init_run().

Here is the caller graph for this function:

◆ mtk_dram_init()

void mtk_dram_init ( void  )

Definition at line 311 of file memory.c.

References curr_ddr_info, dramc_data::ddr_info, dramc_param::dramc_datas, dramc_parameter, mt_mem_init(), and mtk_mmu_after_dram().

Referenced by platform_romstage_main().

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

◆ mtk_dram_size()

size_t mtk_dram_size ( void  )

Definition at line 102 of file memory.c.

References curr_ddr_info, ddr_mrr_info::mr8_density, ddr_base_info::mrr_info, and RANK_MAX.

Referenced by fill_dram_info(), and sdram_size().

Here is the caller graph for this function:

◆ sdram_size()

size_t sdram_size ( void  )

Definition at line 117 of file emi.c.

References COL_ADDR_BITS_MASK, COL_ADDR_BITS_SHIFT, CONA_32BIT_EN, CONA_DUAL_CH_EN, CONA_DUAL_RANK_EN, emi_regs::emi_cona, read32(), ROW_ADDR_BITS_MASK, ROW_ADDR_BITS_SHIFT, and value.

Referenced by cbmem_top_chipset(), mtk_mmu_after_dram(), and soc_read_resources().

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