coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dramc_soc.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __SOC_MEDIATEK_DRAMC_SOC_H__
4 #define __SOC_MEDIATEK_DRAMC_SOC_H__
5 
6 typedef enum {
7  CHANNEL_A = 0,
11 
12 typedef enum {
13  RANK_0 = 0,
15  RANK_MAX
17 
18 typedef enum {
27 } DRAM_DFS_SHUFFLE_TYPE_T; // DRAM SHUFFLE RG type
28 
29 /*
30  * Internal CBT mode enum
31  * 1. Calibration flow uses vGet_Dram_CBT_Mode to
32  * differentiate between mixed vs non-mixed LP4
33  * 2. Declared as dram_cbt_mode[RANK_MAX] internally to
34  * store each rank's CBT mode type
35  */
36 typedef enum {
40 
41 #define DRAM_DFS_SHU_MAX DRAM_DFS_SHUFFLE_MAX
42 
43 #define DQS_NUMBER_LP4 2
44 #define DQS_BIT_NUMBER 8
45 #define DQ_DATA_WIDTH_LP4 16
46 
47 #endif /* __SOC_MEDIATEK_DRAMC_SOC_H__ */
@ CHANNEL_A
Definition: dramc_soc.h:7
@ CHANNEL_B
Definition: dramc_soc.h:8
DRAM_RANK_T
Definition: dramc_soc.h:12
@ RANK_1
Definition: dramc_soc.h:14
@ RANK_0
Definition: dramc_soc.h:13
@ RANK_MAX
Definition: dramc_soc.h:15
DRAM_CBT_MODE_T
Definition: dramc_soc.h:45
@ CBT_BYTE_MODE1
Definition: dramc_soc.h:47
@ CBT_NORMAL_MODE
Definition: dramc_soc.h:46
DRAM_DFS_SHUFFLE_TYPE_T
Definition: dramc_soc.h:24
@ DRAM_DFS_SHUFFLE_MAX
Definition: dramc_soc.h:35
@ DRAM_DFS_SHUFFLE_6
Definition: dramc_soc.h:30
@ DRAM_DFS_SHUFFLE_1
Definition: dramc_soc.h:25
@ DRAM_DFS_SHUFFLE_3
Definition: dramc_soc.h:27
@ DRAM_DFS_SHUFFLE_5
Definition: dramc_soc.h:29
@ DRAM_DFS_SHUFFLE_7
Definition: dramc_soc.h:31
@ DRAM_DFS_SHUFFLE_4
Definition: dramc_soc.h:28
@ DRAM_DFS_SHUFFLE_2
Definition: dramc_soc.h:26
DRAM_CHANNEL_T
Definition: dramc_soc.h:6
@ CHANNEL_MAX
Definition: dramc_soc.h:9