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_MT8195_DRAMC_SOC_H__
4 #define __SOC_MEDIATEK_MT8195_DRAMC_SOC_H__
5 
6 typedef enum {
7  CHANNEL_A = 0,
13 
14 typedef enum {
15  RANK_0 = 0,
18 } DRAM_RANK_T;
19 
20 /* DRAM SHUFFLE register type */
21 typedef enum {
31 
32 /*
33  * Internal CBT mode enum
34  * 1. Calibration flow uses vGet_Dram_CBT_Mode to
35  * differentiate between mixed vs non-mixed LP4
36  * 2. Declared as dram_cbt_mode[RANK_MAX] internally to
37  * store each rank's CBT mode type
38  */
39 typedef enum {
43 
44 #define DRAM_DFS_SHU_MAX DRAM_DFS_SHUFFLE_MAX
45 
46 #define DQS_NUMBER_LP4 2
47 #define DQS_BIT_NUMBER 8
48 #define DQ_DATA_WIDTH_LP4 16
49 
50 #endif /* __SOC_MEDIATEK_MT8195_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
@ CHANNEL_C
Definition: dramc_soc.h:9
@ CHANNEL_D
Definition: dramc_soc.h:10