Home
last modified time | relevance | path

Searched refs:sdrt (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c623 const struct nand_sdr_timings *sdrt) in stm32_fmc2_calc_timings() argument
633 if (tar < sdrt->tAR_min) in stm32_fmc2_calc_timings()
634 tar = sdrt->tAR_min; in stm32_fmc2_calc_timings()
640 if (tclr < sdrt->tCLR_min) in stm32_fmc2_calc_timings()
641 tclr = sdrt->tCLR_min; in stm32_fmc2_calc_timings()
655 if (twait < sdrt->tRP_min) in stm32_fmc2_calc_timings()
656 twait = sdrt->tRP_min; in stm32_fmc2_calc_timings()
657 if (twait < sdrt->tWP_min) in stm32_fmc2_calc_timings()
658 twait = sdrt->tWP_min; in stm32_fmc2_calc_timings()
659 if (twait < sdrt->tREA_max + FMC2_TIO) in stm32_fmc2_calc_timings()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Dstm32_fmc2_nand.c1390 const struct nand_sdr_timings *sdrt) in stm32_fmc2_nfc_calc_timings() argument
1400 tar = max_t(unsigned long, hclkp, sdrt->tAR_min); in stm32_fmc2_nfc_calc_timings()
1404 tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); in stm32_fmc2_nfc_calc_timings()
1416 twait = max_t(unsigned long, hclkp, sdrt->tRP_min); in stm32_fmc2_nfc_calc_timings()
1417 twait = max_t(unsigned long, twait, sdrt->tWP_min); in stm32_fmc2_nfc_calc_timings()
1418 twait = max_t(unsigned long, twait, sdrt->tREA_max + FMC2_TIO); in stm32_fmc2_nfc_calc_timings()
1428 if (sdrt->tCS_min > twait && (tset_mem < sdrt->tCS_min - twait)) in stm32_fmc2_nfc_calc_timings()
1429 tset_mem = sdrt->tCS_min - twait; in stm32_fmc2_nfc_calc_timings()
1430 if (sdrt->tALS_min > twait && (tset_mem < sdrt->tALS_min - twait)) in stm32_fmc2_nfc_calc_timings()
1431 tset_mem = sdrt->tALS_min - twait; in stm32_fmc2_nfc_calc_timings()
[all …]
H A Dfsmc_nand.c284 const struct nand_sdr_timings *sdrt, in fsmc_calc_timings() argument
291 if (sdrt->tRC_min < 30000) in fsmc_calc_timings()
294 tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1; in fsmc_calc_timings()
297 tims->tclr = DIV_ROUND_UP(sdrt->tCLR_min / 1000, hclkn) - 1; in fsmc_calc_timings()
301 thiz = sdrt->tCS_min - sdrt->tWP_min; in fsmc_calc_timings()
304 thold = sdrt->tDH_min; in fsmc_calc_timings()
305 if (thold < sdrt->tCH_min) in fsmc_calc_timings()
306 thold = sdrt->tCH_min; in fsmc_calc_timings()
307 if (thold < sdrt->tCLH_min) in fsmc_calc_timings()
308 thold = sdrt->tCLH_min; in fsmc_calc_timings()
[all …]