]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/ddr/fsl: Cleanup unused variable
authorYork Sun <york.sun@nxp.com>
Mon, 29 Jan 2018 17:44:38 +0000 (09:44 -0800)
committerYork Sun <york.sun@nxp.com>
Tue, 30 Jan 2018 17:14:07 +0000 (09:14 -0800)
Variable "row_density" is no longer used. Drop it from DIMM structure.

Signed-off-by: York Sun <york.sun@nxp.com>
drivers/ddr/fsl/ddr1_dimm_params.c
drivers/ddr/fsl/ddr2_dimm_params.c
drivers/ddr/fsl/ddr3_dimm_params.c
drivers/ddr/fsl/ddr4_dimm_params.c
drivers/ddr/fsl/interactive.c
include/fsl_ddr_dimm_params.h

index 369b325ff2b7714db5c90a2836aa2834660b4f41..c02725e611493c57317500b86718fbfa70f975b3 100644 (file)
@@ -270,7 +270,6 @@ unsigned int ddr_compute_dimm_parameters(const unsigned int ctrl_num,
        pdimm->n_banks_per_sdram_device = spd->nbanks;
        pdimm->edc_config = spd->config;
        pdimm->burst_lengths_bitmask = spd->burstl;
-       pdimm->row_density = spd->bank_dens;
 
        /*
         * Calculate the Maximum Data Rate based on the Minimum Cycle time.
index af752cc96c6d366050fd07a6c16e4eb1ab8e2f61..062c849075356afd15de7fb223c5927862efe07e 100644 (file)
@@ -269,7 +269,6 @@ unsigned int ddr_compute_dimm_parameters(const unsigned int ctrl_num,
        pdimm->n_banks_per_sdram_device = spd->nbanks;
        pdimm->edc_config = spd->config;
        pdimm->burst_lengths_bitmask = spd->burstl;
-       pdimm->row_density = spd->rank_dens;
 
        /*
         * Calculate the Maximum Data Rate based on the Minimum Cycle time.
index 9944dbbf032404cbda552f4e64de4af13b82a356..8a0587a64624f54f88825d15677bdae415dee6c9 100644 (file)
@@ -186,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,
index 5c8fc8804d476ba691c9d0a2420682698f21a080..4867fbc932bbf8b9f078e681bb027c1fa6578b18 100644 (file)
@@ -264,7 +264,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 MTB in the SPD spec is 125ps,
index 78ca03bcb25622f8b893dcd3fc01fb336a0163cc..1fa35c3c427c8c52e4f21cd5ad97123aa5591dfc 100644 (file)
@@ -241,7 +241,6 @@ static void fsl_ddr_dimm_parameters_edit(fsl_ddr_info_t *pinfo,
                DIMM_PARM(n_banks_per_sdram_device),
 #endif
                DIMM_PARM(burst_lengths_bitmask),
-               DIMM_PARM(row_density),
 
                DIMM_PARM(tckmin_x_ps),
                DIMM_PARM(tckmin_x_minus_1_ps),
index 1f78ea2d86b787211237556ec446e2b417eb61f2..1632a8fd3665b384cdaecf137de4a319d306bbcf 100644 (file)
@@ -40,7 +40,6 @@ typedef struct dimm_params_s {
        unsigned int n_banks_per_sdram_device;
 #endif
        unsigned int burst_lengths_bitmask;     /* BL=4 bit 2, BL=8 = bit 3 */
-       unsigned int row_density;
 
        /* used in computing base address of DIMMs */
        unsigned long long base_address;