Lines Matching refs:popts
263 struct memctl_opt *popts, in cal_odt() argument
303 popts->cs_odt[i].odt_rd_cfg = pdodt[i].odt_rd_cfg; in cal_odt()
305 popts->cs_odt[i].odt_rd_cfg); in cal_odt()
306 popts->cs_odt[i].odt_wr_cfg = pdodt[i].odt_wr_cfg; in cal_odt()
308 popts->cs_odt[i].odt_wr_cfg); in cal_odt()
309 popts->cs_odt[i].odt_rtt_norm = pdodt[i].odt_rtt_norm; in cal_odt()
311 popts->cs_odt[i].odt_rtt_norm); in cal_odt()
312 popts->cs_odt[i].odt_rtt_wr = pdodt[i].odt_rtt_wr; in cal_odt()
314 popts->cs_odt[i].odt_rtt_wr); in cal_odt()
315 popts->cs_odt[i].auto_precharge = 0; in cal_odt()
317 popts->cs_odt[i].auto_precharge); in cal_odt()
324 struct memctl_opt *popts, in cal_opts() argument
330 popts->rdimm = pdimm->rdimm; in cal_opts()
331 popts->mirrored_dimm = pdimm->mirrored_dimm; in cal_opts()
333 popts->ecc_mode = pdimm->edc_config == 0x02 ? 1 : 0; in cal_opts()
335 popts->ctlr_init_ecc = popts->ecc_mode; in cal_opts()
336 debug("ctlr_init_ecc %d\n", popts->ctlr_init_ecc); in cal_opts()
337 popts->self_refresh_in_sleep = 1; in cal_opts()
338 popts->dynamic_power = 0; in cal_opts()
345 popts->data_bus_dimm = DDR_DBUS_64; in cal_opts()
346 popts->otf_burst_chop_en = 1; in cal_opts()
348 popts->data_bus_dimm = DDR_DBUS_32; in cal_opts()
349 popts->otf_burst_chop_en = 0; in cal_opts()
351 popts->data_bus_dimm = DDR_DBUS_16; in cal_opts()
352 popts->otf_burst_chop_en = 0; in cal_opts()
357 popts->data_bus_used = popts->data_bus_dimm; in cal_opts()
358 popts->x4_en = (pdimm->device_width == 4) ? 1 : 0; in cal_opts()
359 debug("x4_en %d\n", popts->x4_en); in cal_opts()
362 if (popts->rdimm != 0) { in cal_opts()
363 popts->ap_en = 1; /* 0 = disable, 1 = enable */ in cal_opts()
365 popts->ap_en = 0; /* disabled for DDR4 UDIMM/discrete default */ in cal_opts()
369 popts->ap_en = 0; in cal_opts()
372 debug("ap_en %d\n", popts->ap_en); in cal_opts()
375 popts->bstopre = picos_to_mclk(clk, pdimm->refresh_rate_ps) >> 2; in cal_opts()
376 popts->tfaw_ps = pdimm->tfaw_ps; in cal_opts()
382 struct memctl_opt *popts, in cal_intlv() argument
388 popts->ctlr_intlv = 1; in cal_intlv()
389 popts->ctlr_intlv_mode = DDR_256B_INTLV; in cal_intlv()
392 debug("ctlr_intlv %d\n", popts->ctlr_intlv); in cal_intlv()
393 debug("ctlr_intlv_mode %d\n", popts->ctlr_intlv_mode); in cal_intlv()
395 popts->ba_intlv = auto_bank_intlv(conf->cs_in_use, pdimm); in cal_intlv()
396 debug("ba_intlv 0x%x\n", popts->ba_intlv); in cal_intlv()
399 static int update_burst_length(struct memctl_opt *popts) in update_burst_length() argument
402 if ((popts->data_bus_used == DDR_DBUS_32) || in update_burst_length()
403 (popts->data_bus_used == DDR_DBUS_16)) { in update_burst_length()
405 popts->otf_burst_chop_en = 0; in update_burst_length()
406 popts->burst_length = DDR_BL8; in update_burst_length()
407 } else if (popts->otf_burst_chop_en != 0) { /* on-the-fly burst chop */ in update_burst_length()
408 popts->burst_length = DDR_OTF; /* on-the-fly BC4 and BL8 */ in update_burst_length()
410 popts->burst_length = DDR_BL8; in update_burst_length()
412 debug("data_bus_used %d\n", popts->data_bus_used); in update_burst_length()
413 debug("otf_burst_chop_en %d\n", popts->otf_burst_chop_en); in update_burst_length()
414 debug("burst_length 0x%x\n", popts->burst_length); in update_burst_length()
422 if (popts->data_bus_dimm > popts->data_bus_used) { in update_burst_length()
426 popts->dbw_cap_shift = popts->data_bus_used - popts->data_bus_dimm; in update_burst_length()
427 debug("dbw_cap_shift %d\n", popts->dbw_cap_shift); in update_burst_length()
438 struct memctl_opt *popts = &priv->opt; in cal_board_params() local
464 popts->clk_adj = prt->clk_adj; in cal_board_params()
465 popts->wrlvl_start = prt->wrlvl; in cal_board_params()
466 popts->wrlvl_ctl_2 = (prt->wrlvl * 0x01010101 + dimm[i].add1) & in cal_board_params()
468 popts->wrlvl_ctl_3 = (prt->wrlvl * 0x01010101 + dimm[i].add2) & in cal_board_params()