Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/dai/nxp/esai/
Desai.c32 static int esai_get_clock_rate_config(uint32_t extal_rate, uint32_t hclk_rate, in esai_get_clock_rate_config() argument
45 if (!extal_rate || !hclk_rate || !bclk_rate) { in esai_get_clock_rate_config()
50 if (hclk_rate > extal_rate) { in esai_get_clock_rate_config()
55 if (bclk_rate > extal_rate) { in esai_get_clock_rate_config()
60 if (DIV_ROUND_UP(extal_rate, bclk_rate) > 2 * 8 * 256 * 16) { in esai_get_clock_rate_config()
62 bclk_rate, extal_rate); in esai_get_clock_rate_config()
67 if (DIV_ROUND_UP(extal_rate / 2, bclk_rate) == 1) { in esai_get_clock_rate_config()
78 if (hclk_rate > extal_rate / 2 && hclk_rate < extal_rate) { in esai_get_clock_rate_config()
85 if (extal_rate == hclk_rate) { in esai_get_clock_rate_config()
90 extal_rate /= 2; in esai_get_clock_rate_config()
[all …]