Searched refs:ns_to_clk (Results 1 – 1 of 1) sorted by relevance
129 static u32 ns_to_clk(u64 ns, u32 clk_mhz) in ns_to_clk() function164 t_setup = ns_to_clk(250, clk_mhz); in axxia_i2c_init()169 t_setup = ns_to_clk(100, clk_mhz); in axxia_i2c_init()179 writel(ns_to_clk(300, clk_mhz), idev->base + SDA_HOLD_TIME); in axxia_i2c_init()181 writel(ns_to_clk(50, clk_mhz), idev->base + SPIKE_FLTR_LEN); in axxia_i2c_init()184 tmo_clk = ns_to_clk(SCL_WAIT_TIMEOUT_NS, clk_mhz); in axxia_i2c_init()