From: negativekelvin Date: Mon, 10 Sep 2018 11:49:22 +0000 (-0700) Subject: soc: fix CPU frequency not updated in rtc_clk_init X-Git-Tag: v3.2-beta1~156^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e2856b83d2356600137d68da0b9b0398ce609a1;p=esp-idf soc: fix CPU frequency not updated in rtc_clk_init Add missing call to rtc_clk_cpu_freq_set_config Merges https://github.com/espressif/esp-idf/pull/2398 --- diff --git a/components/soc/esp32/rtc_clk_init.c b/components/soc/esp32/rtc_clk_init.c index 6672f460b7..bfe5ec40b5 100644 --- a/components/soc/esp32/rtc_clk_init.c +++ b/components/soc/esp32/rtc_clk_init.c @@ -119,6 +119,7 @@ void rtc_clk_init(rtc_clk_config_t cfg) bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); assert(res && "invalid CPU frequency value"); + rtc_clk_cpu_freq_set_config(&new_config); /* Configure REF_TICK */ REG_WRITE(APB_CTRL_XTAL_TICK_CONF_REG, xtal_freq - 1);