/external/u-boot/drivers/ddr/fsl/ |
D | ddr4_dimm_params.c | 120 (mtb * pdimm->mtb_ps + (ftb * pdimm->ftb_10th_ps) / 10) 130 dimm_params_t *pdimm, in ddr_compute_dimm_parameters() argument 150 memset(pdimm, 0, sizeof(dimm_params_t)); in ddr_compute_dimm_parameters() 165 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in ddr_compute_dimm_parameters() 167 memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1); in ddr_compute_dimm_parameters() 170 pdimm->n_ranks = ((spd->organization >> 3) & 0x7) + 1; in ddr_compute_dimm_parameters() 171 pdimm->rank_density = compute_ranksize(spd); in ddr_compute_dimm_parameters() 172 pdimm->capacity = pdimm->n_ranks * pdimm->rank_density; in ddr_compute_dimm_parameters() 173 pdimm->die_density = spd->density_banks & 0xf; in ddr_compute_dimm_parameters() 174 pdimm->primary_sdram_width = 1 << (3 + (spd->bus_width & 0x7)); in ddr_compute_dimm_parameters() [all …]
|
D | ddr3_dimm_params.c | 85 dimm_params_t *pdimm, in ddr_compute_dimm_parameters() argument 99 memset(pdimm, 0, sizeof(dimm_params_t)); in ddr_compute_dimm_parameters() 114 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in ddr_compute_dimm_parameters() 116 memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1); in ddr_compute_dimm_parameters() 119 pdimm->n_ranks = ((spd->organization >> 3) & 0x7) + 1; in ddr_compute_dimm_parameters() 120 pdimm->rank_density = compute_ranksize(spd); in ddr_compute_dimm_parameters() 121 pdimm->capacity = pdimm->n_ranks * pdimm->rank_density; in ddr_compute_dimm_parameters() 122 pdimm->primary_sdram_width = 1 << (3 + (spd->bus_width & 0x7)); in ddr_compute_dimm_parameters() 124 pdimm->ec_sdram_width = 8; in ddr_compute_dimm_parameters() 126 pdimm->ec_sdram_width = 0; in ddr_compute_dimm_parameters() [all …]
|
D | ddr2_dimm_params.c | 205 dimm_params_t *pdimm, in ddr_compute_dimm_parameters() argument 216 memset(pdimm, 0, sizeof(dimm_params_t)); in ddr_compute_dimm_parameters() 231 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in ddr_compute_dimm_parameters() 232 memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1); in ddr_compute_dimm_parameters() 235 pdimm->n_ranks = (spd->mod_ranks & 0x7) + 1; in ddr_compute_dimm_parameters() 236 pdimm->rank_density = compute_ranksize(spd->mem_type, spd->rank_dens); in ddr_compute_dimm_parameters() 237 pdimm->capacity = pdimm->n_ranks * pdimm->rank_density; in ddr_compute_dimm_parameters() 238 pdimm->data_width = spd->dataw; in ddr_compute_dimm_parameters() 239 pdimm->primary_sdram_width = spd->primw; in ddr_compute_dimm_parameters() 240 pdimm->ec_sdram_width = spd->ecw; in ddr_compute_dimm_parameters() [all …]
|
D | ddr1_dimm_params.c | 222 dimm_params_t *pdimm, in ddr_compute_dimm_parameters() argument 233 memset(pdimm, 0, sizeof(dimm_params_t)); in ddr_compute_dimm_parameters() 248 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in ddr_compute_dimm_parameters() 249 memcpy(pdimm->mpart, spd->mpart, sizeof(pdimm->mpart) - 1); in ddr_compute_dimm_parameters() 252 pdimm->n_ranks = spd->nrows; in ddr_compute_dimm_parameters() 253 pdimm->rank_density = compute_ranksize(spd->mem_type, spd->bank_dens); in ddr_compute_dimm_parameters() 254 pdimm->capacity = pdimm->n_ranks * pdimm->rank_density; in ddr_compute_dimm_parameters() 255 pdimm->data_width = spd->dataw_lsb; in ddr_compute_dimm_parameters() 256 pdimm->primary_sdram_width = spd->primw; in ddr_compute_dimm_parameters() 257 pdimm->ec_sdram_width = spd->ecw; in ddr_compute_dimm_parameters() [all …]
|
D | options.c | 26 dimm_params_t *pdimm, 717 static inline unsigned int auto_bank_intlv(dimm_params_t *pdimm) in auto_bank_intlv() argument 720 if (pdimm[0].n_ranks == 4) in auto_bank_intlv() 722 else if (pdimm[0].n_ranks == 2) in auto_bank_intlv() 726 if (pdimm[0].n_ranks == 4) in auto_bank_intlv() 729 if (pdimm[0].n_ranks == 2) { in auto_bank_intlv() 730 if (pdimm[1].n_ranks == 2) in auto_bank_intlv() 741 dimm_params_t *pdimm, in populate_memctl_options() argument 768 switch (pdimm[0].n_ranks) { in populate_memctl_options() 780 switch (pdimm[0].n_ranks) { in populate_memctl_options() [all …]
|
/external/u-boot/board/freescale/ls2080aqds/ |
D | ddr.c | 16 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 32 if (pdimm[slot].n_ranks) in fsl_ddr_board_options() 54 if (pbsp->n_ranks == pdimm[slot].n_ranks && in fsl_ddr_board_options() 55 (pdimm[slot].rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options() 100 dq_mapping_0 = pdimm[slot].dq_mapping[0]; in fsl_ddr_board_options() 101 dq_mapping_2 = pdimm[slot].dq_mapping[2]; in fsl_ddr_board_options() 102 dq_mapping_3 = pdimm[slot].dq_mapping[3]; in fsl_ddr_board_options() 103 pdimm[slot].dq_mapping[0] = pdimm[slot].dq_mapping[8]; in fsl_ddr_board_options() 104 pdimm[slot].dq_mapping[1] = pdimm[slot].dq_mapping[9]; in fsl_ddr_board_options() 105 pdimm[slot].dq_mapping[2] = pdimm[slot].dq_mapping[6]; in fsl_ddr_board_options() [all …]
|
/external/u-boot/board/freescale/ls2080ardb/ |
D | ddr.c | 16 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 32 if (pdimm[slot].n_ranks) in fsl_ddr_board_options() 54 if (pbsp->n_ranks == pdimm[slot].n_ranks && in fsl_ddr_board_options() 55 (pdimm[slot].rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options() 102 dq_mapping_0 = pdimm[slot].dq_mapping[0]; in fsl_ddr_board_options() 103 dq_mapping_2 = pdimm[slot].dq_mapping[2]; in fsl_ddr_board_options() 104 dq_mapping_3 = pdimm[slot].dq_mapping[3]; in fsl_ddr_board_options() 105 pdimm[slot].dq_mapping[0] = pdimm[slot].dq_mapping[8]; in fsl_ddr_board_options() 106 pdimm[slot].dq_mapping[1] = pdimm[slot].dq_mapping[9]; in fsl_ddr_board_options() 107 pdimm[slot].dq_mapping[2] = pdimm[slot].dq_mapping[6]; in fsl_ddr_board_options() [all …]
|
/external/u-boot/board/freescale/ls2080a/ |
D | ddr.c | 16 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 26 if (!pdimm->n_ranks) in fsl_ddr_board_options() 44 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 45 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options() 145 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 153 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 154 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 155 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
|
/external/u-boot/board/Arcturus/ucp1020/ |
D | ddr.c | 58 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 65 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 66 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 67 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 132 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 149 if (pdimm->primary_sdram_width == 64) in fsl_ddr_board_options() 151 else if (pdimm->primary_sdram_width == 32) in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/t102xrdb/ |
D | ddr.c | 50 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 61 if (!pdimm->n_ranks) in fsl_ddr_board_options() 71 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 72 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options() 201 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 209 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 210 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 211 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
|
/external/u-boot/board/freescale/p1023rdb/ |
D | ddr.c | 49 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 56 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 57 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 58 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 65 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
|
/external/u-boot/board/freescale/ls1021aqds/ |
D | ddr.c | 16 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 26 if (!pdimm->n_ranks) in fsl_ddr_board_options() 36 if (pbsp->n_ranks == pdimm->n_ranks) { in fsl_ddr_board_options() 139 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 147 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 148 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 149 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
|
/external/u-boot/board/freescale/ls1043ardb/ |
D | ddr.c | 18 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 28 if (!pdimm->n_ranks) in fsl_ddr_board_options() 38 if (pbsp->n_ranks == pdimm->n_ranks) { in fsl_ddr_board_options() 156 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 164 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 165 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 166 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
|
/external/u-boot/board/freescale/c29xpcie/ |
D | ddr.c | 48 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 55 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 56 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 57 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 64 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
|
/external/u-boot/board/freescale/b4860qds/ |
D | ddr.c | 47 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 54 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 55 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 56 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 99 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 109 if (!pdimm->n_ranks) in fsl_ddr_board_options() 120 if (pbsp->n_ranks == pdimm->n_ranks) { in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/p1_p2_rdb_pc/ |
D | ddr.c | 190 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 197 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 198 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 199 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 264 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 280 if (pdimm->primary_sdram_width == 64) in fsl_ddr_board_options() 282 else if (pdimm->primary_sdram_width == 32) in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/bsc9131rdb/ |
D | ddr.c | 130 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 137 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 138 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 139 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 146 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
|
/external/u-boot/board/freescale/bsc9132qds/ |
D | ddr.c | 152 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 159 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 160 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 161 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 168 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
|
/external/u-boot/board/freescale/p1010rdb/ |
D | ddr.c | 190 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument 197 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params() 198 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params() 199 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params() 206 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
|
/external/u-boot/board/freescale/t208xrdb/ |
D | ddr.c | 18 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 28 if (!pdimm->n_ranks) in fsl_ddr_board_options() 38 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 39 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/t4rdb/ |
D | ddr.c | 18 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 28 if (!pdimm->n_ranks) in fsl_ddr_board_options() 46 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 47 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/t208xqds/ |
D | ddr.c | 18 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 28 if (!pdimm->n_ranks) in fsl_ddr_board_options() 45 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 46 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/t1040qds/ |
D | ddr.c | 19 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 29 if (!pdimm->n_ranks) in fsl_ddr_board_options() 39 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 40 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/t4qds/ |
D | ddr.c | 18 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 28 if (!pdimm->n_ranks) in fsl_ddr_board_options() 46 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 47 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options()
|
/external/u-boot/board/freescale/t104xrdb/ |
D | ddr.c | 19 dimm_params_t *pdimm, in fsl_ddr_board_options() argument 29 if (!pdimm->n_ranks) in fsl_ddr_board_options() 39 if (pbsp->n_ranks == pdimm->n_ranks && in fsl_ddr_board_options() 40 (pdimm->rank_density >> 30) >= pbsp->rank_gb) { in fsl_ddr_board_options()
|