Lines Matching refs:sdrt
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()
309 if (thold < sdrt->tWH_min) in fsmc_calc_timings()
310 thold = sdrt->tWH_min; in fsmc_calc_timings()
311 if (thold < sdrt->tALH_min) in fsmc_calc_timings()
312 thold = sdrt->tALH_min; in fsmc_calc_timings()
313 if (thold < sdrt->tREH_min) in fsmc_calc_timings()
314 thold = sdrt->tREH_min; in fsmc_calc_timings()
321 tset = max(sdrt->tCS_min - sdrt->tWP_min, in fsmc_calc_timings()
322 sdrt->tCEA_max - sdrt->tREA_max); in fsmc_calc_timings()
334 twait_min = sdrt->tCEA_max - ((tims->tset + 1) * hclkn * 1000) in fsmc_calc_timings()
336 twait = max3(sdrt->tRP_min, sdrt->tWP_min, twait_min); in fsmc_calc_timings()
352 const struct nand_sdr_timings *sdrt; in fsmc_setup_interface() local
355 sdrt = nand_get_sdr_timings(conf); in fsmc_setup_interface()
356 if (IS_ERR(sdrt)) in fsmc_setup_interface()
357 return PTR_ERR(sdrt); in fsmc_setup_interface()
359 ret = fsmc_calc_timings(host, sdrt, &tims); in fsmc_setup_interface()