Lines Matching refs:max_freq_mhz
198 static void esp_pm_light_sleep_default_params_config(int min_freq_mhz, int max_freq_mhz);
241 int max_freq_mhz = config->max_freq_mhz; in esp_pm_configure() local
243 if (min_freq_mhz > max_freq_mhz) { in esp_pm_configure()
259 if (!rtc_clk_cpu_freq_mhz_to_config(max_freq_mhz, &freq_config)) { in esp_pm_configure()
260 ESP_LOGW(TAG, "invalid max_freq_mhz value (%d)", max_freq_mhz); in esp_pm_configure()
265 int apb_max_freq = max_freq_mhz; /* CPU frequency in APB_MAX mode */ in esp_pm_configure()
266 if (max_freq_mhz == 240) { in esp_pm_configure()
271 } else if (max_freq_mhz == 160 || max_freq_mhz == 80) { in esp_pm_configure()
278 int apb_max_freq = MIN(max_freq_mhz, 80); /* CPU frequency in APB_MAX mode */ in esp_pm_configure()
285 max_freq_mhz, in esp_pm_configure()
293 res = rtc_clk_cpu_freq_mhz_to_config(max_freq_mhz, &s_cpu_freq_by_mode[PM_MODE_CPU_MAX]); in esp_pm_configure()
317 esp_pm_light_sleep_default_params_config(min_freq_mhz, max_freq_mhz); in esp_pm_configure()
344 config->max_freq_mhz = s_cpu_freq_by_mode[PM_MODE_CPU_MAX].freq_mhz; in esp_pm_get_configuration()
777 .max_freq_mhz = DEFAULT_CPU_FREQ,
896 static void esp_pm_light_sleep_default_params_config(int min_freq_mhz, int max_freq_mhz) argument
899 (*s_light_sleep_default_params_config_cb)(min_freq_mhz, max_freq_mhz);