]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc8xxx/ddr/options.c
powerpc: Use print_size() where appropriate
[u-boot] / arch / powerpc / cpu / mpc8xxx / ddr / options.c
index 2f13b8fd9316df048f8b1cc6ad8c067a1f6e25fe..30cdca497e0d00dda44f665fde42cf14923e8fa0 100644 (file)
@@ -1,10 +1,7 @@
 /*
  * Copyright 2008, 2010-2012 Freescale Semiconductor, Inc.
  *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -703,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)