Skip to contentSkip to conversation

fsl-ddr: use the 1T timing as default configuration

PATCH New Dave Liu 2 participants 2 messages Nov 21, 2008 – Dec 4, 2008

lore
Share & tools
lore

Dave Liu

author
#0 lore raw

PATCH 4/5 fsl-ddr: use the 1T timing as default configuration

For light loaded system, we use the 1T timing to gain better memory performance, but for some heavily loaded system, you have to add the 2T timing options to board files.

---
 board/freescale/mpc8540ads/ddr.c  |    3 +++
 board/freescale/mpc8544ds/ddr.c   |    3 +++
 board/freescale/mpc8560ads/ddr.c  |    3 +++
 board/freescale/mpc8610hpcd/ddr.c |    3 +++
 board/freescale/mpc8641hpcn/ddr.c |    2 ++
 board/stxgp3/ddr.c                |    3 +++
 board/stxssa/ddr.c                |    3 +++
 cpu/mpc8xxx/ddr/options.c         |    2 +-
 8 files changed, 21 insertions(+), 1 deletions(-)
board/freescale/mpc8540ads/ddr.c +3 -0
index 7850794..93d1100 100644
@@ -65,6 +65,9 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 	 */
 	popts->write_data_delay = 3;
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
+
 	/*
 	 * Factors to consider for half-strength driver enable:
 	 *	- number of DIMMs installed
board/freescale/mpc8544ds/ddr.c +3 -0
index 34f84a2..b8330eb 100644
@@ -75,6 +75,9 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 	 */
 	popts->write_data_delay = 3;
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
+
 	/*
 	 * Factors to consider for half-strength driver enable:
 	 *	- number of DIMMs installed
board/freescale/mpc8560ads/ddr.c +3 -0
index 7850794..93d1100 100644
@@ -65,6 +65,9 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 	 */
 	popts->write_data_delay = 3;
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
+
 	/*
 	 * Factors to consider for half-strength driver enable:
 	 *	- number of DIMMs installed
board/freescale/mpc8610hpcd/ddr.c +3 -0
index 414ac24..0117d13 100644
@@ -74,6 +74,9 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 	 */
 	popts->write_data_delay = 3;
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
+
 	/*
 	 * Factors to consider for half-strength driver enable:
 	 *	- number of DIMMs installed
board/freescale/mpc8641hpcn/ddr.c +2 -0
index 3789b54..8dc249b 100644
@@ -162,4 +162,6 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 		}
 	}
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
 }
board/stxgp3/ddr.c +3 -0
index 7850794..93d1100 100644
@@ -65,6 +65,9 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 	 */
 	popts->write_data_delay = 3;
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
+
 	/*
 	 * Factors to consider for half-strength driver enable:
 	 *	- number of DIMMs installed
board/stxssa/ddr.c +3 -0
index 7850794..93d1100 100644
@@ -65,6 +65,9 @@ void fsl_ddr_board_options(memctl_options_t *popts,
 	 */
 	popts->write_data_delay = 3;
 
+	/* 2T timing enable */
+	popts->twoT_en = 1;
+
 	/*
 	 * Factors to consider for half-strength driver enable:
 	 *	- number of DIMMs installed
cpu/mpc8xxx/ddr/options.c +1 -1
index 714e88d..9b219ff 100644
@@ -142,7 +142,7 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,
 	 *	- number of components, number of active ranks
 	 *	- how much time you want to spend playing around
 	 */
-	popts->twoT_en = 1;
+	popts->twoT_en = 0;
 	popts->threeT_en = 0;
 
 	/*
Signature · 1 line
1.5.4
Applied
#1 lore raw

PATCH 4/5 fsl-ddr: use the 1T timing as default configuration

Quoted 5 lines · Dave Liu

For light loaded system, we use the 1T timing to gain better memory performance, but for some heavily loaded system, you have to add the 2T timing options to board files.

Applied to 85xx-next, thanks

Andy