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

Go to the source code of this file.

Functions

uint32_t sdram_get_ram_code (void)
 
void sdram_init (const struct sdram_params *param)
 
int sdram_size_mb (void)
 
uintptr_t sdram_max_addressable_mb (void)
 
void sdram_lp0_save_params (const struct sdram_params *sdram)
 

Function Documentation

◆ sdram_get_ram_code()

uint32_t sdram_get_ram_code ( void  )

Definition at line 601 of file sdram.c.

References pmc, PMC_STRAPPING_OPT_A_RAM_CODE_MASK, PMC_STRAPPING_OPT_A_RAM_CODE_SHIFT, read32(), tegra_pmc_regs::strapping_opt_a, and TEGRA_PMC_BASE.

Referenced by get_sdram_config(), ram_code(), and romstage().

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

◆ sdram_init()

◆ sdram_lp0_save_params()

void sdram_lp0_save_params ( const struct sdram_params sdram)

◆ sdram_max_addressable_mb()

uintptr_t sdram_max_addressable_mb ( void  )

Definition at line 630 of file sdram.c.

References _dram, MiB, MIN, and sdram_size_mb().

Referenced by cbmem_top_chipset(), fb_base_mb(), romstage(), and soc_read_resources().

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

◆ sdram_size_mb()

int sdram_size_mb ( void  )

Definition at line 24 of file sdram.c.