/tf-a-ffa_el3_spmc/drivers/brcm/spi/ |
A D | iproc_qspi.c | 34 priv = &spi_cfg; in iproc_qspi_setup() 35 priv->spi_mode = mode; in iproc_qspi_setup() 44 priv->max_hz = max_hz; in iproc_qspi_setup() 60 priv->mspi_16bit = 0; in iproc_qspi_setup() 145 bcmspi_enable_bspi(priv); in iproc_qspi_release_bus() 166 priv->mspi_16bit = 0; in mspi_xfer() 168 priv->mspi_16bit = 1; in mspi_xfer() 178 if (priv->mspi_16bit) { in mspi_xfer() 252 if (priv->mspi_16bit) { in mspi_xfer() 277 struct bcmspi_priv *priv; in iproc_qspi_xfer() local [all …]
|
/tf-a-ffa_el3_spmc/drivers/brcm/ |
A D | ocotp.c | 132 set_start_bit(priv->base); in bcm_otpc_ecc() 138 reset_start_bit(priv->base); in bcm_otpc_ecc() 157 if (!priv->state) { in bcm_otpc_read() 167 set_start_bit(priv->base); in bcm_otpc_read() 180 reset_start_bit(priv->base); in bcm_otpc_read() 188 struct otpc_priv *priv; in bcm_otpc_init() local 190 priv = &otpc_info; in bcm_otpc_init() 191 priv->base = ocotp_cfg.base; in bcm_otpc_init() 192 priv->map = map; in bcm_otpc_init() 199 reset_start_bit(priv->base); in bcm_otpc_init() [all …]
|
/tf-a-ffa_el3_spmc/drivers/st/ddr/ |
A D | stm32mp1_ddr.c | 292 return (uintptr_t)priv->phy; in get_base_addr() 294 return (uintptr_t)priv->ctl; in get_base_addr() 494 (uintptr_t)&priv->ctl->mrctrl0, in stm32mp1_mode_register_write() 536 (uintptr_t)&priv->ctl->dbg1, in stm32mp1_ddr3_dll_off() 597 (uintptr_t)&priv->ctl->pwrctl, in stm32mp1_ddr3_dll_off() 616 (uintptr_t)&priv->ctl->mstr, in stm32mp1_ddr3_dll_off() 668 (uintptr_t)&priv->ctl->dbg1, in stm32mp1_ddr3_dll_off() 786 (uintptr_t)&priv->ctl->mstr, in stm32mp1_ddr_init() 798 (uintptr_t)&priv->ctl->init0, in stm32mp1_ddr_init() 823 (uintptr_t)&priv->phy->mr1, in stm32mp1_ddr_init() [all …]
|
A D | stm32mp1_ram.c | 168 struct ddr_info *priv = &ddr_priv_data; in stm32mp1_ddr_setup() local 244 stm32mp1_ddr_init(priv, &config); in stm32mp1_ddr_setup() 249 priv->info.size = config.info.size; in stm32mp1_ddr_setup() 252 (uint32_t)priv->info.base, (uint32_t)priv->info.size); in stm32mp1_ddr_setup() 288 struct ddr_info *priv = &ddr_priv_data; in stm32mp1_ddr_probe() local 292 priv->ctl = (struct stm32mp1_ddrctl *)stm32mp_ddrctrl_base(); in stm32mp1_ddr_probe() 293 priv->phy = (struct stm32mp1_ddrphy *)stm32mp_ddrphyc_base(); in stm32mp1_ddr_probe() 294 priv->pwr = stm32mp_pwr_base(); in stm32mp1_ddr_probe() 295 priv->rcc = stm32mp_rcc_base(); in stm32mp1_ddr_probe() 297 priv->info.base = STM32MP_DDR_BASE; in stm32mp1_ddr_probe() [all …]
|
/tf-a-ffa_el3_spmc/drivers/nxp/ddr/nxp-ddr/ |
A D | ddr.c | 478 &priv->opt, in synthesize_ctlr() 479 &priv->conf, in synthesize_ctlr() 480 &priv->dimm, in synthesize_ctlr() 487 &priv->opt, in synthesize_ctlr() 497 cal_intlv(priv->num_ctlrs, &priv->opt, &priv->conf, &priv->dimm); in synthesize_ctlr() 805 &priv->opt, in cal_ddrc_regs() 806 &priv->conf, in cal_ddrc_regs() 808 &priv->dimm, in cal_ddrc_regs() 809 priv->ip_rev); in cal_ddrc_regs() 825 ret = ddrc_set_regs(priv->clk, &priv->ddr_reg, priv->ddr[i], 0); in write_ddrc_regs() [all …]
|
A D | utility.c | 117 if (priv->num_ctlrs < 2) { in disable_unused_ddrc() 121 switch (priv->dimm_on_ctlr) { in disable_unused_ddrc() 141 priv->num_ctlrs = 1; in disable_unused_ddrc() 142 priv->spd_addr = &priv->spd_addr[priv->dimm_on_ctlr]; in disable_unused_ddrc() 143 priv->ddr[0] = priv->ddr[1]; in disable_unused_ddrc() 144 priv->ddr[1] = NULL; in disable_unused_ddrc() 145 priv->phy[0] = priv->phy[0]; in disable_unused_ddrc() 146 priv->phy[1] = NULL; in disable_unused_ddrc() 150 priv->num_ctlrs = 1; in disable_unused_ddrc() 151 priv->ddr[1] = NULL; in disable_unused_ddrc() [all …]
|
/tf-a-ffa_el3_spmc/drivers/nxp/ddr/fsl-mmdc/ |
A D | fsl_mmdc.c | 49 ddr_out32(&mmdc->mdotc, priv->mdotc); in mmdc_init() 50 ddr_out32(&mmdc->mdcfg0, priv->mdcfg0); in mmdc_init() 51 ddr_out32(&mmdc->mdcfg1, priv->mdcfg1); in mmdc_init() 52 ddr_out32(&mmdc->mdcfg2, priv->mdcfg2); in mmdc_init() 55 ddr_out32(&mmdc->mdmisc, priv->mdmisc); in mmdc_init() 57 ddr_out32(&mmdc->mdrwd, priv->mdrwd); in mmdc_init() 58 ddr_out32(&mmdc->mpodtctrl, priv->mpodtctrl); in mmdc_init() 61 ddr_out32(&mmdc->mdor, priv->mdor); in mmdc_init() 68 ddr_out32(&mmdc->mdasp, priv->mdasp); in mmdc_init() 138 if (priv->mprddlctl != 0) { in mmdc_init() [all …]
|
/tf-a-ffa_el3_spmc/plat/nxp/soc-lx2160a/lx2160ardb/ |
A D | ddr_init.c | 58 unsigned long long board_static_ddr(struct ddr_info *priv) in board_static_ddr() argument 60 memcpy(&priv->ddr_reg, &static_1600, sizeof(static_1600)); in board_static_ddr() 61 memcpy(&priv->dimm, &static_dimm, sizeof(static_dimm)); in board_static_ddr() 62 priv->conf.cs_on_dimm[0] = 0x3; in board_static_ddr() 63 ddr_board_options(priv); in board_static_ddr() 64 compute_ddr_phy(priv); in board_static_ddr() 124 int ddr_board_options(struct ddr_info *priv) in ddr_board_options() argument 126 struct memctl_opt *popts = &priv->opt; in ddr_board_options() 127 const struct ddr_conf *conf = &priv->conf; in ddr_board_options()
|
/tf-a-ffa_el3_spmc/include/drivers/nxp/ddr/ |
A D | ddr.h | 125 int disable_unused_ddrc(struct ddr_info *priv, int mask, 127 int ddr_board_options(struct ddr_info *priv); 134 int compute_ddr_phy(struct ddr_info *priv); 139 int cal_board_params(struct ddr_info *priv, 144 long long dram_init(struct ddr_info *priv
|
/tf-a-ffa_el3_spmc/plat/mediatek/common/lpm/ |
A D | mt_lp_rm.h | 32 int stateid, void *priv); 38 int stateid, void *priv);
|
A D | mt_lp_rm.c | 58 int stateid, void *priv) in mt_lp_rm_find_and_run_constraint() argument 70 res = rm->update(rm->consts, stateid, priv); in mt_lp_rm_find_and_run_constraint()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt8192/drivers/spm/ |
A D | mt_spm_cond.h | 47 void *priv; member 55 int stateid, void *priv);
|
A D | mt_spm_cond.c | 159 int stateid, void *priv) in mt_spm_cond_update() argument 205 spm_cond_t.priv = priv; in mt_spm_cond_update()
|
/tf-a-ffa_el3_spmc/plat/nxp/soc-lx2160a/lx2160aqds/ |
A D | ddr_init.c | 189 unsigned long long board_static_ddr(struct ddr_info *priv) in board_static_ddr() argument 191 (void)memcpy(&priv->ddr_reg, &static_2900, sizeof(static_2900)); in board_static_ddr() 192 (void)memcpy(&priv->dimm, &static_dimm, sizeof(static_dimm)); in board_static_ddr() 193 priv->conf.cs_on_dimm[0] = 0x3; in board_static_ddr() 194 ddr_board_options(priv); in board_static_ddr() 195 compute_ddr_phy(priv); in board_static_ddr() 255 int ddr_board_options(struct ddr_info *priv) in ddr_board_options() argument 257 struct memctl_opt *popts = &priv->opt; in ddr_board_options() 258 const struct ddr_conf *conf = &priv->conf; in ddr_board_options()
|
/tf-a-ffa_el3_spmc/plat/nxp/soc-lx2160a/lx2162aqds/ |
A D | ddr_init.c | 189 unsigned long long board_static_ddr(struct ddr_info *priv) in board_static_ddr() argument 191 memcpy(&priv->ddr_reg, &static_2900, sizeof(static_2900)); in board_static_ddr() 192 memcpy(&priv->dimm, &static_dimm, sizeof(static_dimm)); in board_static_ddr() 193 priv->conf.cs_on_dimm[0] = 0x3; in board_static_ddr() 194 ddr_board_options(priv); in board_static_ddr() 195 compute_ddr_phy(priv); in board_static_ddr() 254 int ddr_board_options(struct ddr_info *priv) in ddr_board_options() argument 256 struct memctl_opt *popts = &priv->opt; in ddr_board_options() 257 const struct ddr_conf *conf = &priv->conf; in ddr_board_options()
|
/tf-a-ffa_el3_spmc/plat/mediatek/mt8195/drivers/spm/ |
A D | mt_spm_cond.h | 64 void *priv; member 72 int stateid, void *priv);
|
A D | mt_spm_cond.c | 175 int stateid, void *priv) in mt_spm_cond_update() argument 221 spm_cond_t.priv = priv; in mt_spm_cond_update()
|
/tf-a-ffa_el3_spmc/drivers/nxp/ddr/phy-gen1/ |
A D | phy.c | 86 int compute_ddr_phy(struct ddr_info *priv) in compute_ddr_phy() argument 88 const struct memctl_opt *popts = &priv->opt; in compute_ddr_phy() 89 struct ddr_cfg_regs *regs = &priv->ddr_reg; in compute_ddr_phy()
|
/tf-a-ffa_el3_spmc/drivers/nxp/ddr/phy-gen2/ |
A D | phy.c | 2460 int compute_ddr_phy(struct ddr_info *priv) in compute_ddr_phy() argument 2462 const unsigned long clk = priv->clk; in compute_ddr_phy() 2567 ret = c_init_phy_config(priv->phy, priv->ip_rev, &input, &msg_1d); in compute_ddr_phy() 2579 priv->num_ctlrs, in compute_ddr_phy() 2591 priv->img_loadr, priv->warm_boot_flag); in compute_ddr_phy() 2598 ret = g_exec_fw(priv->phy, 0, &input); in compute_ddr_phy() 2621 priv->phy_gen2_fw_img_buf, in compute_ddr_phy() 2622 priv->img_loadr, in compute_ddr_phy() 2623 priv->warm_boot_flag); in compute_ddr_phy() 2642 priv->num_ctlrs, in compute_ddr_phy() [all …]
|
/tf-a-ffa_el3_spmc/include/drivers/st/ |
A D | stm32mp1_ddr.h | 171 int stm32mp1_ddr_clk_enable(struct ddr_info *priv, uint32_t mem_speed); 172 void stm32mp1_ddr_init(struct ddr_info *priv,
|
/tf-a-ffa_el3_spmc/include/drivers/nxp/ddr/fsl-mmdc/ |
A D | fsl_mmdc.h | 171 void mmdc_init(const struct fsl_mmdc_info *priv, uintptr_t nxp_ddr_addr);
|