soc/mediatek: Enable DRAM scramble on fast calibration flow
No matter what DRAM calibration is performed, DRAM scramble should be enabled as long as MEDIATEK_DRAM_SCRAMBLE is set to y. Currently, DRAM scramble is enabled only if full calibration is performed. Correct the behavior by adding DRAMC_CONFIG_SCRAMBLE to the header config in fast calibration flow. BUG=b:285474337 TEST=Check the scramble feature is disabled on serial build Signed-off-by: Xi Chen <xixi.chen@mediatek.corp-partner.google.com> Change-Id: I907bccd4e68e040179e1971db6bf7a57b88dec1b Reviewed-on: https://review.coreboot.org/c/coreboot/+/75818 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
9906ffe529
commit
35fb55ac3d
|
@ -202,6 +202,8 @@ static int dram_run_fast_calibration(struct dramc_param *dparam)
|
|||
|
||||
printk(BIOS_INFO, "DRAM-K: DRAM calibration data valid pass\n");
|
||||
|
||||
if (CONFIG(MEDIATEK_DRAM_SCRAMBLE))
|
||||
dparam->header.config |= DRAMC_CONFIG_SCRAMBLE;
|
||||
if (CONFIG(MEDIATEK_DRAM_BLOB_FAST_INIT)) {
|
||||
printk(BIOS_INFO, "DRAM-K: Run fast calibration run in blob mode\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue