diff options
author | Tom Rini <trini@konsulko.com> | 2015-07-31 20:16:21 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-07-31 20:16:21 -0400 |
commit | 8968b914be7bfd67d179d0395898bd9db67aaad1 (patch) | |
tree | a7640f8f1f5166ed7c62df773984cfcebb33bbf2 /board/freescale/t104xrdb/ddr.c | |
parent | 352bc77054ceb10a580f871ef4008fa9b0e82be6 (diff) | |
parent | f2af1c37a09cdd28a78fde4ee4275aedf59be620 (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'board/freescale/t104xrdb/ddr.c')
-rw-r--r-- | board/freescale/t104xrdb/ddr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/freescale/t104xrdb/ddr.c b/board/freescale/t104xrdb/ddr.c index e1148e568e..cf79d2ddb2 100644 --- a/board/freescale/t104xrdb/ddr.c +++ b/board/freescale/t104xrdb/ddr.c @@ -75,7 +75,11 @@ found: * Factors to consider for half-strength driver enable: * - number of DIMMs installed */ +#ifdef CONFIG_SYS_FSL_DDR4 + popts->half_strength_driver_enable = 1; +#else popts->half_strength_driver_enable = 0; +#endif /* * Write leveling override */ @@ -91,8 +95,14 @@ found: popts->zq_en = 1; /* DHC_EN =1, ODT = 75 Ohm */ +#ifdef CONFIG_SYS_FSL_DDR4 + popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_120OHM); + popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_120OHM) | + DDR_CDR2_VREF_OVRD(70); /* Vref = 70% */ +#else popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_75ohm); popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_75ohm); +#endif } #if defined(CONFIG_DEEP_SLEEP) |