Skip to content
Snippets Groups Projects
Commit 0fb71974 authored by York Sun's avatar York Sun
Browse files

driver/ddr/fsl: Update DDR4 MR6 for Vref range


MR6 bit 6 is set accrodingly for range 1 or 2, per JEDEC spec.

Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
parent 19601dd9
No related branches found
No related tags found
No related merge requests found
...@@ -1186,6 +1186,9 @@ static void set_ddr_sdram_mode_10(const unsigned int ctrl_num, ...@@ -1186,6 +1186,9 @@ static void set_ddr_sdram_mode_10(const unsigned int ctrl_num,
esdmode6 = ((tccdl_min - 4) & 0x7) << 10; esdmode6 = ((tccdl_min - 4) & 0x7) << 10;
if (popts->ddr_cdr2 & DDR_CDR2_VREF_RANGE_2)
esdmode6 |= 1 << 6; /* Range 2 */
ddr->ddr_sdram_mode_10 = (0 ddr->ddr_sdram_mode_10 = (0
| ((esdmode6 & 0xffff) << 16) | ((esdmode6 & 0xffff) << 16)
| ((esdmode7 & 0xffff) << 0) | ((esdmode7 & 0xffff) << 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment