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_MT8186_DRAMC_SOC_H__
4 #define __SOC_MEDIATEK_MT8186_DRAMC_SOC_H__
5 
6 typedef enum {
7  CHANNEL_A = 0,
11 
12 typedef enum {
13  RANK_0 = 0,
16 } DRAM_RANK_T;
17 
18 typedef enum {
22 
23 /* DRAM SHUFFLE RG type */
24 typedef enum {
37 
38 /*
39  * Internal CBT mode enum
40  * 1. Calibration flow uses vGet_Dram_CBT_Mode to
41  * differentiate between mixed vs non-mixed LP4
42  * 2. Declared as dram_cbt_mode[RANK_MAX] internally to
43  * store each rank's CBT mode type
44  */
45 typedef enum {
49 
50 #define DRAM_DFS_SHU_MAX DRAM_DFS_SHUFFLE_MAX
51 
52 #define DQS_NUMBER_LP4 2
53 #define DQS_BIT_NUMBER 8
54 #define DQ_DATA_WIDTH_LP4 16
55 
56 #endif /* __SOC_MEDIATEK_MT8186_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_10
Definition: dramc_soc.h:34
@ DRAM_DFS_SHUFFLE_3
Definition: dramc_soc.h:27
@ DRAM_DFS_SHUFFLE_8
Definition: dramc_soc.h:32
@ DRAM_DFS_SHUFFLE_5
Definition: dramc_soc.h:29
@ DRAM_DFS_SHUFFLE_9
Definition: dramc_soc.h:33
@ 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_RANK_NUMBER_T
Definition: dramc_soc.h:18
@ RANK_DUAL
Definition: dramc_soc.h:20
@ RANK_SINGLE
Definition: dramc_soc.h:19
DRAM_CHANNEL_T
Definition: dramc_soc.h:6
@ CHANNEL_MAX
Definition: dramc_soc.h:9