Searched refs:xtal_freq (Results 1 – 6 of 6) sorted by relevance
81 rtc_xtal_freq_t xtal_freq = cfg.xtal_freq; in rtc_clk_init() local82 if (xtal_freq == RTC_XTAL_FREQ_AUTO) { in rtc_clk_init()85 xtal_freq = rtc_clk_xtal_freq_get(); in rtc_clk_init()88 xtal_freq = rtc_clk_xtal_freq_estimate(); in rtc_clk_init()89 if (xtal_freq == RTC_XTAL_FREQ_AUTO) { in rtc_clk_init()91 xtal_freq = RTC_XTAL_FREQ_26M; in rtc_clk_init()101 if (est_xtal_freq != xtal_freq) { in rtc_clk_init()103 xtal_freq, est_xtal_freq); in rtc_clk_init()107 rtc_clk_xtal_freq_update(xtal_freq); in rtc_clk_init()108 rtc_clk_apb_freq_update(xtal_freq * MHZ); in rtc_clk_init()[all …]
73 rtc_xtal_freq_t xtal_freq = rtc_clk_xtal_freq_get(); in rtc_clk_cal_internal() local74 if (xtal_freq == RTC_XTAL_FREQ_AUTO) { in rtc_clk_cal_internal()76 xtal_freq = RTC_XTAL_FREQ_40M; in rtc_clk_cal_internal()78 const uint32_t us_timer_max = TIMG_RTC_CALI_VALUE / (uint32_t) xtal_freq; in rtc_clk_cal_internal()122 rtc_xtal_freq_t xtal_freq = rtc_clk_xtal_freq_get(); in rtc_clk_cal() local124 uint64_t divider = ((uint64_t)xtal_freq) * slowclk_cycles; in rtc_clk_cal()
354 void rtc_clk_bbpll_configure(rtc_xtal_freq_t xtal_freq, int pll_freq) in rtc_clk_bbpll_configure() argument367 switch (xtal_freq) { in rtc_clk_bbpll_configure()408 switch (xtal_freq) { in rtc_clk_bbpll_configure()612 uint32_t xtal_freq = (uint32_t) rtc_clk_xtal_freq_get(); in rtc_clk_cpu_freq_mhz_to_config() local613 if (freq_mhz <= xtal_freq) { in rtc_clk_cpu_freq_mhz_to_config()614 divider = xtal_freq / freq_mhz; in rtc_clk_cpu_freq_mhz_to_config()615 real_freq_mhz = (xtal_freq + divider / 2) / divider; /* round */ in rtc_clk_cpu_freq_mhz_to_config()621 source_freq_mhz = xtal_freq; in rtc_clk_cpu_freq_mhz_to_config()653 rtc_xtal_freq_t xtal_freq = rtc_clk_xtal_freq_get(); in rtc_clk_cpu_freq_set_config() local656 rtc_clk_cpu_freq_to_xtal(xtal_freq, 1); in rtc_clk_cpu_freq_set_config()[all …]
138 rtc_xtal_freq_t xtal_freq : 8; //!< Main XTAL frequency member151 .xtal_freq = RTC_XTAL_FREQ_AUTO, \195 void rtc_clk_xtal_freq_update(rtc_xtal_freq_t xtal_freq);
134 rtc_xtal_freq_t xtal_freq = rtc_clk_xtal_freq_get(); in esp_clk_init() local135 if (xtal_freq == RTC_XTAL_FREQ_AUTO) { in esp_clk_init()
64 clk_cfg.xtal_freq = CONFIG_ESP32_XTAL_FREQ; in bootloader_clock_configure()