• Home
  • Raw
  • Download

Lines Matching refs:bcr

139 	u32 bcr[FMC2_MAX_EBI_CE];  member
181 u32 bcr; in stm32_fmc2_ebi_check_mux() local
183 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_mux()
185 if (bcr & FMC2_BCR_MTYP) in stm32_fmc2_ebi_check_mux()
195 u32 bcr, val = FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_check_waitcfg() local
197 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_waitcfg()
199 if ((bcr & FMC2_BCR_MTYP) == val && bcr & FMC2_BCR_BURSTEN) in stm32_fmc2_ebi_check_waitcfg()
209 u32 bcr; in stm32_fmc2_ebi_check_sync_trans() local
211 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_sync_trans()
213 if (bcr & FMC2_BCR_BURSTEN) in stm32_fmc2_ebi_check_sync_trans()
223 u32 bcr; in stm32_fmc2_ebi_check_async_trans() local
225 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_async_trans()
227 if (!(bcr & FMC2_BCR_BURSTEN) || !(bcr & FMC2_BCR_CBURSTRW)) in stm32_fmc2_ebi_check_async_trans()
237 u32 bcr, val = FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_check_cpsize() local
239 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_cpsize()
241 if ((bcr & FMC2_BCR_MTYP) == val && bcr & FMC2_BCR_BURSTEN) in stm32_fmc2_ebi_check_cpsize()
251 u32 bcr, bxtr, val = FIELD_PREP(FMC2_BXTR_ACCMOD, FMC2_BXTR_EXTMOD_D); in stm32_fmc2_ebi_check_address_hold() local
253 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_address_hold()
259 if ((!(bcr & FMC2_BCR_BURSTEN) || !(bcr & FMC2_BCR_CBURSTRW)) && in stm32_fmc2_ebi_check_address_hold()
260 ((bxtr & FMC2_BXTR_ACCMOD) == val || bcr & FMC2_BCR_MUXEN)) in stm32_fmc2_ebi_check_address_hold()
270 u32 bcr, bcr1; in stm32_fmc2_ebi_check_clk_period() local
272 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_check_clk_period()
276 bcr1 = bcr; in stm32_fmc2_ebi_check_clk_period()
278 if (bcr & FMC2_BCR_BURSTEN && (!cs || !(bcr1 & FMC2_BCR1_CCLKEN))) in stm32_fmc2_ebi_check_clk_period()
307 u32 bcr, btr, clk_period; in stm32_fmc2_ebi_ns_to_clk_period() local
309 regmap_read(ebi->regmap, FMC2_BCR1, &bcr); in stm32_fmc2_ebi_ns_to_clk_period()
310 if (bcr & FMC2_BCR1_CCLKEN || !cs) in stm32_fmc2_ebi_ns_to_clk_period()
363 u32 bcr_mask, bcr = FMC2_BCR_WREN; in stm32_fmc2_ebi_set_trans_type() local
375 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_SRAM); in stm32_fmc2_ebi_set_trans_type()
386 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_set_trans_type()
393 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_SRAM); in stm32_fmc2_ebi_set_trans_type()
394 bcr |= FMC2_BCR_EXTMOD; in stm32_fmc2_ebi_set_trans_type()
403 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_set_trans_type()
404 bcr |= FMC2_BCR_EXTMOD; in stm32_fmc2_ebi_set_trans_type()
413 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_set_trans_type()
414 bcr |= FMC2_BCR_FACCEN; in stm32_fmc2_ebi_set_trans_type()
421 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_set_trans_type()
422 bcr |= FMC2_BCR_FACCEN | FMC2_BCR_EXTMOD; in stm32_fmc2_ebi_set_trans_type()
431 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_set_trans_type()
432 bcr |= FMC2_BCR_FACCEN | FMC2_BCR_EXTMOD; in stm32_fmc2_ebi_set_trans_type()
441 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_set_trans_type()
442 bcr |= FMC2_BCR_FACCEN | FMC2_BCR_EXTMOD; in stm32_fmc2_ebi_set_trans_type()
451 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_set_trans_type()
452 bcr |= FMC2_BCR_BURSTEN | FMC2_BCR_CBURSTRW; in stm32_fmc2_ebi_set_trans_type()
459 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_PSRAM); in stm32_fmc2_ebi_set_trans_type()
460 bcr |= FMC2_BCR_BURSTEN; in stm32_fmc2_ebi_set_trans_type()
467 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_set_trans_type()
468 bcr |= FMC2_BCR_FACCEN | FMC2_BCR_BURSTEN | FMC2_BCR_CBURSTRW; in stm32_fmc2_ebi_set_trans_type()
475 bcr |= FIELD_PREP(FMC2_BCR_MTYP, FMC2_BCR_MTYP_NOR); in stm32_fmc2_ebi_set_trans_type()
476 bcr |= FMC2_BCR_FACCEN | FMC2_BCR_BURSTEN; in stm32_fmc2_ebi_set_trans_type()
483 if (bcr & FMC2_BCR_EXTMOD) in stm32_fmc2_ebi_set_trans_type()
487 regmap_update_bits(ebi->regmap, FMC2_BCR(cs), bcr_mask, bcr); in stm32_fmc2_ebi_set_trans_type()
564 u32 bcr, bxtr, reg; in stm32_fmc2_ebi_set_address_setup() local
572 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_set_address_setup()
578 if ((bxtr & FMC2_BXTR_ACCMOD) == val || bcr & FMC2_BCR_MUXEN) in stm32_fmc2_ebi_set_address_setup()
950 regmap_read(ebi->regmap, FMC2_BCR(cs), &ebi->bcr[cs]); in stm32_fmc2_ebi_save_setup()
963 regmap_write(ebi->regmap, FMC2_BCR(cs), ebi->bcr[cs]); in stm32_fmc2_ebi_set_setup()
987 u32 bcr; in stm32_fmc2_ebi_nwait_used_by_ctrls() local
993 regmap_read(ebi->regmap, FMC2_BCR(cs), &bcr); in stm32_fmc2_ebi_nwait_used_by_ctrls()
994 if ((bcr & FMC2_BCR_WAITEN || bcr & FMC2_BCR_ASYNCWAIT) && in stm32_fmc2_ebi_nwait_used_by_ctrls()