Home
last modified time | relevance | path

Searched refs:popts (Results 1 – 15 of 15) sorted by relevance

/trusted-firmware-a-3.6.0-3.5.0/drivers/nxp/ddr/phy-gen1/
Dphy.c18 const struct memctl_opt *popts) in cal_ddr_sdram_clk_cntl() argument
20 const unsigned int clk_adj = popts->clk_adj; in cal_ddr_sdram_clk_cntl()
29 const struct memctl_opt *popts) in cal_ddr_cdr() argument
31 regs->cdr[0] = popts->ddr_cdr1; in cal_ddr_cdr()
32 regs->cdr[1] = popts->ddr_cdr2; in cal_ddr_cdr()
38 const struct memctl_opt *popts) in cal_ddr_wrlvl_cntl() argument
45 const unsigned int wrlvl_smpl = popts->wrlvl_override ? in cal_ddr_wrlvl_cntl()
46 popts->wrlvl_sample : U(0xf); in cal_ddr_wrlvl_cntl()
47 const unsigned int wrlvl_start = popts->wrlvl_start; in cal_ddr_wrlvl_cntl()
56 regs->wrlvl_cntl[1] = popts->wrlvl_ctl_2; in cal_ddr_wrlvl_cntl()
[all …]
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-lx2160a/lx2160ardb/
Dddr_init.c126 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
129 popts->vref_dimm = U(0x24); /* range 1, 83.4% */ in ddr_board_options()
130 popts->rtt_override = 0; in ddr_board_options()
131 popts->rtt_park = U(240); in ddr_board_options()
132 popts->otf_burst_chop_en = 0; in ddr_board_options()
133 popts->burst_length = U(DDR_BL8); in ddr_board_options()
134 popts->trwt_override = U(1); in ddr_board_options()
135 popts->bstopre = U(0); /* auto precharge */ in ddr_board_options()
136 popts->addr_hash = 1; in ddr_board_options()
142 popts->trwt = U(0xf); in ddr_board_options()
[all …]
/trusted-firmware-a-3.6.0-3.5.0/drivers/nxp/ddr/nxp-ddr/
Dddr.c263 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()
[all …]
Dregs.c32 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()
[all …]
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-lx2160a/lx2162aqds/
Dddr_init.c256 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
259 popts->vref_dimm = U(0x19); /* range 1, 83.4% */ in ddr_board_options()
260 popts->rtt_override = 1U; in ddr_board_options()
261 popts->rtt_override_value = 0x5U; /* RTT being used as 60 ohm */ in ddr_board_options()
262 popts->rtt_park = 120U; in ddr_board_options()
263 popts->otf_burst_chop_en = 0; in ddr_board_options()
264 popts->burst_length = DDR_BL8; in ddr_board_options()
265 popts->trwt_override = 1U; in ddr_board_options()
266 popts->bstopre = 0U; /* auto precharge */ in ddr_board_options()
267 popts->addr_hash = 1; in ddr_board_options()
[all …]
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1046a/ls1046aqds/
Dddr_init.c31 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
33 if (popts->rdimm) { in ddr_board_options()
43 popts->wrlvl_override = U(1); in ddr_board_options()
44 popts->wrlvl_sample = U(0x0); /* 32 clocks */ in ddr_board_options()
45 popts->ddr_cdr1 = DDR_CDR1_DHC_EN | in ddr_board_options()
47 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_80ohm) | in ddr_board_options()
52 popts->cpo_sample = U(0x70); in ddr_board_options()
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-lx2160a/lx2160aqds/
Dddr_init.c257 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
260 popts->vref_dimm = U(0x24); /* range 1, 83.4% */ in ddr_board_options()
261 popts->rtt_override = 0; in ddr_board_options()
262 popts->rtt_park = U(240); in ddr_board_options()
263 popts->otf_burst_chop_en = 0; in ddr_board_options()
264 popts->burst_length = U(DDR_BL8); in ddr_board_options()
265 popts->trwt_override = U(1); in ddr_board_options()
266 popts->bstopre = U(0); /* auto precharge */ in ddr_board_options()
267 popts->addr_hash = 1; in ddr_board_options()
273 popts->trwt = U(0xf); in ddr_board_options()
[all …]
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1088a/ls1088aqds/
Dddr_init.c34 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
36 if (popts->rdimm != 0) { in ddr_board_options()
46 popts->addr_hash = 1; in ddr_board_options()
47 popts->cpo_sample = U(0x7b); in ddr_board_options()
48 popts->ddr_cdr1 = DDR_CDR1_DHC_EN | in ddr_board_options()
50 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_60ohm) | in ddr_board_options()
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1088a/ls1088ardb/
Dddr_init.c35 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
37 if (popts->rdimm != 0) { in ddr_board_options()
47 popts->addr_hash = 1; in ddr_board_options()
48 popts->cpo_sample = U(0x7b); in ddr_board_options()
49 popts->ddr_cdr1 = DDR_CDR1_DHC_EN | in ddr_board_options()
51 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_60ohm) | in ddr_board_options()
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1046a/ls1046afrwy/
Dddr_init.c74 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
81 popts->bstopre = 0; in ddr_board_options()
82 popts->half_strength_drive_en = 1; in ddr_board_options()
83 popts->cpo_sample = U(0x46); in ddr_board_options()
84 popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_50ohm); in ddr_board_options()
85 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_50ohm) | in ddr_board_options()
87 popts->output_driver_impedance = 1; in ddr_board_options()
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1028a/ls1028ardb/
Dddr_init.c76 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
83 popts->bstopre = U(0x40); /* precharge value */ in ddr_board_options()
84 popts->half_strength_drive_en = 1; in ddr_board_options()
85 popts->cpo_sample = U(0x46); in ddr_board_options()
86 popts->ddr_cdr1 = DDR_CDR1_DHC_EN | in ddr_board_options()
88 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_80ohm) | in ddr_board_options()
91 popts->addr_hash = 1; /* address hashing */ in ddr_board_options()
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1046a/ls1046ardb/
Dddr_init.c207 struct memctl_opt *popts = &priv->opt; in ddr_board_options() local
209 if (popts->rdimm) { in ddr_board_options()
219 popts->wrlvl_override = U(1); in ddr_board_options()
220 popts->wrlvl_sample = U(0x0); /* 32 clocks */ in ddr_board_options()
221 popts->cpo_sample = U(0x61); in ddr_board_options()
222 popts->ddr_cdr1 = DDR_CDR1_DHC_EN | in ddr_board_options()
224 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_80ohm) | in ddr_board_options()
227 popts->bstopre = U(0); in ddr_board_options()
/trusted-firmware-a-3.6.0-3.5.0/plat/nxp/soc-ls1043a/ls1043ardb/
Dddr_init.c73 struct memctl_opt *popts = &priv->opt;
79 popts->cpo_sample = U(0x46);
80 popts->ddr_cdr1 = DDR_CDR1_DHC_EN |
82 popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_80ohm) |
/trusted-firmware-a-3.6.0-3.5.0/include/drivers/nxp/ddr/
Dddr.h129 const struct memctl_opt *popts,
/trusted-firmware-a-3.6.0-3.5.0/drivers/nxp/ddr/phy-gen2/
Dphy.c2485 const struct memctl_opt *popts = &priv->opt; in compute_ddr_phy() local
2524 input.basic.train2d = popts->skip2d ? 0 : 1; in compute_ddr_phy()
2539 input.vref = popts->vref_phy; in compute_ddr_phy()
2576 input.adv.odtimpedance = popts->odt ? popts->odt : 60; in compute_ddr_phy()
2577 input.adv.tx_impedance = popts->phy_tx_impedance ? in compute_ddr_phy()
2578 popts->phy_tx_impedance : 28; in compute_ddr_phy()
2579 input.adv.atx_impedance = popts->phy_atx_impedance ? in compute_ddr_phy()
2580 popts->phy_atx_impedance : 30; in compute_ddr_phy()