Home
last modified time | relevance | path

Searched refs:pdimm (Results 1 – 25 of 58) sorted by relevance

123

/external/u-boot/drivers/ddr/fsl/
Dddr4_dimm_params.c120 (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 …]
Dddr3_dimm_params.c85 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 …]
Dddr2_dimm_params.c205 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 …]
Dddr1_dimm_params.c222 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 …]
Doptions.c27 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
721 static inline unsigned int auto_bank_intlv(dimm_params_t *pdimm) in auto_bank_intlv() argument
724 if (pdimm[0].n_ranks == 4) in auto_bank_intlv()
726 else if (pdimm[0].n_ranks == 2) in auto_bank_intlv()
730 if (pdimm[0].n_ranks == 4) in auto_bank_intlv()
733 if (pdimm[0].n_ranks == 2) { in auto_bank_intlv()
734 if (pdimm[1].n_ranks == 2) in auto_bank_intlv()
745 dimm_params_t *pdimm, in populate_memctl_options() argument
771 switch (pdimm[0].n_ranks) { in populate_memctl_options()
783 switch (pdimm[0].n_ranks) { in populate_memctl_options()
[all …]
/external/u-boot/board/freescale/ls2080aqds/
Dddr.c16 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/
Dddr.c16 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/
Dddr.c16 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/
Dddr.c59 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument
66 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params()
67 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params()
68 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
133 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
150 if (pdimm->primary_sdram_width == 64) in fsl_ddr_board_options()
152 else if (pdimm->primary_sdram_width == 32) in fsl_ddr_board_options()
/external/u-boot/board/freescale/p1023rdb/
Dddr.c49 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/t102xrdb/
Dddr.c50 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/ls1021aqds/
Dddr.c16 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/c29xpcie/
Dddr.c48 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/
Dddr.c47 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/ls1043ardb/
Dddr.c19 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()
157 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument
165 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params()
166 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params()
167 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
/external/u-boot/board/freescale/p1_p2_rdb_pc/
Dddr.c191 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument
198 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params()
199 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params()
200 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
265 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
281 if (pdimm->primary_sdram_width == 64) in fsl_ddr_board_options()
283 else if (pdimm->primary_sdram_width == 32) in fsl_ddr_board_options()
/external/u-boot/board/freescale/bsc9131rdb/
Dddr.c131 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument
138 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params()
139 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params()
140 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
147 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
/external/u-boot/board/freescale/bsc9132qds/
Dddr.c153 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument
160 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params()
161 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params()
162 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
169 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
/external/u-boot/board/freescale/p1010rdb/
Dddr.c191 int fsl_ddr_get_dimm_params(dimm_params_t *pdimm, in fsl_ddr_get_dimm_params() argument
198 memcpy(pdimm, &ddr_raw_timing, sizeof(dimm_params_t)); in fsl_ddr_get_dimm_params()
199 memset(pdimm->mpart, 0, sizeof(pdimm->mpart)); in fsl_ddr_get_dimm_params()
200 memcpy(pdimm->mpart, dimm_model, sizeof(dimm_model) - 1); in fsl_ddr_get_dimm_params()
207 dimm_params_t *pdimm, in fsl_ddr_board_options() argument
/external/u-boot/board/freescale/t4rdb/
Dddr.c18 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/t208xrdb/
Dddr.c18 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/t208xqds/
Dddr.c18 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/t104xrdb/
Dddr.c19 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/
Dddr.c18 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/t1040qds/
Dddr.c19 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()

123