Lines Matching +full:1000 +full:- +full:10000
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Author: Boris BREZILLON <boris.brezillon@free-electrons.com>
16 * For non-ONFI chips we use the highest possible value for tPROG and tBERS.
48 .tIR_min = 10000,
78 .tALH_min = 10000,
80 .tAR_min = 10000,
83 .tCH_min = 10000,
85 .tCLH_min = 10000,
86 .tCLR_min = 10000,
90 .tDH_min = 10000,
123 .tALH_min = 10000,
125 .tAR_min = 10000,
128 .tCH_min = 10000,
130 .tCLH_min = 10000,
131 .tCLR_min = 10000,
169 .tALS_min = 10000,
170 .tAR_min = 10000,
176 .tCLR_min = 10000,
177 .tCLS_min = 10000,
181 .tDS_min = 10000,
187 .tREH_min = 10000,
197 .tWH_min = 10000,
214 .tALS_min = 10000,
215 .tAR_min = 10000,
221 .tCLR_min = 10000,
222 .tCLS_min = 10000,
226 .tDS_min = 10000,
232 .tREH_min = 10000,
242 .tWH_min = 10000,
259 .tALS_min = 10000,
260 .tAR_min = 10000,
266 .tCLR_min = 10000,
267 .tCLS_min = 10000,
282 .tRP_min = 10000,
289 .tWP_min = 10000,
309 .tCAH_min = 10000,
310 .tCALH_min = 10000,
311 .tCALS_min = 10000,
312 .tCAS_min = 10000,
314 .tCH_min = 10000,
491 .tDQSQ_max = 1000,
525 .tCK_min = 10000,
535 .tDSC_min = 10000,
538 .tQHS_max = 1000,
557 * onfi_find_closest_sdr_mode - Derive the closest ONFI SDR timing mode given a
567 for (mode = ARRAY_SIZE(onfi_sdr_timings) - 1; mode > 0; mode--) { in onfi_find_closest_sdr_mode()
570 if (spec_timings->tCCS_min <= onfi_timings->tCCS_min && in onfi_find_closest_sdr_mode()
571 spec_timings->tADL_min <= onfi_timings->tADL_min && in onfi_find_closest_sdr_mode()
572 spec_timings->tALH_min <= onfi_timings->tALH_min && in onfi_find_closest_sdr_mode()
573 spec_timings->tALS_min <= onfi_timings->tALS_min && in onfi_find_closest_sdr_mode()
574 spec_timings->tAR_min <= onfi_timings->tAR_min && in onfi_find_closest_sdr_mode()
575 spec_timings->tCEH_min <= onfi_timings->tCEH_min && in onfi_find_closest_sdr_mode()
576 spec_timings->tCH_min <= onfi_timings->tCH_min && in onfi_find_closest_sdr_mode()
577 spec_timings->tCLH_min <= onfi_timings->tCLH_min && in onfi_find_closest_sdr_mode()
578 spec_timings->tCLR_min <= onfi_timings->tCLR_min && in onfi_find_closest_sdr_mode()
579 spec_timings->tCLS_min <= onfi_timings->tCLS_min && in onfi_find_closest_sdr_mode()
580 spec_timings->tCOH_min <= onfi_timings->tCOH_min && in onfi_find_closest_sdr_mode()
581 spec_timings->tCS_min <= onfi_timings->tCS_min && in onfi_find_closest_sdr_mode()
582 spec_timings->tDH_min <= onfi_timings->tDH_min && in onfi_find_closest_sdr_mode()
583 spec_timings->tDS_min <= onfi_timings->tDS_min && in onfi_find_closest_sdr_mode()
584 spec_timings->tIR_min <= onfi_timings->tIR_min && in onfi_find_closest_sdr_mode()
585 spec_timings->tRC_min <= onfi_timings->tRC_min && in onfi_find_closest_sdr_mode()
586 spec_timings->tREH_min <= onfi_timings->tREH_min && in onfi_find_closest_sdr_mode()
587 spec_timings->tRHOH_min <= onfi_timings->tRHOH_min && in onfi_find_closest_sdr_mode()
588 spec_timings->tRHW_min <= onfi_timings->tRHW_min && in onfi_find_closest_sdr_mode()
589 spec_timings->tRLOH_min <= onfi_timings->tRLOH_min && in onfi_find_closest_sdr_mode()
590 spec_timings->tRP_min <= onfi_timings->tRP_min && in onfi_find_closest_sdr_mode()
591 spec_timings->tRR_min <= onfi_timings->tRR_min && in onfi_find_closest_sdr_mode()
592 spec_timings->tWC_min <= onfi_timings->tWC_min && in onfi_find_closest_sdr_mode()
593 spec_timings->tWH_min <= onfi_timings->tWH_min && in onfi_find_closest_sdr_mode()
594 spec_timings->tWHR_min <= onfi_timings->tWHR_min && in onfi_find_closest_sdr_mode()
595 spec_timings->tWP_min <= onfi_timings->tWP_min && in onfi_find_closest_sdr_mode()
596 spec_timings->tWW_min <= onfi_timings->tWW_min) in onfi_find_closest_sdr_mode()
604 * onfi_find_closest_nvddr_mode - Derive the closest ONFI NVDDR timing mode
614 for (mode = ARRAY_SIZE(onfi_nvddr_timings) - 1; mode > 0; mode--) { in onfi_find_closest_nvddr_mode()
617 if (spec_timings->tCCS_min <= onfi_timings->tCCS_min && in onfi_find_closest_nvddr_mode()
618 spec_timings->tAC_min <= onfi_timings->tAC_min && in onfi_find_closest_nvddr_mode()
619 spec_timings->tADL_min <= onfi_timings->tADL_min && in onfi_find_closest_nvddr_mode()
620 spec_timings->tCAD_min <= onfi_timings->tCAD_min && in onfi_find_closest_nvddr_mode()
621 spec_timings->tCAH_min <= onfi_timings->tCAH_min && in onfi_find_closest_nvddr_mode()
622 spec_timings->tCALH_min <= onfi_timings->tCALH_min && in onfi_find_closest_nvddr_mode()
623 spec_timings->tCALS_min <= onfi_timings->tCALS_min && in onfi_find_closest_nvddr_mode()
624 spec_timings->tCAS_min <= onfi_timings->tCAS_min && in onfi_find_closest_nvddr_mode()
625 spec_timings->tCEH_min <= onfi_timings->tCEH_min && in onfi_find_closest_nvddr_mode()
626 spec_timings->tCH_min <= onfi_timings->tCH_min && in onfi_find_closest_nvddr_mode()
627 spec_timings->tCK_min <= onfi_timings->tCK_min && in onfi_find_closest_nvddr_mode()
628 spec_timings->tCS_min <= onfi_timings->tCS_min && in onfi_find_closest_nvddr_mode()
629 spec_timings->tDH_min <= onfi_timings->tDH_min && in onfi_find_closest_nvddr_mode()
630 spec_timings->tDQSCK_min <= onfi_timings->tDQSCK_min && in onfi_find_closest_nvddr_mode()
631 spec_timings->tDQSD_min <= onfi_timings->tDQSD_min && in onfi_find_closest_nvddr_mode()
632 spec_timings->tDS_min <= onfi_timings->tDS_min && in onfi_find_closest_nvddr_mode()
633 spec_timings->tDSC_min <= onfi_timings->tDSC_min && in onfi_find_closest_nvddr_mode()
634 spec_timings->tRHW_min <= onfi_timings->tRHW_min && in onfi_find_closest_nvddr_mode()
635 spec_timings->tRR_min <= onfi_timings->tRR_min && in onfi_find_closest_nvddr_mode()
636 spec_timings->tWHR_min <= onfi_timings->tWHR_min && in onfi_find_closest_nvddr_mode()
637 spec_timings->tWRCK_min <= onfi_timings->tWRCK_min && in onfi_find_closest_nvddr_mode()
638 spec_timings->tWW_min <= onfi_timings->tWW_min) in onfi_find_closest_nvddr_mode()
646 * onfi_fill_sdr_interface_config - Initialize a SDR interface config from a
656 struct onfi_params *onfi = chip->parameters.onfi; in onfi_fill_sdr_interface_config()
669 struct nand_sdr_timings *timings = &iface->timings.sdr; in onfi_fill_sdr_interface_config()
671 /* microseconds -> picoseconds */ in onfi_fill_sdr_interface_config()
672 timings->tPROG_max = 1000000ULL * onfi->tPROG; in onfi_fill_sdr_interface_config()
673 timings->tBERS_max = 1000000ULL * onfi->tBERS; in onfi_fill_sdr_interface_config()
674 timings->tR_max = 1000000ULL * onfi->tR; in onfi_fill_sdr_interface_config()
676 /* nanoseconds -> picoseconds */ in onfi_fill_sdr_interface_config()
677 timings->tCCS_min = 1000UL * onfi->tCCS; in onfi_fill_sdr_interface_config()
682 * onfi_fill_nvddr_interface_config - Initialize a NVDDR interface config from a
692 struct onfi_params *onfi = chip->parameters.onfi; in onfi_fill_nvddr_interface_config()
705 struct nand_nvddr_timings *timings = &iface->timings.nvddr; in onfi_fill_nvddr_interface_config()
707 /* microseconds -> picoseconds */ in onfi_fill_nvddr_interface_config()
708 timings->tPROG_max = 1000000ULL * onfi->tPROG; in onfi_fill_nvddr_interface_config()
709 timings->tBERS_max = 1000000ULL * onfi->tBERS; in onfi_fill_nvddr_interface_config()
710 timings->tR_max = 1000000ULL * onfi->tR; in onfi_fill_nvddr_interface_config()
712 /* nanoseconds -> picoseconds */ in onfi_fill_nvddr_interface_config()
713 timings->tCCS_min = 1000UL * onfi->tCCS; in onfi_fill_nvddr_interface_config()
715 if (onfi->fast_tCAD) in onfi_fill_nvddr_interface_config()
716 timings->tCAD_min = 25000; in onfi_fill_nvddr_interface_config()
721 * onfi_fill_interface_config - Initialize an interface config from a given