summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc8xxx/ddr/options.c
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2013-06-25 18:37:47 (GMT)
committerYork Sun <yorksun@freescale.com>2013-08-09 19:41:39 (GMT)
commitb61e06156660579ea6e248abd2506ebdd85e7a14 (patch)
treeeba0f80c68d9843b7caaa5eb699f756e7f1403b6 /arch/powerpc/cpu/mpc8xxx/ddr/options.c
parent5ecf41cc3d69e797ec0ce77c052495d2846a4aaf (diff)
downloadu-boot-b61e06156660579ea6e248abd2506ebdd85e7a14.tar.xz
powerpc/mpc8xxx: Add x4 DDR device support
On selected platforms, x4 DDR devices can be supported. Using x4 devices may lower the performance, but generally they are available for higher density. Tested on MT36JSF2G72PZ-1G9E1 RDIMM. Signed-off-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx/ddr/options.c')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/ddr/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/options.c b/arch/powerpc/cpu/mpc8xxx/ddr/options.c
index 26369e0..30cdca4 100644
--- a/arch/powerpc/cpu/mpc8xxx/ddr/options.c
+++ b/arch/powerpc/cpu/mpc8xxx/ddr/options.c
@@ -700,6 +700,8 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,
}
#endif
+ popts->x4_en = (pdimm[0].device_width == 4) ? 1 : 0;
+
/* Choose burst length. */
#if defined(CONFIG_FSL_DDR3)
#if defined(CONFIG_E500MC)