coreboot/src/soc/mediatek/mt8183
Huayang Duan 062646670f soc/mediatek/mt8183: Set CA and DQ vref range to correct value
The CA vref should alway select range[1]. But in fast calibration flow,
we missed the range selection and caused the CA vref to use the range[0] value.

The DQ vref should select correct range that corresponds to current frequency,
that is for 1600Mbps, 2400Mbps to select range[1], for 3200Mbps and 3600Mbps
to select range[0].

Refer to the 'JESD209-4 - Low Power Double Data Rate 4X(LPDDR4X).pdf',
used MR12 to set Vref(CA) levels, used MR14 to set VREF(DQ) levels.
MR12 range[0] values from 15.0% to 44.9%, range[1] values from 32.9% to 62.9%,
MR14 range[0] and range[1] values same as MR12.

BUG=b:153614919
BRANCH=kukui
TEST=Boots correctly on Kukui

Change-Id: Ie7680b1bf0c29c946d18e3b27626ce6f31c4216b
Signed-off-by: Huayang Duan <huayang.duan@mediatek.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40525
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-20 09:50:45 +00:00
..
include/soc soc/mediatek/mt8183: Set CA and DQ vref range to correct value 2020-05-20 09:50:45 +00:00
auxadc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootblock.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ddp.c src: Remove unused '#include <stddef.h>' 2020-05-13 08:48:50 +00:00
decompressor.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
dramc_init_setting.c soc/mediatek/mt8183: Set CA and DQ vref range to correct value 2020-05-20 09:50:45 +00:00
dramc_param.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
dramc_pi_basic_api.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
dramc_pi_calibration_api.c soc/mediatek/mt8183: Set CA and DQ vref range to correct value 2020-05-20 09:50:45 +00:00
dsi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
emi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gpio.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig soc/mediatek/mt8183: Run calibration with multiple frequencies for DVFS switch 2019-10-18 12:21:31 +00:00
Makefile.inc arch/arm64: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:24 +00:00
md_ctrl.c treewide: replace GPLv2 long form headers with SPDX header 2020-05-06 22:20:57 +00:00
memory.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mmu_operations.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mt6358.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mt8183.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mtcmos.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pll.c src: Remove unused '#include <stddef.h>' 2020-05-13 08:48:50 +00:00
pmic_wrap.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
rtc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
soc.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spm.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sspm.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00