Home
last modified time | relevance | path

Searched refs:cpu_freq_mhz (Results 1 – 25 of 28) sorted by relevance

12

/hal_espressif-3.7.0/components/bootloader_support/src/
Dbootloader_clock_init.c37 int cpu_freq_mhz = CPU_CLK_FREQ_MHZ_BTLD; in bootloader_clock_configure() local
47 cpu_freq_mhz = 240; in bootloader_clock_configure()
54 clk_cfg.cpu_freq_mhz = cpu_freq_mhz; in bootloader_clock_configure()
/hal_espressif-3.7.0/components/hal/esp32s3/
Dclk_tree_hal.c38 uint32_t cpu_freq_mhz = clk_ll_cpu_get_freq_mhz_from_pll(); in clk_hal_cpu_get_freq_hz() local
39 if (pll_freq_mhz == CLK_LL_PLL_320M_FREQ_MHZ && cpu_freq_mhz == CLK_LL_PLL_240M_FREQ_MHZ) { in clk_hal_cpu_get_freq_hz()
43 return cpu_freq_mhz * MHZ; in clk_hal_cpu_get_freq_hz()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32s3/
Drtc_clk.c186 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
191 if (cpu_freq_mhz != 240) { in rtc_clk_cpu_freq_to_pll_mhz()
207 int pd_slave = cpu_freq_mhz / 80; in rtc_clk_cpu_freq_to_pll_mhz()
210 if (cpu_freq_mhz > cur_config.freq_mhz) { in rtc_clk_cpu_freq_to_pll_mhz()
212 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
217 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
219 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
224 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
Drtc_clk_init.c56 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
64 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
/hal_espressif-3.7.0/components/hal/esp32s2/
Dclk_tree_hal.c39 uint32_t cpu_freq_mhz = clk_ll_cpu_get_freq_mhz_from_pll(); in clk_hal_cpu_get_freq_hz() local
40 if (pll_freq_mhz == CLK_LL_PLL_320M_FREQ_MHZ && cpu_freq_mhz == CLK_LL_PLL_240M_FREQ_MHZ) { in clk_hal_cpu_get_freq_hz()
44 return cpu_freq_mhz * MHZ; in clk_hal_cpu_get_freq_hz()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32c6/
Drtc_clk.c187 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
189 clk_ll_cpu_set_hs_divider(CLK_LL_PLL_480M_FREQ_MHZ / cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
191 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
331 void rtc_clk_cpu_freq_to_pll_and_pll_lock_release(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_and_pll_lock_release() argument
333 rtc_clk_cpu_freq_to_pll_mhz(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_and_pll_lock_release()
Drtc_clk_init.c90 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
98 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32c2/
Drtc_clk_init.c58 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
66 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
Drtc_clk.c142 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
144 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
149 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32h2/
Drtc_clk_init.c52 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
60 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
Drtc_clk.c203 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
206 uint32_t cpu_divider = CLK_LL_PLL_96M_FREQ_MHZ / cpu_freq_mhz; in rtc_clk_cpu_freq_to_pll_mhz()
214 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
222 static void rtc_clk_cpu_freq_to_flash_pll(uint32_t cpu_freq_mhz, uint32_t cpu_divider) in rtc_clk_cpu_freq_to_flash_pll() argument
231 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_flash_pll()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32c3/
Drtc_clk_init.c59 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
67 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
Drtc_clk.c166 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
168 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
172 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32s2/
Drtc_clk_init.c58 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
66 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
Drtc_clk.c257 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
259 int dbias = (cpu_freq_mhz == 240) ? DIG_DBIAS_240M : DIG_DBIAS_80M_160M; in rtc_clk_cpu_freq_to_pll_mhz()
260 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
265 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
/hal_espressif-3.7.0/components/esp_hw_support/port/esp32/
Drtc_clk.c33 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz);
386 static void rtc_clk_cpu_freq_to_pll_mhz(int cpu_freq_mhz) in rtc_clk_cpu_freq_to_pll_mhz() argument
388 int dbias = (cpu_freq_mhz == 240) ? DIG_DBIAS_240M : DIG_DBIAS_80M_160M; in rtc_clk_cpu_freq_to_pll_mhz()
389 clk_ll_cpu_set_freq_mhz_from_pll(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
392 clk_ll_ref_tick_set_divider(SOC_CPU_CLK_SRC_PLL, cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
396 esp_rom_set_cpu_ticks_per_us(cpu_freq_mhz); in rtc_clk_cpu_freq_to_pll_mhz()
Drtc_clk_init.c110 bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); in rtc_clk_init()
124 esp_cpu_set_cycle_count( (uint64_t)esp_cpu_get_cycle_count() * cfg.cpu_freq_mhz / freq_before ); in rtc_clk_init()
/hal_espressif-3.7.0/components/soc/esp32c6/include/soc/
Drtc.h173 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member
188 .cpu_freq_mhz = 80, \
385 void rtc_clk_cpu_freq_to_pll_and_pll_lock_release(int cpu_freq_mhz);
/hal_espressif-3.7.0/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/
Dtest_dport.c127 void run_tasks_with_change_freq_cpu(int cpu_freq_mhz) in run_tasks_with_change_freq_cpu() argument
138 if (cpu_freq_mhz != old_config.freq_mhz) { in run_tasks_with_change_freq_cpu()
140 bool res = rtc_clk_cpu_freq_mhz_to_config(cpu_freq_mhz, &new_config); in run_tasks_with_change_freq_cpu()
151 _xt_tick_divisor = cpu_freq_mhz * 1000000 / XT_TICK_PER_SEC; in run_tasks_with_change_freq_cpu()
154 printf("CPU_FREQ switched to %d MHz\n", cpu_freq_mhz); in run_tasks_with_change_freq_cpu()
/hal_espressif-3.7.0/components/soc/esp32h2/include/soc/
Drtc.h177 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member
192 .cpu_freq_mhz = 96, \
/hal_espressif-3.7.0/components/hal/esp32/include/hal/
Dclk_tree_ll.h668 …ays_inline)) void clk_ll_ref_tick_set_divider(soc_cpu_clk_src_t cpu_clk_src, uint32_t cpu_freq_mhz) in clk_ll_ref_tick_set_divider() argument
673 apb_freq_mhz = cpu_freq_mhz; in clk_ll_ref_tick_set_divider()
681 apb_freq_mhz = cpu_freq_mhz; in clk_ll_ref_tick_set_divider()
685 apb_freq_mhz = cpu_freq_mhz >> 1; in clk_ll_ref_tick_set_divider()
/hal_espressif-3.7.0/components/bt/include/esp32c6/include/
Desp_bt.h204 uint8_t cpu_freq_mhz; member
259 .cpu_freq_mhz = CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ, \
/hal_espressif-3.7.0/components/bt/include/esp32h2/include/
Desp_bt.h209 uint8_t cpu_freq_mhz; member
263 .cpu_freq_mhz = CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ, \
/hal_espressif-3.7.0/components/soc/esp32/include/soc/
Drtc.h112 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member
125 .cpu_freq_mhz = 80, \
/hal_espressif-3.7.0/components/soc/esp32c2/include/soc/
Drtc.h181 uint32_t cpu_freq_mhz : 10; //!< CPU frequency to set, in MHz member
195 .cpu_freq_mhz = 80, \

12