Lines Matching +full:1000 +full:ns
298 rate /= 1000; in gpmc_get_fclk_period()
342 return (time_ns * 1000 + tick_ps - 1) / tick_ps; in gpmc_ns_to_clk_ticks()
363 return ticks * gpmc_get_clk_period(cs, cd) / 1000; in gpmc_clk_ticks_to_ns()
430 * tick format: gpmc,name = <value> /‍* x ns -- y ns; x ticks *‍/
431 * Where x ns -- y ns result in the same tick value.
463 /* DTS tick format for timings in ns */ in get_gpmc_timing_reg()
470 pr_info("gpmc,%s = <%u>; /* %u ns - %u ns; %i ticks%s*/\n", in get_gpmc_timing_reg()
547 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 0, 3, "cs-on-ns"); in gpmc_cs_show_timings()
548 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 8, 12, "cs-rd-off-ns"); in gpmc_cs_show_timings()
549 GPMC_GET_TICKS(GPMC_CS_CONFIG2, 16, 20, "cs-wr-off-ns"); in gpmc_cs_show_timings()
551 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 0, 3, "adv-on-ns"); in gpmc_cs_show_timings()
552 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 8, 12, "adv-rd-off-ns"); in gpmc_cs_show_timings()
553 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 16, 20, "adv-wr-off-ns"); in gpmc_cs_show_timings()
555 GPMC_GET_TICKS(GPMC_CS_CONFIG3, 4, 6, "adv-aad-mux-on-ns"); in gpmc_cs_show_timings()
557 "adv-aad-mux-rd-off-ns"); in gpmc_cs_show_timings()
559 "adv-aad-mux-wr-off-ns"); in gpmc_cs_show_timings()
562 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 0, 3, "oe-on-ns"); in gpmc_cs_show_timings()
563 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 8, 12, "oe-off-ns"); in gpmc_cs_show_timings()
565 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 4, 6, "oe-aad-mux-on-ns"); in gpmc_cs_show_timings()
566 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 13, 15, "oe-aad-mux-off-ns"); in gpmc_cs_show_timings()
568 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 16, 19, "we-on-ns"); in gpmc_cs_show_timings()
569 GPMC_GET_TICKS(GPMC_CS_CONFIG4, 24, 28, "we-off-ns"); in gpmc_cs_show_timings()
571 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 0, 4, "rd-cycle-ns"); in gpmc_cs_show_timings()
572 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 8, 12, "wr-cycle-ns"); in gpmc_cs_show_timings()
573 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 16, 20, "access-ns"); in gpmc_cs_show_timings()
575 GPMC_GET_TICKS(GPMC_CS_CONFIG5, 24, 27, "page-burst-access-ns"); in gpmc_cs_show_timings()
577 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 0, 3, "bus-turnaround-ns"); in gpmc_cs_show_timings()
578 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 8, 11, "cycle2cycle-delay-ns"); in gpmc_cs_show_timings()
582 "wait-monitoring-ns", GPMC_CD_CLK); in gpmc_cs_show_timings()
585 "clk-activation-ns", GPMC_CD_FCLK); in gpmc_cs_show_timings()
587 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 16, 19, "wr-data-mux-bus-ns"); in gpmc_cs_show_timings()
588 GPMC_GET_TICKS(GPMC_CS_CONFIG6, 24, 28, "wr-access-ns"); in gpmc_cs_show_timings()
607 * @time: Timing parameter in ns.
629 pr_err("%s: GPMC CS%d: %s %d ns, %d ticks > %d ticks\n", in set_gpmc_timing_reg()
637 pr_info("GPMC CS%d: %-17s: %3d ticks, %3lu ns (was %3i ticks) %3d ns\n", in set_gpmc_timing_reg()
638 cs, name, ticks, gpmc_get_clk_period(cs, cd) * ticks / 1000, in set_gpmc_timing_reg()
660 * @wait_monitoring: WAITMONITORINGTIME in ns.
731 pr_err("%s: waitmonitoringtime %3d ns too large for greatest gpmcfclkdivider.\n", in gpmc_cs_set_timings()
845 pr_info("GPMC CS%d CLK period is %lu ns (div %d)\n", in gpmc_cs_set_timings()
846 cs, (div * gpmc_get_fclk_period()) / 1000, div); in gpmc_cs_set_timings()
1249 dev_t.t_avdp_w = max(t_avdp, t_cer) * 1000; in gpmc_omap_onenand_calc_sync_timings()
1250 dev_t.t_wpl = t_wpl * 1000; in gpmc_omap_onenand_calc_sync_timings()
1251 dev_t.t_wph = t_wph * 1000; in gpmc_omap_onenand_calc_sync_timings()
1252 dev_t.t_aavdh = t_aavdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1260 dev_t.t_ces = t_ces * 1000; in gpmc_omap_onenand_calc_sync_timings()
1261 dev_t.t_avds = t_avds * 1000; in gpmc_omap_onenand_calc_sync_timings()
1262 dev_t.t_avdh = t_avdh * 1000; in gpmc_omap_onenand_calc_sync_timings()
1263 dev_t.t_ach = t_ach * 1000; in gpmc_omap_onenand_calc_sync_timings()
1265 dev_t.t_cez_r = t_cez * 1000; in gpmc_omap_onenand_calc_sync_timings()
1268 dev_t.t_rdyo = t_rdyo * 1000 + min_gpmc_clk_period; in gpmc_omap_onenand_calc_sync_timings()
1816 * has to be modified to handle timings in ps instead of ns
1820 t->cs_on /= 1000; in gpmc_convert_ps_to_ns()
1821 t->cs_rd_off /= 1000; in gpmc_convert_ps_to_ns()
1822 t->cs_wr_off /= 1000; in gpmc_convert_ps_to_ns()
1823 t->adv_on /= 1000; in gpmc_convert_ps_to_ns()
1824 t->adv_rd_off /= 1000; in gpmc_convert_ps_to_ns()
1825 t->adv_wr_off /= 1000; in gpmc_convert_ps_to_ns()
1826 t->we_on /= 1000; in gpmc_convert_ps_to_ns()
1827 t->we_off /= 1000; in gpmc_convert_ps_to_ns()
1828 t->oe_on /= 1000; in gpmc_convert_ps_to_ns()
1829 t->oe_off /= 1000; in gpmc_convert_ps_to_ns()
1830 t->page_burst_access /= 1000; in gpmc_convert_ps_to_ns()
1831 t->access /= 1000; in gpmc_convert_ps_to_ns()
1832 t->rd_cycle /= 1000; in gpmc_convert_ps_to_ns()
1833 t->wr_cycle /= 1000; in gpmc_convert_ps_to_ns()
1834 t->bus_turnaround /= 1000; in gpmc_convert_ps_to_ns()
1835 t->cycle2cycle_delay /= 1000; in gpmc_convert_ps_to_ns()
1836 t->wait_monitoring /= 1000; in gpmc_convert_ps_to_ns()
1837 t->clk_activation /= 1000; in gpmc_convert_ps_to_ns()
1838 t->wr_access /= 1000; in gpmc_convert_ps_to_ns()
1839 t->wr_data_mux_bus /= 1000; in gpmc_convert_ps_to_ns()
2097 of_property_read_u32(np, "gpmc,cs-on-ns", &gpmc_t->cs_on); in gpmc_read_timings_dt()
2098 of_property_read_u32(np, "gpmc,cs-rd-off-ns", &gpmc_t->cs_rd_off); in gpmc_read_timings_dt()
2099 of_property_read_u32(np, "gpmc,cs-wr-off-ns", &gpmc_t->cs_wr_off); in gpmc_read_timings_dt()
2102 of_property_read_u32(np, "gpmc,adv-on-ns", &gpmc_t->adv_on); in gpmc_read_timings_dt()
2103 of_property_read_u32(np, "gpmc,adv-rd-off-ns", &gpmc_t->adv_rd_off); in gpmc_read_timings_dt()
2104 of_property_read_u32(np, "gpmc,adv-wr-off-ns", &gpmc_t->adv_wr_off); in gpmc_read_timings_dt()
2105 of_property_read_u32(np, "gpmc,adv-aad-mux-on-ns", in gpmc_read_timings_dt()
2107 of_property_read_u32(np, "gpmc,adv-aad-mux-rd-off-ns", in gpmc_read_timings_dt()
2109 of_property_read_u32(np, "gpmc,adv-aad-mux-wr-off-ns", in gpmc_read_timings_dt()
2113 of_property_read_u32(np, "gpmc,we-on-ns", &gpmc_t->we_on); in gpmc_read_timings_dt()
2114 of_property_read_u32(np, "gpmc,we-off-ns", &gpmc_t->we_off); in gpmc_read_timings_dt()
2117 of_property_read_u32(np, "gpmc,oe-on-ns", &gpmc_t->oe_on); in gpmc_read_timings_dt()
2118 of_property_read_u32(np, "gpmc,oe-off-ns", &gpmc_t->oe_off); in gpmc_read_timings_dt()
2119 of_property_read_u32(np, "gpmc,oe-aad-mux-on-ns", in gpmc_read_timings_dt()
2121 of_property_read_u32(np, "gpmc,oe-aad-mux-off-ns", in gpmc_read_timings_dt()
2125 of_property_read_u32(np, "gpmc,page-burst-access-ns", in gpmc_read_timings_dt()
2127 of_property_read_u32(np, "gpmc,access-ns", &gpmc_t->access); in gpmc_read_timings_dt()
2128 of_property_read_u32(np, "gpmc,rd-cycle-ns", &gpmc_t->rd_cycle); in gpmc_read_timings_dt()
2129 of_property_read_u32(np, "gpmc,wr-cycle-ns", &gpmc_t->wr_cycle); in gpmc_read_timings_dt()
2130 of_property_read_u32(np, "gpmc,bus-turnaround-ns", in gpmc_read_timings_dt()
2132 of_property_read_u32(np, "gpmc,cycle2cycle-delay-ns", in gpmc_read_timings_dt()
2134 of_property_read_u32(np, "gpmc,wait-monitoring-ns", in gpmc_read_timings_dt()
2136 of_property_read_u32(np, "gpmc,clk-activation-ns", in gpmc_read_timings_dt()
2140 of_property_read_u32(np, "gpmc,wr-access-ns", &gpmc_t->wr_access); in gpmc_read_timings_dt()
2141 of_property_read_u32(np, "gpmc,wr-data-mux-bus-ns", in gpmc_read_timings_dt()