summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8186/include/soc/dramc_soc.h
diff options
context:
space:
mode:
authorXi Chen <xixi.chen@mediatek.corp-partner.google.com>2022-01-04 19:00:44 +0800
committerHung-Te Lin <hungte@chromium.org>2022-02-09 06:02:52 +0000
commit5c7a9237571bce7f91ffd56860f7b644b7f6f1db (patch)
tree3ed7f733d22a9da733eca549edcb24c83d655d8e /src/soc/mediatek/mt8186/include/soc/dramc_soc.h
parente0f08018025945921196168be7605a7e15d6abeb (diff)
downloadcoreboot-5c7a9237571bce7f91ffd56860f7b644b7f6f1db.tar.gz
coreboot-5c7a9237571bce7f91ffd56860f7b644b7f6f1db.tar.bz2
coreboot-5c7a9237571bce7f91ffd56860f7b644b7f6f1db.zip
soc/mediatek/mt8186: Support DRAM fast calibration using blob
For most MediaTek SoCs (MT8183, MT8192, MT8195) we rely on an external program (e.g., the "DRAM blob") to do the full DRAM calibration first, then store and and apply the generated parameters to the reference "fast DRAM calibration" in the vendor/mediatek folder for normal system boot. Starting with MT8186 the implementation of fast calibration may need to be changed, and a "DRAM blob" only path is introduced for devices that have to do both full and fast calibration using the external blob. TEST=fast calibration pass on kingler/krabby BUG=b:204226005 Signed-off-by: Xi Chen <xixi.chen@mediatek.corp-partner.google.com> Change-Id: If25a7dd6aa6261ecff79a1b4df8b1f2e53d896dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/61133 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8186/include/soc/dramc_soc.h')
-rw-r--r--src/soc/mediatek/mt8186/include/soc/dramc_soc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/include/soc/dramc_soc.h b/src/soc/mediatek/mt8186/include/soc/dramc_soc.h
index 34e8414d476c..5602e144cbc9 100644
--- a/src/soc/mediatek/mt8186/include/soc/dramc_soc.h
+++ b/src/soc/mediatek/mt8186/include/soc/dramc_soc.h
@@ -15,6 +15,11 @@ typedef enum {
RANK_MAX,
} DRAM_RANK_T;
+typedef enum {
+ RANK_SINGLE = 1,
+ RANK_DUAL,
+} DRAM_RANK_NUMBER_T;
+
/* DRAM SHUFFLE RG type */
typedef enum {
DRAM_DFS_SHUFFLE_1 = 0,