Lines Matching refs:fcfg

346 	struct espi_saf_flash_cfg *fcfg = cfg->flash_cfgs;  in saf_init_erase_block_size()  local
347 uint32_t opb = fcfg->opb; in saf_init_erase_block_size()
353 fcfg++; in saf_init_erase_block_size()
354 opb &= fcfg->opb; in saf_init_erase_block_size()
384 const struct espi_saf_flash_cfg *fcfg) in saf_flash_misc_cfg() argument
396 if (fcfg->cont_prefix != 0) { in saf_flash_misc_cfg()
408 if (fcfg->flags & MCHP_FLASH_FLAG_ADDR32) { in saf_flash_misc_cfg()
419 const struct espi_saf_flash_cfg *fcfg) in saf_flash_pd_cfg() argument
426 if (fcfg->flags & MCHP_FLASH_FLAG_V2_PD_CS0_EN) { in saf_flash_pd_cfg()
429 if (fcfg->flags & MCHP_FLASH_FLAG_V2_PD_CS0_EC_WK_EN) { in saf_flash_pd_cfg()
434 if (fcfg->flags & MCHP_FLASH_FLAG_V2_PD_CS1_EN) { in saf_flash_pd_cfg()
437 if (fcfg->flags & MCHP_FLASH_FLAG_V2_PD_CS1_EC_WK_EN) { in saf_flash_pd_cfg()
452 const struct espi_saf_flash_cfg *fcfg) in saf_flash_freq_cfg() argument
462 fmhz = fcfg->rd_freq_mhz; in saf_flash_freq_cfg()
476 fmhz = fcfg->freq_mhz; in saf_flash_freq_cfg()
513 const struct espi_saf_flash_cfg *fcfg, uint8_t cs) in saf_flash_cfg() argument
522 regs->SAF_CS_OP[cs].OPA = fcfg->opa; in saf_flash_cfg()
523 regs->SAF_CS_OP[cs].OPB = fcfg->opb; in saf_flash_cfg()
524 regs->SAF_CS_OP[cs].OPC = fcfg->opc; in saf_flash_cfg()
525 regs->SAF_CS_OP[cs].OP_DESCR = (uint32_t)fcfg->cs_cfg_descr_ids; in saf_flash_cfg()
533 d = fcfg->descr[i] & ~(MCHP_QMSPI_C_NEXT_DESCR_MASK); in saf_flash_cfg()
539 mchp_saf_poll2_mask_wr(regs, cs, fcfg->poll2_mask); in saf_flash_cfg()
540 mchp_saf_cm_prefix_wr(regs, cs, fcfg->cont_prefix); in saf_flash_cfg()
541 saf_flash_misc_cfg(regs, cs, fcfg); in saf_flash_cfg()
542 saf_flash_pd_cfg(regs, cs, fcfg); in saf_flash_cfg()
544 return saf_flash_freq_cfg(regs, cs, fcfg); in saf_flash_cfg()
628 const struct espi_saf_flash_cfg *fcfg = cfg->flash_cfgs; in espi_saf_xec_configuration() local
630 if ((fcfg == NULL) || (cfg->nflash_devices == 0U) || in espi_saf_xec_configuration()
651 totalsz = fcfg->flashsz; in espi_saf_xec_configuration()
653 ret = saf_flash_cfg(dev, fcfg, 0); in espi_saf_xec_configuration()
660 fcfg++; in espi_saf_xec_configuration()
661 totalsz += fcfg->flashsz; in espi_saf_xec_configuration()
664 ret = saf_flash_cfg(dev, fcfg, 1); in espi_saf_xec_configuration()