coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dramc_param_common.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_MEDIATEK_DRAMC_PARAM_COMMON_H__
4 #define __SOC_MEDIATEK_DRAMC_PARAM_COMMON_H__
5 
6 /*
7  * NOTE: This file is shared between coreboot and dram blob. Any change in this
8  * file should be synced to the other repository.
9  */
10 
11 #include <soc/dramc_soc.h>
12 
24 };
25 
28 };
29 
34 };
35 
37  u16 version; /* DRAMC_PARAM_HEADER_VERSION, set in coreboot */
38  u16 size; /* size of whole dramc_param, set in coreboot */
39  u16 status; /* DRAMC_PARAM_STATUS_CODES, set in dram blob */
40  u16 flags; /* DRAMC_PARAM_FLAG, set in dram blob */
41  u16 config; /* DRAMC_PARAM_CONFIG, set in coreboot */
42 };
43 
47 };
48 
56 };
57 
58 struct sdram_info {
59  u32 ddr_type; /* SDRAM_DDR_TYPE */
60  u32 ddr_geometry; /* SDRAM_DDR_GEOMETRY_TYPE */
61 };
62 
63 struct emi_mdl {
68 };
69 
70 struct ddr_mrr_info {
77 };
78 
82 };
83 
88 };
89 
90 struct ddr_base_info {
91  u32 config_dvfs; /* SDRAM_DVFS_FLAG */
92  struct sdram_info sdram;
93  u32 voltage_type; /* SDRAM_VOLTAGE_TYPE */
96  struct emi_mdl emi_config;
98  struct ddr_mrr_info mrr_info;
100 };
101 
102 #endif
@ RANK_MAX
SDRAM_DVFS_FLAG
@ DRAMC_DISABLE_DVFS
@ DRAMC_ENABLE_DVFS
SDRAM_DDR_GEOMETRY_TYPE
@ DDR_TYPE_2CH_2RK_8GB_4_4
@ DDR_TYPE_2CH_2RK_8GB_4_4_BYTE
@ DDR_TYPE_2CH_2RK_4GB_2_2
@ DDR_TYPE_2CH_2RK_6GB_3_3
@ DDR_TYPE_2CH_1RK_4GB_4_0
@ DDR_TYPE_2CH_2RK_6GB_2_4
DRAMC_PARAM_STATUS_CODES
@ DRAMC_ERR_COMPLEX_RW_MEM_TEST
@ DRAMC_ERR_RECALIBRATE
@ DRAMC_ERR_FAST_CALIBRATION
@ DRAMC_ERR_INVALID_SIZE
@ DRAMC_ERR_INVALID_VERSION
@ DRAMC_ERR_1ST_COMPLEX_RW_MEM_TEST
@ DRAMC_ERR_INVALID_FLAGS
@ DRAMC_ERR_2ND_COMPLEX_RW_MEM_TEST
@ DRAMC_ERR_INIT_DRAM
@ DRAMC_SUCCESS
DRAMC_PARAM_CONFIG
@ DRAMC_CONFIG_EMCP
@ DRAMC_CONFIG_DVFS
@ DRAMC_CONFIG_FAST_K
DRAMC_PARAM_FLAG
@ DRAMC_FLAG_HAS_SAVED_DATA
SDRAM_DDR_TYPE
@ DDR_TYPE_EMCP
@ DDR_TYPE_DISCRETE
SDRAM_VOLTAGE_TYPE
@ SDRAM_VOLTAGE_LVCORE_LVDRAM
@ SDRAM_VOLTAGE_HVCORE_HVDRAM
@ SDRAM_VOLTAGE_NVCORE_NVDRAM
DRAM_CBT_MODE_T
Definition: dramc_soc.h:45
uint64_t u64
Definition: stdint.h:54
uint32_t u32
Definition: stdint.h:51
uint16_t u16
Definition: stdint.h:48
uint8_t u8
Definition: stdint.h:45
u64 rank_size[RANK_MAX]
struct sdram_info sdram
DRAM_CBT_MODE_T cbt_mode[RANK_MAX]
struct emi_mdl emi_config
struct ddr_mrr_info mrr_info
u8 die_num[RANK_MAX]
u64 mr8_density[RANK_MAX]