Lines Matching +full:1000 +full:ns
284 rate /= 1000; in gpmc_get_fclk_period()
328 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks()
349 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns()
416 * tick format: gpmc,name = <value> /‍* x ns -- y ns; x ticks *‍/
417 * Where x ns -- y ns result in the same tick value.
449 /* DTS tick format for timings in ns */ in get_gpmc_timing_reg()
456 pr_info("gpmc,%s = <%u>; /* %u ns - %u ns; %i ticks%s*/\n", in get_gpmc_timing_reg()
533 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 0, 3, "cs-on-ns"); in gpmc_cs_show_timings()
534 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 8, 12, "cs-rd-off-ns"); in gpmc_cs_show_timings()
535 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 16, 20, "cs-wr-off-ns"); in gpmc_cs_show_timings()
537 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 0, 3, "adv-on-ns"); in gpmc_cs_show_timings()
538 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 8, 12, "adv-rd-off-ns"); in gpmc_cs_show_timings()
539 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 16, 20, "adv-wr-off-ns"); in gpmc_cs_show_timings()
541 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 4, 6, "adv-aad-mux-on-ns"); in gpmc_cs_show_timings()
543 "adv-aad-mux-rd-off-ns"); in gpmc_cs_show_timings()
545 "adv-aad-mux-wr-off-ns"); in gpmc_cs_show_timings()
548 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 0, 3, "oe-on-ns"); in gpmc_cs_show_timings()
549 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 8, 12, "oe-off-ns"); in gpmc_cs_show_timings()
551 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 4, 6, "oe-aad-mux-on-ns"); in gpmc_cs_show_timings()
552 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 13, 15, "oe-aad-mux-off-ns"); in gpmc_cs_show_timings()
554 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 16, 19, "we-on-ns"); in gpmc_cs_show_timings()
555 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 24, 28, "we-off-ns"); in gpmc_cs_show_timings()
557 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 0, 4, "rd-cycle-ns"); in gpmc_cs_show_timings()
558 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 8, 12, "wr-cycle-ns"); in gpmc_cs_show_timings()
559 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 16, 20, "access-ns"); in gpmc_cs_show_timings()
561 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 24, 27, "page-burst-access-ns"); in gpmc_cs_show_timings()
563 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 0, 3, "bus-turnaround-ns"); in gpmc_cs_show_timings()
564 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 8, 11, "cycle2cycle-delay-ns"); in gpmc_cs_show_timings()
568 "wait-monitoring-ns", GPMC_CD_CLK); in gpmc_cs_show_timings()
571 "clk-activation-ns", GPMC_CD_FCLK); in gpmc_cs_show_timings()
573 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 16, 19, "wr-data-mux-bus-ns"); in gpmc_cs_show_timings()
574 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 24, 28, "wr-access-ns"); in gpmc_cs_show_timings()
593 * @time: Timing parameter in ns.
615 pr_err("%s: GPMC CS%d: %s %d ns, %d ticks > %d ticks\n", in set_gpmc_timing_reg()
623 pr_info("GPMC CS%d: %-17s: %3d ticks, %3lu ns (was %3i ticks) %3d ns\n", in set_gpmc_timing_reg()
624 cs, name, ticks, gpmc_get_clk_period(cs, cd) * ticks / 1000, in set_gpmc_timing_reg()
646 * @wait_monitoring: WAITMONITORINGTIME in ns.
717 pr_err("%s: waitmonitoringtime %3d ns too large for greatest gpmcfclkdivider.\n", in gpmc_cs_set_timings()
831 pr_info("GPMC CS%d CLK period is %lu ns (div %d)\n", in gpmc_cs_set_timings()
832 cs, (div * gpmc_get_fclk_period()) / 1000, div); in gpmc_cs_set_timings()
1179 dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000; in gpmc_omap_onenand_calc_sync_timings()
1180 dev_t.t_wpl = t_wpl * 1000; in gpmc_omap_onenand_calc_sync_timings()
1181 dev_t.t_wph = t_wph * 1000; in gpmc_omap_onenand_calc_sync_timings()
1182 dev_t.t_aavdh = t_aavdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1190 dev_t.t_ces = t_ces * 1000; in gpmc_omap_onenand_calc_sync_timings()
1191 dev_t.t_avds = t_avds * 1000; in gpmc_omap_onenand_calc_sync_timings()
1192 dev_t.t_avdh = t_avdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1193 dev_t.t_ach = t_ach * 1000; in gpmc_omap_onenand_calc_sync_timings()
1195 dev_t.t_cez_r = t_cez * 1000; in gpmc_omap_onenand_calc_sync_timings()
1198 dev_t.t_rdyo = t_rdyo * 1000 + min_gpmc_clk_period; in gpmc_omap_onenand_calc_sync_timings()
1740 * has to be modified to handle timings in ps instead of ns
1744 t->cs_on /= 1000; in gpmc_convert_ps_to_ns()
1745 t->cs_rd_off /= 1000; in gpmc_convert_ps_to_ns()
1746 t->cs_wr_off /= 1000; in gpmc_convert_ps_to_ns()
1747 t->adv_on /= 1000; in gpmc_convert_ps_to_ns()
1748 t->adv_rd_off /= 1000; in gpmc_convert_ps_to_ns()
1749 t->adv_wr_off /= 1000; in gpmc_convert_ps_to_ns()
1750 t->we_on /= 1000; in gpmc_convert_ps_to_ns()
1751 t->we_off /= 1000; in gpmc_convert_ps_to_ns()
1752 t->oe_on /= 1000; in gpmc_convert_ps_to_ns()
1753 t->oe_off /= 1000; in gpmc_convert_ps_to_ns()
1754 t->page_burst_access /= 1000; in gpmc_convert_ps_to_ns()
1755 t->access /= 1000; in gpmc_convert_ps_to_ns()
1756 t->rd_cycle /= 1000; in gpmc_convert_ps_to_ns()
1757 t->wr_cycle /= 1000; in gpmc_convert_ps_to_ns()
1758 t->bus_turnaround /= 1000; in gpmc_convert_ps_to_ns()
1759 t->cycle2cycle_delay /= 1000; in gpmc_convert_ps_to_ns()
1760 t->wait_monitoring /= 1000; in gpmc_convert_ps_to_ns()
1761 t->clk_activation /= 1000; in gpmc_convert_ps_to_ns()
1762 t->wr_access /= 1000; in gpmc_convert_ps_to_ns()
1763 t->wr_data_mux_bus /= 1000; in gpmc_convert_ps_to_ns()
2000 of_property_read_u32(np, "gpmc,cs-on-ns", &gpmc_t->cs_on); in gpmc_read_timings_dt()
2001 of_property_read_u32(np, "gpmc,cs-rd-off-ns", &gpmc_t->cs_rd_off); in gpmc_read_timings_dt()
2002 of_property_read_u32(np, "gpmc,cs-wr-off-ns", &gpmc_t->cs_wr_off); in gpmc_read_timings_dt()
2005 of_property_read_u32(np, "gpmc,adv-on-ns", &gpmc_t->adv_on); in gpmc_read_timings_dt()
2006 of_property_read_u32(np, "gpmc,adv-rd-off-ns", &gpmc_t->adv_rd_off); in gpmc_read_timings_dt()
2007 of_property_read_u32(np, "gpmc,adv-wr-off-ns", &gpmc_t->adv_wr_off); in gpmc_read_timings_dt()
2008 of_property_read_u32(np, "gpmc,adv-aad-mux-on-ns", in gpmc_read_timings_dt()
2010 of_property_read_u32(np, "gpmc,adv-aad-mux-rd-off-ns", in gpmc_read_timings_dt()
2012 of_property_read_u32(np, "gpmc,adv-aad-mux-wr-off-ns", in gpmc_read_timings_dt()
2016 of_property_read_u32(np, "gpmc,we-on-ns", &gpmc_t->we_on); in gpmc_read_timings_dt()
2017 of_property_read_u32(np, "gpmc,we-off-ns", &gpmc_t->we_off); in gpmc_read_timings_dt()
2020 of_property_read_u32(np, "gpmc,oe-on-ns", &gpmc_t->oe_on); in gpmc_read_timings_dt()
2021 of_property_read_u32(np, "gpmc,oe-off-ns", &gpmc_t->oe_off); in gpmc_read_timings_dt()
2022 of_property_read_u32(np, "gpmc,oe-aad-mux-on-ns", in gpmc_read_timings_dt()
2024 of_property_read_u32(np, "gpmc,oe-aad-mux-off-ns", in gpmc_read_timings_dt()
2028 of_property_read_u32(np, "gpmc,page-burst-access-ns", in gpmc_read_timings_dt()
2030 of_property_read_u32(np, "gpmc,access-ns", &gpmc_t->access); in gpmc_read_timings_dt()
2031 of_property_read_u32(np, "gpmc,rd-cycle-ns", &gpmc_t->rd_cycle); in gpmc_read_timings_dt()
2032 of_property_read_u32(np, "gpmc,wr-cycle-ns", &gpmc_t->wr_cycle); in gpmc_read_timings_dt()
2033 of_property_read_u32(np, "gpmc,bus-turnaround-ns", in gpmc_read_timings_dt()
2035 of_property_read_u32(np, "gpmc,cycle2cycle-delay-ns", in gpmc_read_timings_dt()
2037 of_property_read_u32(np, "gpmc,wait-monitoring-ns", in gpmc_read_timings_dt()
2039 of_property_read_u32(np, "gpmc,clk-activation-ns", in gpmc_read_timings_dt()
2043 of_property_read_u32(np, "gpmc,wr-access-ns", &gpmc_t->wr_access); in gpmc_read_timings_dt()
2044 of_property_read_u32(np, "gpmc,wr-data-mux-bus-ns", in gpmc_read_timings_dt()