Home
last modified time | relevance | path

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

/device/soc/esp/esp32/components/esp_hw_support/port/esp32/
Drtc_clk_init.c81 rtc_xtal_freq_t xtal_freq = cfg.xtal_freq; in rtc_clk_init() local
82 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 …]
Drtc_time.c73 rtc_xtal_freq_t xtal_freq = rtc_clk_xtal_freq_get(); in rtc_clk_cal_internal() local
74 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() local
124 uint64_t divider = ((uint64_t)xtal_freq) * slowclk_cycles; in rtc_clk_cal()
Drtc_clk.c354 void rtc_clk_bbpll_configure(rtc_xtal_freq_t xtal_freq, int pll_freq) in rtc_clk_bbpll_configure() argument
367 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() local
613 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() local
656 rtc_clk_cpu_freq_to_xtal(xtal_freq, 1); in rtc_clk_cpu_freq_set_config()
[all …]
/device/soc/esp/esp32/components/soc/esp32/include/soc/
Drtc.h138 rtc_xtal_freq_t xtal_freq : 8; //!< Main XTAL frequency member
151 .xtal_freq = RTC_XTAL_FREQ_AUTO, \
195 void rtc_clk_xtal_freq_update(rtc_xtal_freq_t xtal_freq);
/device/soc/esp/esp32/components/esp_system/port/soc/esp32/
Dclk.c134 rtc_xtal_freq_t xtal_freq = rtc_clk_xtal_freq_get(); in esp_clk_init() local
135 if (xtal_freq == RTC_XTAL_FREQ_AUTO) { in esp_clk_init()
/device/soc/esp/esp32/components/bootloader_support/src/
Dbootloader_clock_init.c64 clk_cfg.xtal_freq = CONFIG_ESP32_XTAL_FREQ; in bootloader_clock_configure()