WS cleanup: remove SPACE(s) followed by TAB
[platform/kernel/u-boot.git] / drivers / ddr / fsl / ddr3_dimm_params.c
index 6917715..1f8db90 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright 2008-2012 Freescale Semiconductor, Inc.
  *     Dave Liu <daveliu@freescale.com>
@@ -5,14 +6,11 @@
  * calculate the organization and timing parameter
  * from ddr3 spd, please refer to the spec
  * JEDEC standard No.21-C 4_01_02_11R18.pdf
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * Version 2 as published by the Free Software Foundation.
  */
 
 #include <common.h>
 #include <fsl_ddr_sdram.h>
+#include <log.h>
 
 #include <fsl_ddr.h>
 
  *     0110            16Gb            2GB
  *
  * SPD byte8 - module memory bus width
- *     bit[2:0]        primary bus width
+ *     bit[2:0]        primary bus width
  *     000             8bits
- *     001             16bits
- *     010             32bits
- *     011             64bits
+ *     001             16bits
+ *     010             32bits
+ *     011             64bits
  *
  * SPD byte7 - module organiztion
- *     bit[2:0]        sdram device width
- *     000             4bits
- *     001             8bits
- *     010             16bits
- *     011             32bits
+ *     bit[2:0]        sdram device width
+ *     000             4bits
+ *     001             8bits
+ *     010             16bits
+ *     011             32bits
  *
  */
 static unsigned long long
@@ -188,7 +186,6 @@ unsigned int ddr_compute_dimm_parameters(const unsigned int ctrl_num,
         * BL8 -bit3, BC4 -bit2
         */
        pdimm->burst_lengths_bitmask = 0x0c;
-       pdimm->row_density = __ilog2(pdimm->rank_density);
 
        /* MTB - medium timebase
         * The unit in the SPD spec is ns,