Lines Matching refs:thold
109 u8 thold; member
266 u32 tclr, tar, thiz, thold, twait, tset; in fsmc_nand_setup() local
271 thold = (tims->thold & FSMC_THOLD_MASK) << FSMC_THOLD_SHIFT; in fsmc_nand_setup()
279 writel_relaxed(thiz | thold | twait | tset, host->regs_va + COMM); in fsmc_nand_setup()
280 writel_relaxed(thiz | thold | twait | tset, host->regs_va + ATTRIB); in fsmc_nand_setup()
289 u32 thiz, thold, twait, tset, twait_min; in fsmc_calc_timings() local
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()
315 tims->thold = DIV_ROUND_UP(thold / 1000, hclkn); in fsmc_calc_timings()
316 if (tims->thold == 0) in fsmc_calc_timings()
317 tims->thold = 1; in fsmc_calc_timings()
318 else if (tims->thold > FSMC_THOLD_MASK) in fsmc_calc_timings()
319 tims->thold = FSMC_THOLD_MASK; in fsmc_calc_timings()