Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sdhc/
Dsdhc_esp32.c758 void sdmmc_host_get_clk_dividers(uint32_t freq_khz, int *host_div, int *card_div) in sdmmc_host_get_clk_dividers() argument
769 *card_div = 0; in sdmmc_host_get_clk_dividers()
772 *card_div = 0; in sdmmc_host_get_clk_dividers()
775 *card_div = 20; in sdmmc_host_get_clk_dividers()
786 *card_div = (clk_src_freq_hz / 2) / (2 * freq_khz * 1000); in sdmmc_host_get_clk_dividers()
788 (*card_div)++; in sdmmc_host_get_clk_dividers()
796 static int sdmmc_host_calc_freq(const int host_div, const int card_div) in sdmmc_host_calc_freq() argument
804 return clk_src_freq_hz / host_div / ((card_div == 0) ? 1 : card_div * 2) / 1000; in sdmmc_host_calc_freq()
824 int card_div = 0; /* 1/2 of card clock divider (sdio_hw->clkdiv) */ in sdmmc_host_set_card_clk() local
826 sdmmc_host_get_clk_dividers(freq_khz, &host_div, &card_div); in sdmmc_host_set_card_clk()
[all …]