Skip to contentSkip to conversation

fsl-ddr: change the default burst mode for DDR3

PATCH New Dave Liu 1 participant 1 message Feb 4, 2010

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 2/2 fsl-ddr: change the default burst mode for DDR3

For 64B cacheline SoC, set the fixed 8-beat burst len, for 32B cacheline SoC, set the On-The-Fly as default.

---
should go to B2.0.3 release.

 cpu/mpc8xxx/ddr/options.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
cpu/mpc8xxx/ddr/options.c +5 -0
index 105e758..0a6169a 100644
@@ -110,8 +110,13 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,
 
 	/* Choose burst length. */
 #if defined(CONFIG_FSL_DDR3)
+#if defined(CONFIG_E500MC)
+	popts->OTF_burst_chop_en = 0;	/* on-the-fly burst chop disable */
+	popts->burst_length = DDR_BL8;	/* Fixed 8-beat burst len */
+#else
 	popts->OTF_burst_chop_en = 1;	/* on-the-fly burst chop */
 	popts->burst_length = DDR_OTF;	/* on-the-fly BC4 and BL8 */
+#endif
 #else
 	popts->burst_length = DDR_BL4;	/* has to be 4 for DDR2 */
 #endif
Signature · 1 line
1.6.4