![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <arch/stages.h>
#include <console/console.h>
#include <fmap.h>
#include <soc/dramc_param.h>
#include <soc/emi.h>
#include <soc/mmu_operations.h>
#include <soc/mt6358.h>
#include <soc/pll.h>
#include <soc/rtc.h>
#include "early_init.h"
Go to the source code of this file.
Macros | |
#define | CALIBRATION_REGION "RW_DDR_TRAINING" |
#define | CALIBRATION_REGION_SIZE 0x2000 |
Functions | |
_Static_assert (sizeof(struct dramc_param)<=CALIBRATION_REGION_SIZE, "sizeof(struct dramc_param) exceeds " CALIBRATION_REGION) | |
static bool | read_calibration_data_from_flash (struct dramc_param *dparam) |
static bool | write_calibration_data_to_flash (const struct dramc_param *dparam) |
void | platform_romstage_main (void) |
Variables | |
static struct dramc_param | dramc_parameter |
static struct dramc_param_ops | dparam_ops |
#define CALIBRATION_REGION "RW_DDR_TRAINING" |
Definition at line 16 of file romstage.c.
#define CALIBRATION_REGION_SIZE 0x2000 |
Definition at line 17 of file romstage.c.
_Static_assert | ( | sizeof(struct dramc_param)<= | CALIBRATION_REGION_SIZE, |
"sizeof(struct dramc_param) exceeds " | CALIBRATION_REGION | ||
) |
Definition at line 51 of file romstage.c.
References CONFIG, dparam_ops, mainboard_early_init(), MHz, mt6358_init(), mt_mem_init(), mt_pll_raise_little_cpu_freq(), mtk_mmu_after_dram(), pmic_init_scp_voltage(), pmic_set_vsim2_cali(), and rtc_boot().
|
static |
Definition at line 22 of file romstage.c.
References BIOS_DEBUG, CALIBRATION_REGION, fmap_read_area(), length, and printk.
|
static |
Definition at line 32 of file romstage.c.
|
static |
Definition at line 32 of file romstage.c.
Referenced by mt_mem_init(), mt_mem_init_run(), and platform_romstage_main().
|
static |
Definition at line 32 of file romstage.c.
Referenced by mtk_dram_init().