Lines Matching refs:popts

32 			   const struct memctl_opt *popts,  in cal_csn_config()  argument
38 const unsigned int ap_n_en = popts->cs_odt[i].auto_precharge; in cal_csn_config()
39 const unsigned int odt_rd_cfg = popts->cs_odt[i].odt_rd_cfg; in cal_csn_config()
40 const unsigned int odt_wr_cfg = popts->cs_odt[i].odt_wr_cfg; in cal_csn_config()
48 if (popts->ctlr_intlv != 0) { in cal_csn_config()
49 switch (popts->ctlr_intlv_mode) { in cal_csn_config()
51 intlv_en = popts->ctlr_intlv; in cal_csn_config()
52 intlv_ctl = popts->ctlr_intlv_mode; in cal_csn_config()
91 const struct memctl_opt *popts, in cal_timing_cfg() argument
138 const int wr_data_delay = popts->wr_data_delay; in cal_timing_cfg()
141 const unsigned short four_act = ((popts->twot_en == 0) && in cal_timing_cfg()
142 (popts->threet_en == 0) && in cal_timing_cfg()
143 (popts->tfaw_ps % 2 == 0)) ? in cal_timing_cfg()
144 (picos_to_mclk(clk, popts->tfaw_ps) + 1) : in cal_timing_cfg()
145 picos_to_mclk(clk, popts->tfaw_ps); in cal_timing_cfg()
148 popts->tfaw_ps); in cal_timing_cfg()
162 (popts->otf_burst_chop_en ? 2U : 0U)) >> 4U; in cal_timing_cfg()
165 const unsigned int rrt_same_cs = popts->burst_length == DDR_BL8 ? 0U : 2U; in cal_timing_cfg()
166 const unsigned int wwt_same_cs = popts->burst_length == DDR_BL8 ? 0U : 2U; in cal_timing_cfg()
192 const int rrt_bg = popts->burst_length == DDR_BL8 ? in cal_timing_cfg()
194 const int wwt_bg = popts->burst_length == DDR_BL8 ? in cal_timing_cfg()
198 (popts->otf_burst_chop_en ? 2 : 0); in cal_timing_cfg()
216 if (popts->trwt_override != 0) { in cal_timing_cfg()
217 trwt_mclk = popts->trwt; in cal_timing_cfg()
218 if (popts->twrt != 0) { in cal_timing_cfg()
219 twrt_mclk = popts->twrt; in cal_timing_cfg()
221 if (popts->trrt != 0) { in cal_timing_cfg()
222 trrt_mclk = popts->trrt; in cal_timing_cfg()
224 if (popts->twwt != 0) { in cal_timing_cfg()
225 twwt_mclk = popts->twwt; in cal_timing_cfg()
244 if (popts->otf_burst_chop_en != 0) { in cal_timing_cfg()
266 if (popts->otf_burst_chop_en) { in cal_timing_cfg()
319 if (popts->ap_en != 0) { in cal_timing_cfg()
357 const struct memctl_opt *popts, in cal_ddr_sdram_rcw() argument
406 const struct memctl_opt *popts, in cal_ddr_sdram_cfg() argument
411 const unsigned int sren = popts->self_refresh_in_sleep; in cal_ddr_sdram_cfg()
412 const unsigned int ecc_en = popts->ecc_mode; in cal_ddr_sdram_cfg()
414 const unsigned int dyn_pwr = popts->dynamic_power; in cal_ddr_sdram_cfg()
415 const unsigned int dbw = popts->data_bus_used; in cal_ddr_sdram_cfg()
417 popts->burst_length == DDR_BL8) ? 1U : 0U; in cal_ddr_sdram_cfg()
419 const unsigned int threet_en = popts->threet_en; in cal_ddr_sdram_cfg()
421 0U : popts->twot_en; in cal_ddr_sdram_cfg()
422 const unsigned int ba_intlv = popts->ba_intlv; in cal_ddr_sdram_cfg()
425 const unsigned int hse = popts->half_strength_drive_en; in cal_ddr_sdram_cfg()
436 const unsigned int sr_ie = popts->self_refresh_irq_en; in cal_ddr_sdram_cfg()
439 const unsigned int x4_en = popts->x4_en; in cal_ddr_sdram_cfg()
440 const unsigned int obc_cfg = popts->otf_burst_chop_en; in cal_ddr_sdram_cfg()
441 const unsigned int ap_en = ip_rev == 0x50500U ? 0U : popts->ap_en; in cal_ddr_sdram_cfg()
442 const unsigned int d_init = popts->ctlr_init_ecc; in cal_ddr_sdram_cfg()
443 const unsigned int rcw_en = popts->rdimm; in cal_ddr_sdram_cfg()
444 const unsigned int md_en = popts->mirrored_dimm; in cal_ddr_sdram_cfg()
445 const unsigned int qd_en = popts->quad_rank_present; in cal_ddr_sdram_cfg()
447 const unsigned int rd_pre = popts->quad_rank_present; in cal_ddr_sdram_cfg()
471 if (popts->cs_odt[i].odt_rd_cfg != 0 || in cal_ddr_sdram_cfg()
472 popts->cs_odt[i].odt_wr_cfg != 0) { in cal_ddr_sdram_cfg()
496 (popts->rdimm ? 1 : 0); in cal_ddr_sdram_cfg()
511 const struct memctl_opt *popts, in cal_ddr_sdram_interval() argument
515 const unsigned int bstopre = popts->bstopre; in cal_ddr_sdram_interval()
525 const struct memctl_opt *popts, in cal_ddr_sdram_mode() argument
552 const unsigned int bl = popts->burst_length == DDR_BL8 ? 0 : in cal_ddr_sdram_mode()
553 (popts->burst_length == DDR_BC4 ? 2 : 1); in cal_ddr_sdram_mode()
586 if (popts->rtt_override != 0U) { in cal_ddr_sdram_mode()
587 rtt = popts->rtt_override_value; in cal_ddr_sdram_mode()
589 rtt = popts->cs_odt[0].odt_rtt_norm; in cal_ddr_sdram_mode()
599 if (popts->quad_rank_present != 0 || popts->output_driver_impedance != 0) { in cal_ddr_sdram_mode()
661 if (popts->rtt_override != 0) { in cal_ddr_sdram_mode()
662 rtt_wr = popts->rtt_wr_override_value; in cal_ddr_sdram_mode()
664 rtt_wr = popts->cs_odt[0].odt_rtt_wr; in cal_ddr_sdram_mode()
678 if (popts->vref_dimm != 0) { in cal_ddr_sdram_mode()
679 esdmode6 |= popts->vref_dimm & 0x7f; in cal_ddr_sdram_mode()
680 } else if ((popts->ddr_cdr2 & DDR_CDR2_VREF_RANGE_2) != 0) { in cal_ddr_sdram_mode()
688 rtt_park = (popts->rtt_park != 0) ? popts->rtt_park : 240; in cal_ddr_sdram_mode()
721 if (popts->rtt_override != 0) { in cal_ddr_sdram_mode()
722 rtt = popts->rtt_override_value; in cal_ddr_sdram_mode()
723 rtt_wr = popts->rtt_wr_override_value; in cal_ddr_sdram_mode()
725 rtt = popts->cs_odt[i].odt_rtt_norm; in cal_ddr_sdram_mode()
726 rtt_wr = popts->cs_odt[i].odt_rtt_wr; in cal_ddr_sdram_mode()
733 esdmode5 = (popts->x4_en) ? 0 : 0x400; /* data mask */ in cal_ddr_sdram_mode()
742 (popts->rdimm == 0)) { in cal_ddr_sdram_mode()
867 const struct memctl_opt *popts) in cal_ddr_sr_cntr() argument
869 const unsigned int sr_it = (popts->auto_self_refresh_en) ? in cal_ddr_sr_cntr()
870 popts->sr_it : 0; in cal_ddr_sr_cntr()
877 const struct memctl_opt *popts) in cal_ddr_eor() argument
879 if (popts->addr_hash != 0) { in cal_ddr_eor()
886 const struct memctl_opt *popts, in cal_ddr_csn_bnds() argument
905 cal_csn_config(i, regs, popts, pdimm); in cal_ddr_csn_bnds()
1323 const struct memctl_opt *popts, in compute_ddrc() argument
1343 cas_latency = (popts->caslat_override != 0) ? in compute_ddrc()
1344 popts->caslat_override_value : in compute_ddrc()
1371 additive_latency = (popts->addt_lat_override != 0) ? in compute_ddrc()
1372 popts->addt_lat_override_value : 0; in compute_ddrc()
1374 cal_ddr_csn_bnds(regs, popts, conf, pdimm); in compute_ddrc()
1375 cal_ddr_sdram_cfg(clk, regs, popts, pdimm, ip_rev); in compute_ddrc()
1376 cal_ddr_sdram_rcw(clk, regs, popts, pdimm); in compute_ddrc()
1377 cal_timing_cfg(clk, regs, popts, pdimm, conf, cas_latency, in compute_ddrc()
1385 cal_ddr_sdram_mode(clk, regs, popts, conf, pdimm, cas_latency, in compute_ddrc()
1387 cal_ddr_eor(regs, popts); in compute_ddrc()
1389 cal_ddr_sdram_interval(clk, regs, popts, pdimm); in compute_ddrc()
1391 cal_ddr_sr_cntr(regs, popts); in compute_ddrc()