mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 00:49:43 +00:00
drivers/ddr/fsl: Cleanup unused variable
Variable "row_density" is no longer used. Drop it from DIMM structure. Signed-off-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
944537c56e
commit
140ad2d899
6 changed files with 0 additions and 6 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue