Searched refs:sdrt (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/mtd/nand/raw/ |
H A D | stm32_fmc2_nand.c | 1413 const struct nand_sdr_timings *sdrt) in stm32_fmc2_nfc_calc_timings() argument 1423 tar = max_t(unsigned long, hclkp, sdrt->tAR_min); in stm32_fmc2_nfc_calc_timings() 1427 tclr = max_t(unsigned long, hclkp, sdrt->tCLR_min); in stm32_fmc2_nfc_calc_timings() 1439 twait = max_t(unsigned long, hclkp, sdrt->tRP_min); in stm32_fmc2_nfc_calc_timings() 1440 twait = max_t(unsigned long, twait, sdrt->tWP_min); in stm32_fmc2_nfc_calc_timings() 1441 twait = max_t(unsigned long, twait, sdrt->tREA_max + FMC2_TIO); in stm32_fmc2_nfc_calc_timings() 1451 if (sdrt->tCS_min > twait && (tset_mem < sdrt->tCS_min - twait)) in stm32_fmc2_nfc_calc_timings() 1452 tset_mem = sdrt->tCS_min - twait; in stm32_fmc2_nfc_calc_timings() 1453 if (sdrt->tALS_min > twait && (tset_mem < sdrt->tALS_min - twait)) in stm32_fmc2_nfc_calc_timings() 1454 tset_mem = sdrt->tALS_min - twait; in stm32_fmc2_nfc_calc_timings() [all …]
|
H A D | fsmc_nand.c | 284 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 …]
|