Searched refs:ns_to_clk (Results 1 – 1 of 1) sorted by relevance
171 static u32 ns_to_clk(u64 ns, u32 clk_mhz) in ns_to_clk() function206 t_setup = ns_to_clk(250, clk_mhz); in axxia_i2c_init()211 t_setup = ns_to_clk(100, clk_mhz); in axxia_i2c_init()221 writel(ns_to_clk(300, clk_mhz), idev->base + SDA_HOLD_TIME); in axxia_i2c_init()223 writel(ns_to_clk(50, clk_mhz), idev->base + SPIKE_FLTR_LEN); in axxia_i2c_init()226 tmo_clk = ns_to_clk(SCL_WAIT_TIMEOUT_NS, clk_mhz); in axxia_i2c_init()