summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2011-08-24 09:40:26 -0700
committerKumar Gala <galak@kernel.crashing.org>2011-09-29 19:01:06 -0500
commitcda1de21ded801306e05c0e2ee17ca9c60a87872 (patch)
tree30f597aa3591c24fc50cf9cfb38fd3c37beb3b79 /board
parent2bba85f41246d2bc1db00f2b0cce831b5efd4dfe (diff)
downloadblackbird-obmc-uboot-cda1de21ded801306e05c0e2ee17ca9c60a87872.tar.gz
blackbird-obmc-uboot-cda1de21ded801306e05c0e2ee17ca9c60a87872.zip
powerpc/mpc8xxx: Move DDR RCW overriding to common code
DDR RCW varies at different speeds. It is common for all platform. Move it out from corenet_ds. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/corenet_ds/ddr.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/board/freescale/corenet_ds/ddr.c b/board/freescale/corenet_ds/ddr.c
index b93701571b..258ed1f1e7 100644
--- a/board/freescale/corenet_ds/ddr.c
+++ b/board/freescale/corenet_ds/ddr.c
@@ -223,20 +223,6 @@ void fsl_ddr_board_options(memctl_options_t *popts,
/* DHC_EN =1, ODT = 60 Ohm */
popts->ddr_cdr1 = DDR_CDR1_DHC_EN;
-
- /* override SPD values. rcw_2 should vary at differnt speed */
- if (pdimm[0].registered_dimm == 1) {
- popts->rcw_override = 1;
- popts->rcw_1 = 0x000a5a00;
- if (ddr_freq <= 800)
- popts->rcw_2 = 0x00000000;
- else if (ddr_freq <= 1066)
- popts->rcw_2 = 0x00100000;
- else if (ddr_freq <= 1333)
- popts->rcw_2 = 0x00200000;
- else
- popts->rcw_2 = 0x00300000;
- }
}
phys_size_t initdram(int board_type)
OpenPOWER on IntegriCloud