Home
last modified time | relevance | path

Searched refs:clk_ns (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/drivers/mmc/
H A Dmtk-sd.c663 u32 timeout, clk_ns; in msdc_set_timeout() local
672 clk_ns = 1000000000UL / host->sclk; in msdc_set_timeout()
673 timeout = (ns + clk_ns - 1) / clk_ns + clks; in msdc_set_timeout()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-mt65xx.c704 unsigned int sda_max, sda_min, clk_ns, max_sta_cnt = 0x3f; in mtk_i2c_check_ac_timing() local
717 clk_ns = 1000000000 / clk_src; in mtk_i2c_check_ac_timing()
719 clk_ns = sample_ns / 2; in mtk_i2c_check_ac_timing()
722 i2c->timing_info.scl_int_delay_ns, clk_ns); in mtk_i2c_check_ac_timing()
/openbmc/linux/drivers/mmc/host/
H A Dmtk-sd.c792 u64 timeout, clk_ns; in msdc_timeout_cal() local
798 clk_ns = 1000000000ULL; in msdc_timeout_cal()
799 do_div(clk_ns, mmc->actual_clock); in msdc_timeout_cal()
800 timeout = ns + clk_ns - 1; in msdc_timeout_cal()
801 do_div(timeout, clk_ns); in msdc_timeout_cal()