Searched refs:sdrt (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.4/drivers/mtd/nand/raw/ |
| D | stm32_fmc2_nand.c | 1423 const struct nand_sdr_timings *sdrt) in stm32_fmc2_calc_timings() argument 1433 tar = max_t(unsigned long, hclkp, sdrt->tAR_min); in stm32_fmc2_calc_timings() 1437 tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); in stm32_fmc2_calc_timings() 1449 twait = max_t(unsigned long, hclkp, sdrt->tRP_min); in stm32_fmc2_calc_timings() 1450 twait = max_t(unsigned long, twait, sdrt->tWP_min); in stm32_fmc2_calc_timings() 1451 twait = max_t(unsigned long, twait, sdrt->tREA_max + FMC2_TIO); in stm32_fmc2_calc_timings() 1461 if (sdrt->tCS_min > twait && (tset_mem < sdrt->tCS_min - twait)) in stm32_fmc2_calc_timings() 1462 tset_mem = sdrt->tCS_min - twait; in stm32_fmc2_calc_timings() 1463 if (sdrt->tALS_min > twait && (tset_mem < sdrt->tALS_min - twait)) in stm32_fmc2_calc_timings() 1464 tset_mem = sdrt->tALS_min - twait; in stm32_fmc2_calc_timings() [all …]
|
| D | fsmc_nand.c | 275 const struct nand_sdr_timings *sdrt, in fsmc_calc_timings() argument 282 if (sdrt->tRC_min < 30000) in fsmc_calc_timings() 285 tims->tar = DIV_ROUND_UP(sdrt->tAR_min / 1000, hclkn) - 1; in fsmc_calc_timings() 288 tims->tclr = DIV_ROUND_UP(sdrt->tCLR_min / 1000, hclkn) - 1; in fsmc_calc_timings() 292 thiz = sdrt->tCS_min - sdrt->tWP_min; in fsmc_calc_timings() 295 thold = sdrt->tDH_min; in fsmc_calc_timings() 296 if (thold < sdrt->tCH_min) in fsmc_calc_timings() 297 thold = sdrt->tCH_min; in fsmc_calc_timings() 298 if (thold < sdrt->tCLH_min) in fsmc_calc_timings() 299 thold = sdrt->tCLH_min; in fsmc_calc_timings() [all …]
|