Lines Matching refs:sdr
2310 const struct nand_sdr_timings *sdr; in cadence_nand_setup_interface() local
2331 sdr = nand_get_sdr_timings(conf); in cadence_nand_setup_interface()
2332 if (IS_ERR(sdr)) in cadence_nand_setup_interface()
2333 return PTR_ERR(sdr); in cadence_nand_setup_interface()
2345 tdvw_min = sdr->tREA_max + board_delay_skew_max; in cadence_nand_setup_interface()
2355 if (sdr->tRC_min <= clk_period && in cadence_nand_setup_interface()
2356 sdr->tRP_min <= (clk_period / 2) && in cadence_nand_setup_interface()
2357 sdr->tREH_min <= (clk_period / 2)) { in cadence_nand_setup_interface()
2360 tdvw = calc_tdvw(trp_cnt, clk_period, sdr->tRHOH_min, in cadence_nand_setup_interface()
2361 sdr->tREA_max, ext_rd_mode); in cadence_nand_setup_interface()
2362 tdvw_max = calc_tdvw_max(trp_cnt, clk_period, sdr->tRHOH_min, in cadence_nand_setup_interface()
2385 trp_cnt = (sdr->tREA_max + board_delay_skew_max in cadence_nand_setup_interface()
2395 trp_cnt = calc_cycl(sdr->tRP_min, clk_period); in cadence_nand_setup_interface()
2396 trh = sdr->tRC_min - ((trp_cnt + 1) * clk_period); in cadence_nand_setup_interface()
2397 if (sdr->tREH_min >= trh) in cadence_nand_setup_interface()
2398 trh_cnt = calc_cycl(sdr->tREH_min, clk_period); in cadence_nand_setup_interface()
2402 tdvw = calc_tdvw(trp_cnt, clk_period, sdr->tRHOH_min, in cadence_nand_setup_interface()
2403 sdr->tREA_max, ext_rd_mode); in cadence_nand_setup_interface()
2411 sdr->tRHOH_min, in cadence_nand_setup_interface()
2435 trp_cnt = (sdr->tREA_max + board_delay_skew_max in cadence_nand_setup_interface()
2441 sdr->tRHOH_min, in cadence_nand_setup_interface()
2444 if (sdr->tWC_min <= clk_period && in cadence_nand_setup_interface()
2445 (sdr->tWP_min + if_skew) <= (clk_period / 2) && in cadence_nand_setup_interface()
2446 (sdr->tWH_min + if_skew) <= (clk_period / 2)) { in cadence_nand_setup_interface()
2452 twp_cnt = calc_cycl(sdr->tWP_min + if_skew, clk_period); in cadence_nand_setup_interface()
2453 if ((twp_cnt + 1) * clk_period < (sdr->tALS_min + if_skew)) in cadence_nand_setup_interface()
2454 twp_cnt = calc_cycl(sdr->tALS_min + if_skew, in cadence_nand_setup_interface()
2457 twh = (sdr->tWC_min - (twp_cnt + 1) * clk_period); in cadence_nand_setup_interface()
2458 if (sdr->tWH_min >= twh) in cadence_nand_setup_interface()
2459 twh = sdr->tWH_min; in cadence_nand_setup_interface()
2471 tadl_cnt = calc_cycl((sdr->tADL_min + if_skew), clk_period); in cadence_nand_setup_interface()
2472 tccs_cnt = calc_cycl((sdr->tCCS_min + if_skew), clk_period); in cadence_nand_setup_interface()
2473 twhr_cnt = calc_cycl((sdr->tWHR_min + if_skew), clk_period); in cadence_nand_setup_interface()
2474 trhw_cnt = calc_cycl((sdr->tRHW_min + if_skew), clk_period); in cadence_nand_setup_interface()
2492 trhz_cnt = calc_cycl(sdr->tRHZ_max, clk_period); in cadence_nand_setup_interface()
2494 twb_cnt = calc_cycl((sdr->tWB_max + board_delay), clk_period); in cadence_nand_setup_interface()
2512 tfeat_cnt = calc_cycl(sdr->tFEAT_max, clk_period); in cadence_nand_setup_interface()
2516 tceh_cnt = calc_cycl(sdr->tCEH_min, clk_period); in cadence_nand_setup_interface()
2517 tcs_cnt = calc_cycl((sdr->tCS_min + if_skew), clk_period); in cadence_nand_setup_interface()