Searched refs:freq_khz (Results 1 – 2 of 2) sorted by relevance
758 void sdmmc_host_get_clk_dividers(uint32_t freq_khz, int *host_div, int *card_div) in sdmmc_host_get_clk_dividers() argument767 if (freq_khz >= SDMMC_FREQ_HIGHSPEED) { in sdmmc_host_get_clk_dividers()770 } else if (freq_khz == SDMMC_FREQ_DEFAULT) { in sdmmc_host_get_clk_dividers()773 } else if (freq_khz == SDMMC_FREQ_PROBING) { in sdmmc_host_get_clk_dividers()783 *host_div = (clk_src_freq_hz) / (freq_khz * 1000); in sdmmc_host_get_clk_dividers()786 *card_div = (clk_src_freq_hz / 2) / (2 * freq_khz * 1000); in sdmmc_host_get_clk_dividers()787 if (((clk_src_freq_hz / 2) % (2 * freq_khz * 1000)) > 0) { in sdmmc_host_get_clk_dividers()790 } else if ((clk_src_freq_hz % (freq_khz * 1000)) > 0) { in sdmmc_host_get_clk_dividers()807 int sdmmc_host_set_card_clk(sdmmc_dev_t *sdio_hw, int slot, uint32_t freq_khz) in sdmmc_host_set_card_clk() argument826 sdmmc_host_get_clk_dividers(freq_khz, &host_div, &card_div); in sdmmc_host_set_card_clk()[all …]
759 uint32_t freq_khz; in ms_period_capable() local767 freq_khz = counter_get_frequency(dev) / 1000; in ms_period_capable()768 max_time_ms = counter_get_top_value(dev) / freq_khz; in ms_period_capable()