From 5c7a9237571bce7f91ffd56860f7b644b7f6f1db Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Tue, 4 Jan 2022 19:00:44 +0800 Subject: 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 Change-Id: If25a7dd6aa6261ecff79a1b4df8b1f2e53d896dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/61133 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8186/include/soc/dramc_soc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/soc/mediatek/mt8186/include/soc/dramc_soc.h') 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, -- cgit v1.2.3