Commit Graph

203 Commits

Author SHA1 Message Date
Song Ruo Jing
48233e0e7e refactor(ledc): remove deprecated LEDC_USE_RTC8M_CLK macro for v6.0 2025-07-30 20:01:47 +08:00
Song Ruo Jing
f61e780f60 refactor(clk): deprecate rtc_cal_sel_t enum 2025-07-30 20:01:46 +08:00
Song Ruo Jing
2b01b7c6f8 refactor(clk): add soc_clk_calibration_clk_src_t for all targets
Cleaned up RTC calibration clock selection code
2025-07-30 20:01:46 +08:00
Song Ruo Jing
07120c1d38 remove(clk): remove RTC_CLK_SRC_INT_RC32K option for C6 (v6.0) 2025-07-30 20:01:46 +08:00
Song Ruo Jing
3519fbd30b Merge branch 'feature/esp32h4_clock_support' into 'master'
feat(clk): Add basic clock support for esp32h4

Closes IDF-12285, IDF-12912, and IDF-12499

See merge request espressif/esp-idf!40166
2025-07-11 15:51:43 +08:00
Aditya Patwardhan
f8ebe0c936 Merge branch 'feat/enable_memory_region_protection_for_h21' into 'master'
feat(esp_hw_support): Enabled support for memory region protection for H21

Closes IDF-11917

See merge request espressif/esp-idf!39312
2025-07-10 17:13:36 +05:30
Song Ruo Jing
28df79aee8 feat(clk): Add basic clock support for esp32h4 2025-07-10 16:35:53 +08:00
morris
c4d7b1cfce refactor(uart)!: deprcated esp_rom_uart.h 2025-07-08 18:56:17 +08:00
nilesh.kale
d4167fea60 feat(esp_hw_support): Enabled support for memory region protection for H21
This commit enabled CPU region protection for ESP32H21.
This alos updated strture for ESP32C6 and ESP32H2.
2025-07-08 13:45:01 +08:00
C.S.M
4860379677 refactor(hw_support): Use esp_os_enter_critical instead of portENTER_CRITICAL_SAFE in esp_hw_support 2025-06-18 11:23:34 +08:00
Song Ruo Jing
6d293c8582 feat(clk): Add basic clock support for esp32h21 2025-06-16 15:05:32 +08:00
chaijie@espressif.com
24c46f1b89 refactor: move_ocode_to_pmu_init_c6_c5_c61 2025-05-20 11:08:35 +08:00
Jiang Jiang Jian
f387f14509 Merge branch 'feat/c6_v002_compatibility' into 'master'
hw_support: Update compatibility information and Kconfig option for c6 v0.2

See merge request espressif/esp-idf!35800
2025-04-30 16:54:12 +08:00
Xiao Xufeng
1a55ea7e2c feat(soc): add config option for c6 v0.2 2025-04-28 21:18:29 +08:00
sibeibei
26d6f0fc13 fix(pm): fix tbtt interrupt timing error when BLE RTC is configured to use MODEM_CLOCK_LPCLK_SRC_MAIN_XTAL on C6EC01 and later version 2025-04-27 16:59:11 +08:00
gaoxu
bf335a38f7 fix(adc): fix adc do not enable/disable regi2c registers 2025-04-25 14:39:01 +08:00
wuzhenghui
6c4447ae2e fix(esp_hw_support): fix wrong APB clock freq on retenion 2025-04-22 22:02:35 +08:00
Jiang Jiang Jian
b93ac4734b Merge branch 'bugfix/fix_modem_state_rx_bcn_failed' into 'master'
fix(wifi):fix modem state rx bcn failed when tbtt update, support modem state for coexist

Closes WIFI-6538, WIFIBUG-1052, WIFIBUG-128, WIFIBUG-1064, and WIFIBUG-1088

See merge request espressif/esp-idf!37238
2025-04-09 17:58:50 +08:00
Li Shuai
29a470b530 fix(esp_hw_support): fix modem wakeup req always high caused by pmu min slp cycle update 2025-04-09 15:26:57 +08:00
Li Shuai
059c50e8c8 change(esp_hw_support): add interface to calculate slow clock period by clock frequency 2025-04-09 11:41:58 +08:00
wuzhenghui
c84757d35e fix(esp_hw_support): fix current leakage if ext32k slow clock source not exists 2025-04-08 20:07:47 +08:00
Li Shuai
921cfa0a8e Merge branch 'feat/support_runtime_periphs_icg_ctrl_in_sleep' into 'master'
support runtime ICG control for peripherals to be used/kept during light sleep

Closes IDF-7595

See merge request espressif/esp-idf!37377
2025-03-20 13:03:48 +08:00
Li Shuai
157faa3344 feat(esp_hw_support): support runtime clock for peripherals to be ungated during sleep 2025-03-18 10:42:15 +08:00
gaoxu
675fe44f1e refactor(rng): rename/merge some adc_ll functions 2025-03-17 11:52:18 +08:00
gaoxu
e6c2259b44 refactor(rng): refactor to use hal/ll apis for c6 2025-03-17 11:42:29 +08:00
Song Ruo Jing
4244d8af54 fix(gpio): fix bad bit shift operation and OOB (h2) in io_mux.c 2025-03-06 20:35:48 +08:00
wuzhenghui
51205a8fd8 fix(esp_hw_support): fix esp32s2/esp32s3 RTC IOMUX clock management 2025-02-19 16:02:25 +08:00
Wu Zheng Hui
e95103aa56 Merge branch 'fix/add_sleep_duration_check_for_timer_wakeup' into 'master'
fix(esp_hw_support): add timer wakeup sleep duration check

Closes IDFGH-14485

See merge request espressif/esp-idf!36793
2025-02-13 10:42:58 +08:00
Wu Zheng Hui
254b3210bc Merge branch 'fix/fix_sleep_clock_wait_calculation' into 'master'
fix(esp_hw_support): fix lp/hp hw clock wait time calculation

Closes PM-39

See merge request espressif/esp-idf!34583
2025-02-12 11:30:43 +08:00
wuzhenghui
dc93eb533a fix(esp_hw_support): add timer wakeup sleep duration check
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-07 19:43:54 +08:00
Jiang Jiang Jian
65577b9caf Merge branch 'fix/fix_tsens_power_after_modem_wakeup' into 'master'
fix(esp_hw_support): fix tsensor power enable failed after modem state wakeup

See merge request espressif/esp-idf!35886
2025-01-08 10:38:52 +08:00
wuzhenghui
52d05f113e fix(esp_hw_support): fix lp/hp clock wait time calculation 2025-01-06 10:18:44 +08:00
wuzhenghui
c80c8354db change(esp_hw_support): switch to sleep_flags earlier to identify sleep state 2025-01-06 10:18:43 +08:00
wuzhenghui
9732af87f1 change(esp_hw_support): wait pll calibration done in regdma link instead of wait fixed value 2025-01-06 10:18:43 +08:00
Armando
784e87a9b2 feat(ocode): supported ocode on esp32c5 2025-01-02 10:12:47 +08:00
Wu Zheng Hui
12bb853c64 Merge branch 'feat/wait_pll_stable_after_sleep_wakeup' into 'master'
feat(esp_hw_support): wait pll stable after sleep wakeup

Closes PM-280

See merge request espressif/esp-idf!34313
2024-12-26 14:27:07 +08:00
wuzhenghui
0c0d8cb8e4 fix(esp_hw_support): fix modem power enable failed after modem state wakeup 2024-12-24 10:37:46 +08:00
Laukik Hase
f254f93594 feat(esp_tee): Support for ESP-TEE - esp_hw_support component 2024-12-02 12:20:03 +05:30
Song Ruo Jing
aa35807198 fix(clk): add an inevitable kconfig option to be selected to use rc32k 2024-11-26 21:20:32 +08:00
Song Ruo Jing
2cb35a2955 refactor(regi2c): ana i2c master clock is enabled per request 2024-11-04 12:37:17 +08:00
Song Ruo Jing
92ed77933b refactor(clk): deprecate SOC_RTC_FAST_CLK_SRC_XTAL_DIV 2024-11-04 12:37:17 +08:00
wuzhenghui
f4a6f1cc96 fix(esp_hw_support): fix hp clock wait time calculation after wait pll ready 2024-10-31 20:28:29 +08:00
wuzhenghui
58b1838946 feat(esp_hw_support): wait pll stable after sleep wakeup 2024-10-31 20:28:28 +08:00
wuzhenghui
3881d4031d fix(esp_hw_support): enable all supported slow clock at pmu_init 2024-10-24 14:22:51 +08:00
Song Ruo Jing
7c0b1dc98c fix(clk): rtc_clk_cpu_freq_set_xtal will always disable CPU's PLL
Align C6/H2/C5/C61 rtc_clk_cpu_freq_set_xtal behavior to other chips
For PMU supported chips, powering down CPU PLL in sleep will be done by PMU, not sleep code
2024-10-17 12:41:15 +08:00
Song Ruo Jing
67a87a5fcd fix(pmu): enable all func clock icg during retention
This should only increase a tiny amount of the power consumption in the retention process,
but save debug time since some module register read/write relies not only APB but also func clock.
2024-10-17 12:41:15 +08:00
wuzhenghui
04b2afed44 change(esp_hw_support): switch lp_cpu power mode with clock src to save lp_cpu working power 2024-09-26 11:23:06 +08:00
Marius Vikhammer
5486653a18 Merge branch 'contrib/github_pr_14422' into 'master'
feat(esp_system,ulp): LP core reserved mem optionally executable from HP core (GitHub PR)

Closes IDFGH-13533

See merge request espressif/esp-idf!33139
2024-09-12 09:10:22 +08:00
wuzhenghui
13e42707a0 feat(esp_hw_support): add clk tree source gate management api 2024-09-11 10:53:01 +08:00
wuzhenghui
05e74480f5 feat(esp_system): gate some clock by default to optmize esp32p4 active power 2024-09-11 10:53:00 +08:00