Lines Matching refs:pdimm
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()
784 if (pdimm[1].n_ranks) in populate_memctl_options()
789 switch (pdimm[1].n_ranks) { in populate_memctl_options()
802 switch (pdimm[1].n_ranks) { in populate_memctl_options()
815 switch (pdimm[1].n_ranks) { in populate_memctl_options()
921 if (pdimm[0].n_ranks != 0) { in populate_memctl_options()
922 if ((pdimm[0].data_width >= 64) && \ in populate_memctl_options()
923 (pdimm[0].data_width <= 72)) in populate_memctl_options()
925 else if ((pdimm[0].data_width >= 32) && \ in populate_memctl_options()
926 (pdimm[0].data_width <= 40)) in populate_memctl_options()
930 pdimm[0].data_width); in populate_memctl_options()
934 if (pdimm[0].n_ranks != 0) { in populate_memctl_options()
935 if (pdimm[0].primary_sdram_width == 64) in populate_memctl_options()
937 else if (pdimm[0].primary_sdram_width == 32) in populate_memctl_options()
939 else if (pdimm[0].primary_sdram_width == 16) in populate_memctl_options()
943 pdimm[0].primary_sdram_width); in populate_memctl_options()
948 popts->x4_en = (pdimm[0].device_width == 4) ? 1 : 0; in populate_memctl_options()
972 if (pdimm[i].n_ranks) { in populate_memctl_options()
973 popts->mirrored_dimm = pdimm[i].mirrored_dimm; in populate_memctl_options()
1056 popts->tfaw_window_four_activates_ps = pdimm[0].tfaw_ps; in populate_memctl_options()
1093 if (pdimm[0].n_ranks == 0) { in populate_memctl_options()
1209 popts->ba_intlv_ctl = auto_bank_intlv(pdimm); in populate_memctl_options()
1215 if (pdimm[0].n_ranks < 4) { in populate_memctl_options()
1223 if (pdimm[0].n_ranks == 4) in populate_memctl_options()
1226 if ((pdimm[0].n_ranks < 2) && (pdimm[1].n_ranks < 2)) { in populate_memctl_options()
1232 if (pdimm[0].capacity != pdimm[1].capacity) { in populate_memctl_options()
1241 if (pdimm[0].n_ranks < 2) { in populate_memctl_options()
1250 if (pdimm[0].n_ranks < 4) { in populate_memctl_options()
1256 if (pdimm[1].n_ranks < 2) { in populate_memctl_options()
1265 if (pdimm[0].n_ranks < 4) { in populate_memctl_options()
1272 if ((pdimm[0].n_ranks < 2) || (pdimm[1].n_ranks < 2)) { in populate_memctl_options()
1294 if (pdimm[0].n_ranks == 4) in populate_memctl_options()
1297 popts->package_3ds = pdimm->package_3ds; in populate_memctl_options()
1315 fsl_ddr_board_options(popts, pdimm, ctrl_num); in populate_memctl_options()