From 988be6946681b592e3e51bb652b91bce54d7ba34 Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Wed, 30 Sep 2020 15:24:04 +0800 Subject: [PATCH 1/4] esp_hw_support: create component --- .gitlab/CODEOWNERS | 1 + components/bootloader/subproject/CMakeLists.txt | 4 ++-- components/bootloader/subproject/Makefile | 2 +- components/esp_common/CMakeLists.txt | 2 +- components/esp_hw_support/CMakeLists.txt | 4 ++++ components/esp_hw_support/README.md | 7 +++++++ components/{soc/src => esp_hw_support}/compare_set.c | 0 components/esp_hw_support/component.mk | 2 ++ components/{soc/src => esp_hw_support}/cpu_util.c | 0 .../{soc => esp_hw_support}/include/soc/compare_set.h | 7 +++++++ components/{soc => esp_hw_support}/include/soc/cpu.h | 0 .../{soc => esp_hw_support}/include/soc/spinlock.h | 7 +++++++ components/soc/CMakeLists.txt | 9 +++------ components/soc/{src => }/memory_layout_utils.c | 0 docs/Doxyfile | 10 +++++----- docs/en/api-guides/freertos-smp.rst | 2 +- tools/cmake/build.cmake | 3 ++- 17 files changed, 43 insertions(+), 17 deletions(-) create mode 100644 components/esp_hw_support/CMakeLists.txt create mode 100644 components/esp_hw_support/README.md rename components/{soc/src => esp_hw_support}/compare_set.c (100%) create mode 100644 components/esp_hw_support/component.mk rename components/{soc/src => esp_hw_support}/cpu_util.c (100%) rename components/{soc => esp_hw_support}/include/soc/compare_set.h (96%) rename components/{soc => esp_hw_support}/include/soc/cpu.h (100%) rename components/{soc => esp_hw_support}/include/soc/spinlock.h (98%) rename components/soc/{src => }/memory_layout_utils.c (100%) diff --git a/.gitlab/CODEOWNERS b/.gitlab/CODEOWNERS index 75b2397250..0b9baedb14 100644 --- a/.gitlab/CODEOWNERS +++ b/.gitlab/CODEOWNERS @@ -80,6 +80,7 @@ /components/esp_http_server/ @esp-idf-codeowners/app-utilities /components/esp_https_ota/ @esp-idf-codeowners/app-utilities /components/esp_https_server/ @esp-idf-codeowners/app-utilities +/components/esp_hw_support/ @esp-idf-codeowners/system /components/esp_ipc/ @esp-idf-codeowners/system /components/esp_local_ctrl/ @esp-idf-codeowners/app-utilities /components/esp_netif/ @esp-idf-codeowners/network diff --git a/components/bootloader/subproject/CMakeLists.txt b/components/bootloader/subproject/CMakeLists.txt index b4a04c3768..9397c0db52 100644 --- a/components/bootloader/subproject/CMakeLists.txt +++ b/components/bootloader/subproject/CMakeLists.txt @@ -15,10 +15,10 @@ if(NOT IDF_TARGET) "in by the parent build process.") endif() -set(COMPONENTS bootloader esptool_py partition_table soc bootloader_support log spi_flash micro-ecc main efuse) +set(COMPONENTS bootloader esptool_py esp_hw_support hal partition_table soc bootloader_support log spi_flash micro-ecc main efuse) set(BOOTLOADER_BUILD 1) include("${IDF_PATH}/tools/cmake/project.cmake") -set(common_req log esp_rom esp_common xtensa) +set(common_req log esp_rom esp_common esp_hw_support hal xtensa) if(LEGACY_INCLUDE_COMMON_HEADERS) list(APPEND common_req soc hal) endif() diff --git a/components/bootloader/subproject/Makefile b/components/bootloader/subproject/Makefile index 0a72a6fd06..8547e3ecb0 100644 --- a/components/bootloader/subproject/Makefile +++ b/components/bootloader/subproject/Makefile @@ -8,7 +8,7 @@ endif PROJECT_NAME := bootloader -COMPONENTS := esptool_py bootloader_support log spi_flash micro-ecc soc main efuse esp_rom hal +COMPONENTS := esp_hw_support esptool_py bootloader_support log spi_flash micro-ecc soc main efuse esp_rom hal # Clear C and CXX from top level project CFLAGS = diff --git a/components/esp_common/CMakeLists.txt b/components/esp_common/CMakeLists.txt index 2c8891ab6a..991dc10579 100644 --- a/components/esp_common/CMakeLists.txt +++ b/components/esp_common/CMakeLists.txt @@ -25,7 +25,7 @@ else() # Note: esp_ipc, esp_pm added as a public requirement to keep compatibility as to be located here. idf_component_register(SRCS "${srcs}" INCLUDE_DIRS include - REQUIRES ${target} espcoredump esp_timer esp_ipc esp_pm + REQUIRES ${target} espcoredump esp_timer esp_ipc esp_pm esp_hw_support PRIV_REQUIRES soc LDFRAGMENTS "linker.lf") diff --git a/components/esp_hw_support/CMakeLists.txt b/components/esp_hw_support/CMakeLists.txt new file mode 100644 index 0000000000..8145907364 --- /dev/null +++ b/components/esp_hw_support/CMakeLists.txt @@ -0,0 +1,4 @@ +idf_component_register(SRCS "compare_set.c" + "cpu_util.c" + INCLUDE_DIRS include + REQUIRES soc) diff --git a/components/esp_hw_support/README.md b/components/esp_hw_support/README.md new file mode 100644 index 0000000000..e75de016c4 --- /dev/null +++ b/components/esp_hw_support/README.md @@ -0,0 +1,7 @@ +## `esp_hw_support` ## + +This component contains hardware-related operations for supporting the system. These operations +are one level above that of `hal` in that these(1) use system services such as memory allocation, logging, scheduling +or (2) may be multi-step operations involving/affecting multiple parts of the SoC. + +Implementations that don't fit other components cleanly, but are not worth creating a new component for (yet) may also be placed here as long as they don't pull dependencies other than the core system components. \ No newline at end of file diff --git a/components/soc/src/compare_set.c b/components/esp_hw_support/compare_set.c similarity index 100% rename from components/soc/src/compare_set.c rename to components/esp_hw_support/compare_set.c diff --git a/components/esp_hw_support/component.mk b/components/esp_hw_support/component.mk new file mode 100644 index 0000000000..3734fe3290 --- /dev/null +++ b/components/esp_hw_support/component.mk @@ -0,0 +1,2 @@ +COMPONENT_SRCDIRS := . +COMPONENT_ADD_INCLUDEDIRS := . include diff --git a/components/soc/src/cpu_util.c b/components/esp_hw_support/cpu_util.c similarity index 100% rename from components/soc/src/cpu_util.c rename to components/esp_hw_support/cpu_util.c diff --git a/components/soc/include/soc/compare_set.h b/components/esp_hw_support/include/soc/compare_set.h similarity index 96% rename from components/soc/include/soc/compare_set.h rename to components/esp_hw_support/include/soc/compare_set.h index 626752ad51..b748fa9ea8 100644 --- a/components/soc/include/soc/compare_set.h +++ b/components/esp_hw_support/include/soc/compare_set.h @@ -21,6 +21,9 @@ #include "soc/soc_memory_layout.h" #include "xtensa/xtruntime.h" +#ifdef __cplusplus +extern "C" { +#endif static inline void __attribute__((always_inline)) compare_and_set_native(volatile uint32_t *addr, uint32_t compare, uint32_t *set) { @@ -53,4 +56,8 @@ static inline void __attribute__((always_inline)) compare_and_set_native(volatil void compare_and_set_extram(volatile uint32_t *addr, uint32_t compare, uint32_t *set); +#ifdef __cplusplus +} +#endif + #endif \ No newline at end of file diff --git a/components/soc/include/soc/cpu.h b/components/esp_hw_support/include/soc/cpu.h similarity index 100% rename from components/soc/include/soc/cpu.h rename to components/esp_hw_support/include/soc/cpu.h diff --git a/components/soc/include/soc/spinlock.h b/components/esp_hw_support/include/soc/spinlock.h similarity index 98% rename from components/soc/include/soc/spinlock.h rename to components/esp_hw_support/include/soc/spinlock.h index aace1bbf25..286858315b 100644 --- a/components/soc/include/soc/spinlock.h +++ b/components/esp_hw_support/include/soc/spinlock.h @@ -21,6 +21,9 @@ #include "soc/compare_set.h" #include "xtensa/xtruntime.h" +#ifdef __cplusplus +extern "C" { +#endif #ifdef CONFIG_SPIRAM_WORKAROUND_NEED_VOLATILE_SPINLOCK #define NEED_VOLATILE_MUX volatile @@ -154,5 +157,9 @@ static inline void __attribute__((always_inline)) spinlock_release(spinlock_t *l #endif } +#ifdef __cplusplus +} +#endif + #endif diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index e088e3bd63..67ef7bc045 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -1,13 +1,10 @@ idf_build_get_property(target IDF_TARGET) -idf_component_register(SRCS "src/cpu_util.c" - "src/memory_layout_utils.c" - "src/lldesc.c" +idf_component_register(SRCS "src/lldesc.c" "src/soc_include_legacy_warn.c" - "src/compare_set.c" - REQUIRES hal #cpu.h directly includes HAL header + "src/memory_layout_utils.c" INCLUDE_DIRS include - PRIV_REQUIRES ${target} + PRIV_REQUIRES hal # [refactor-todo] soc dependency on hal for rtc sources LDFRAGMENTS linker.lf) add_subdirectory(soc) diff --git a/components/soc/src/memory_layout_utils.c b/components/soc/memory_layout_utils.c similarity index 100% rename from components/soc/src/memory_layout_utils.c rename to components/soc/memory_layout_utils.c diff --git a/docs/Doxyfile b/docs/Doxyfile index 242214b14b..7345aa0c12 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -138,11 +138,11 @@ INPUT = \ $(IDF_PATH)/components/hal/include/hal/adc_types.h \ $(IDF_PATH)/components/hal/include/hal/twai_types.h \ $(IDF_PATH)/components/hal/include/hal/touch_sensor_types.h \ - $(IDF_PATH)/components/soc/soc/esp32/include/soc/adc_channel.h \ - $(IDF_PATH)/components/soc/soc/esp32/include/soc/dac_channel.h \ - $(IDF_PATH)/components/soc/soc/esp32/include/soc/touch_sensor_channel.h \ - $(IDF_PATH)/components/soc/soc/esp32/include/soc/uart_channel.h \ - $(IDF_PATH)/components/soc/soc/esp32/include/soc/rtc_io_channel.h \ + $(IDF_PATH)/components/soc/esp32/include/soc/adc_channel.h \ + $(IDF_PATH)/components/soc/esp32/include/soc/dac_channel.h \ + $(IDF_PATH)/components/soc/esp32/include/soc/touch_sensor_channel.h \ + $(IDF_PATH)/components/soc/esp32/include/soc/uart_channel.h \ + $(IDF_PATH)/components/soc/esp32/include/soc/rtc_io_channel.h \ ## esp_netif - API Reference $(IDF_PATH)/components/esp_netif/include/esp_netif.h \ $(IDF_PATH)/components/esp_netif/include/esp_netif_net_stack.h \ diff --git a/docs/en/api-guides/freertos-smp.rst b/docs/en/api-guides/freertos-smp.rst index 0d41d4061a..304fce38da 100644 --- a/docs/en/api-guides/freertos-smp.rst +++ b/docs/en/api-guides/freertos-smp.rst @@ -327,7 +327,7 @@ The ESP-IDF FreeRTOS critical section functions have been modified as follows… section functions (``port*_CRITICAL`` in Non-ISR and ``port*_CRITICAL_ISR`` in ISR) in order to be in compliance with Vanilla FreeRTOS. -For more details see :component_file:`soc/include/soc/spinlock.h` +For more details see :component_file:`esp_hw_support/include/soc/spinlock.h` and :component_file:`freertos/tasks.c` It should be noted that when modifying vanilla FreeRTOS code to be ESP-IDF diff --git a/tools/cmake/build.cmake b/tools/cmake/build.cmake index 707a2e6a87..7560b0267b 100644 --- a/tools/cmake/build.cmake +++ b/tools/cmake/build.cmake @@ -154,7 +154,8 @@ function(__build_init idf_path) # Set components required by all other components in the build # # - lwip is here so that #include works without any special provisions - set(requires_common cxx newlib freertos heap log lwip soc hal esp_rom esp_common esp_system xtensa) + # - esp_hw_support is here for backward compatibility + set(requires_common cxx newlib freertos esp_hw_support heap log lwip soc hal esp_rom esp_common esp_system xtensa) idf_build_set_property(__COMPONENT_REQUIRES_COMMON "${requires_common}") __build_get_idf_git_revision() From 79887fdc6c3d9a2e509cc189bb43c998d3f0f4ee Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Fri, 25 Sep 2020 13:57:52 +0800 Subject: [PATCH 2/4] soc: descriptive part occupy whole component --- .../fatfs/test_fatfs_host/Makefile.files | 3 +- .../esp32s2/include/hal/memprot_peri_ll.h | 0 components/{soc => hal}/include/hal/sha_hal.h | 0 components/lwip/test_afl_host/Makefile | 2 +- components/mdns/test_afl_fuzz_host/Makefile | 4 +- components/soc/CMakeLists.txt | 11 +- components/soc/README.md | 27 +-- components/soc/component.mk | 14 +- components/soc/{src => }/esp32/CMakeLists.txt | 16 +- components/soc/{soc => }/esp32/adc_periph.c | 0 components/soc/{soc => }/esp32/dac_periph.c | 0 components/soc/{soc => }/esp32/gpio_periph.c | 0 components/soc/{soc => }/esp32/i2c_periph.c | 0 components/soc/{soc => }/esp32/i2s_periph.c | 0 .../{soc => }/esp32/include/soc/adc_channel.h | 0 .../esp32/include/soc/apb_ctrl_reg.h | 0 .../esp32/include/soc/apb_ctrl_struct.h | 0 .../soc/{soc => }/esp32/include/soc/bb_reg.h | 0 .../{soc => }/esp32/include/soc/boot_mode.h | 0 .../{soc => }/esp32/include/soc/can_periph.h | 0 .../{soc => }/esp32/include/soc/can_struct.h | 0 .../esp32/include/soc/clkout_channel.h | 0 .../{soc => }/esp32/include/soc/dac_channel.h | 0 .../esp32/include/soc/dport_access.h | 0 .../{soc => }/esp32/include/soc/dport_reg.h | 0 .../{soc => }/esp32/include/soc/efuse_reg.h | 0 .../esp32/include/soc/emac_dma_struct.h | 0 .../esp32/include/soc/emac_ext_struct.h | 0 .../esp32/include/soc/emac_mac_struct.h | 0 .../soc/{soc => }/esp32/include/soc/fe_reg.h | 0 .../esp32/include/soc/frc_timer_reg.h | 0 .../{soc => }/esp32/include/soc/gpio_pins.h | 0 .../{soc => }/esp32/include/soc/gpio_reg.h | 0 .../{soc => }/esp32/include/soc/gpio_sd_reg.h | 0 .../esp32/include/soc/gpio_sd_struct.h | 0 .../esp32/include/soc/gpio_sig_map.h | 0 .../{soc => }/esp32/include/soc/gpio_struct.h | 0 .../{soc => }/esp32/include/soc/hinf_reg.h | 0 .../{soc => }/esp32/include/soc/hinf_struct.h | 0 .../{soc => }/esp32/include/soc/host_reg.h | 0 .../{soc => }/esp32/include/soc/host_struct.h | 0 .../esp32/include/soc/hwcrypto_reg.h | 0 .../soc/{soc => }/esp32/include/soc/i2c_reg.h | 0 .../{soc => }/esp32/include/soc/i2c_struct.h | 0 .../soc/{soc => }/esp32/include/soc/i2s_reg.h | 0 .../{soc => }/esp32/include/soc/i2s_struct.h | 0 .../{soc => }/esp32/include/soc/io_mux_reg.h | 0 .../{soc => }/esp32/include/soc/ledc_reg.h | 0 .../{soc => }/esp32/include/soc/ledc_struct.h | 0 .../{soc => }/esp32/include/soc/mcpwm_reg.h | 0 .../esp32/include/soc/mcpwm_struct.h | 0 .../soc/{soc => }/esp32/include/soc/nrx_reg.h | 0 .../{soc => }/esp32/include/soc/pcnt_reg.h | 0 .../{soc => }/esp32/include/soc/pcnt_struct.h | 0 .../{soc => }/esp32/include/soc/periph_defs.h | 0 .../soc/{soc => }/esp32/include/soc/pid.h | 0 .../soc/{soc => }/esp32/include/soc/rmt_reg.h | 0 .../{soc => }/esp32/include/soc/rmt_struct.h | 0 .../{soc => }/esp32/include/soc/rsa_caps.h | 0 .../soc/{soc => }/esp32/include/soc/rtc.h | 0 .../esp32/include/soc/rtc_cntl_reg.h | 0 .../esp32/include/soc/rtc_cntl_struct.h | 0 .../{soc => }/esp32/include/soc/rtc_i2c_reg.h | 0 .../esp32/include/soc/rtc_io_channel.h | 0 .../{soc => }/esp32/include/soc/rtc_io_reg.h | 0 .../esp32/include/soc/rtc_io_struct.h | 0 .../esp32/include/soc/sdio_slave_pins.h | 0 .../{soc => }/esp32/include/soc/sdmmc_pins.h | 0 .../{soc => }/esp32/include/soc/sdmmc_reg.h | 0 .../esp32/include/soc/sdmmc_struct.h | 0 .../{soc => }/esp32/include/soc/sens_reg.h | 0 .../{soc => }/esp32/include/soc/sens_struct.h | 0 .../{soc => }/esp32/include/soc/sha_caps.h | 0 .../soc/{soc => }/esp32/include/soc/slc_reg.h | 0 .../{soc => }/esp32/include/soc/slc_struct.h | 0 .../soc/{soc => }/esp32/include/soc/soc.h | 0 .../{soc => }/esp32/include/soc/soc_caps.h | 0 .../{soc => }/esp32/include/soc/soc_pins.h | 0 .../soc/{soc => }/esp32/include/soc/soc_ulp.h | 0 .../{soc => }/esp32/include/soc/spi_pins.h | 0 .../soc/{soc => }/esp32/include/soc/spi_reg.h | 0 .../{soc => }/esp32/include/soc/spi_struct.h | 0 .../{soc => }/esp32/include/soc/syscon_reg.h | 0 .../esp32/include/soc/syscon_struct.h | 0 .../esp32/include/soc/timer_group_reg.h | 0 .../esp32/include/soc/timer_group_struct.h | 0 .../esp32/include/soc/touch_sensor_channel.h | 0 .../{soc => }/esp32/include/soc/twai_struct.h | 0 .../esp32/include/soc/uart_channel.h | 0 .../{soc => }/esp32/include/soc/uart_reg.h | 0 .../{soc => }/esp32/include/soc/uart_struct.h | 0 .../{soc => }/esp32/include/soc/uhci_reg.h | 0 .../{soc => }/esp32/include/soc/uhci_struct.h | 0 .../{soc => }/esp32/include/soc/wdev_reg.h | 0 components/soc/{soc => }/esp32/interrupts.c | 0 components/soc/{soc => }/esp32/ledc_periph.c | 0 components/soc/{soc => }/esp32/pcnt_periph.c | 0 .../esp32/private_include/regi2c_apll.h | 0 .../esp32/private_include/regi2c_bbpll.h | 0 components/soc/{src => }/esp32/regi2c_ctrl.h | 0 components/soc/{src => }/esp32/rtc_clk.c | 0 .../soc/{src => }/esp32/rtc_clk_common.h | 3 + components/soc/{src => }/esp32/rtc_clk_init.c | 0 components/soc/{src => }/esp32/rtc_init.c | 0 .../soc/{soc => }/esp32/rtc_io_periph.c | 0 components/soc/{soc => }/esp32/rtc_periph.c | 0 components/soc/{src => }/esp32/rtc_pm.c | 0 components/soc/{src => }/esp32/rtc_sleep.c | 0 components/soc/{src => }/esp32/rtc_time.c | 0 components/soc/{src => }/esp32/rtc_wdt.c | 0 .../soc/{soc => }/esp32/sdio_slave_periph.c | 0 components/soc/{soc => }/esp32/sdmmc_periph.c | 0 .../soc/{src => }/esp32/soc_memory_layout.c | 0 components/soc/{soc => }/esp32/spi_periph.c | 0 .../soc/{soc => }/esp32/touch_sensor_periph.c | 0 components/soc/{soc => }/esp32/uart_periph.c | 0 components/soc/esp32s2/CMakeLists.txt | 35 ++++ components/soc/{soc => }/esp32s2/adc_periph.c | 0 components/soc/{soc => }/esp32s2/dac_periph.c | 0 .../soc/{soc => }/esp32s2/dedic_gpio_periph.c | 0 .../soc/{soc => }/esp32s2/gpio_periph.c | 0 components/soc/esp32s2/i2c_apll.h | 136 +++++++++++++ components/soc/esp32s2/i2c_bbpll.h | 184 ++++++++++++++++++ components/soc/{soc => }/esp32s2/i2c_periph.c | 0 components/soc/esp32s2/i2c_ulp.h | 39 ++++ components/soc/{soc => }/esp32s2/i2s_periph.c | 0 .../esp32s2/include/soc/adc_channel.h | 0 .../esp32s2/include/soc/apb_ctrl_reg.h | 0 .../esp32s2/include/soc/apb_ctrl_struct.h | 0 .../esp32s2/include/soc/apb_saradc_reg.h | 0 .../esp32s2/include/soc/apb_saradc_struct.h | 0 .../esp32s2/include/soc/assist_debug_reg.h | 0 .../{soc => }/esp32s2/include/soc/bb_reg.h | 0 .../{soc => }/esp32s2/include/soc/boot_mode.h | 0 .../esp32s2/include/soc/cache_memory.h | 0 .../esp32s2/include/soc/clkout_channel.h | 0 .../esp32s2/include/soc/cp_dma_reg.h | 0 .../esp32s2/include/soc/cp_dma_struct.h | 0 .../esp32s2/include/soc/crypto_dma_reg.h | 0 .../esp32s2/include/soc/dac_channel.h | 0 .../esp32s2/include/soc/dedic_gpio_reg.h | 0 .../esp32s2/include/soc/dedic_gpio_struct.h | 0 .../esp32s2/include/soc/dport_access.h | 0 .../{soc => }/esp32s2/include/soc/dport_reg.h | 0 .../{soc => }/esp32s2/include/soc/efuse_reg.h | 0 .../esp32s2/include/soc/efuse_struct.h | 0 .../esp32s2/include/soc/extmem_reg.h | 0 .../{soc => }/esp32s2/include/soc/fe_reg.h | 0 .../esp32s2/include/soc/frc_timer_reg.h | 0 .../{soc => }/esp32s2/include/soc/gpio_pins.h | 0 .../{soc => }/esp32s2/include/soc/gpio_reg.h | 0 .../esp32s2/include/soc/gpio_sd_reg.h | 0 .../esp32s2/include/soc/gpio_sd_struct.h | 0 .../esp32s2/include/soc/gpio_sig_map.h | 0 .../esp32s2/include/soc/gpio_struct.h | 0 .../esp32s2/include/soc/hwcrypto_reg.h | 0 .../{soc => }/esp32s2/include/soc/i2c_reg.h | 0 .../soc/esp32s2/include/soc/i2c_saradc.h | 77 ++++++++ .../esp32s2/include/soc/i2c_struct.h | 0 .../{soc => }/esp32s2/include/soc/i2s_reg.h | 0 .../esp32s2/include/soc/i2s_struct.h | 0 .../esp32s2/include/soc/interrupt_reg.h | 0 .../esp32s2/include/soc/io_mux_reg.h | 0 .../{soc => }/esp32s2/include/soc/ledc_reg.h | 0 .../esp32s2/include/soc/ledc_struct.h | 0 .../{soc => }/esp32s2/include/soc/nrx_reg.h | 0 .../{soc => }/esp32s2/include/soc/pcnt_reg.h | 0 .../esp32s2/include/soc/pcnt_struct.h | 0 .../esp32s2/include/soc/periph_defs.h | 0 .../{soc => }/esp32s2/include/soc/rmt_reg.h | 0 .../esp32s2/include/soc/rmt_struct.h | 0 .../{soc => }/esp32s2/include/soc/rsa_caps.h | 0 .../soc/{soc => }/esp32s2/include/soc/rtc.h | 0 .../esp32s2/include/soc/rtc_cntl_reg.h | 0 .../esp32s2/include/soc/rtc_cntl_struct.h | 0 .../esp32s2/include/soc/rtc_i2c_reg.h | 0 .../esp32s2/include/soc/rtc_i2c_struct.h | 0 .../esp32s2/include/soc/rtc_io_channel.h | 0 .../esp32s2/include/soc/rtc_io_reg.h | 0 .../esp32s2/include/soc/rtc_io_struct.h | 0 .../esp32s2/include/soc/sdio_slave_pins.h | 0 .../esp32s2/include/soc/sdmmc_pins.h | 0 .../{soc => }/esp32s2/include/soc/sdmmc_reg.h | 0 .../esp32s2/include/soc/sdmmc_struct.h | 0 .../{soc => }/esp32s2/include/soc/sens_reg.h | 0 .../esp32s2/include/soc/sens_struct.h | 0 .../esp32s2/include/soc/sensitive_reg.h | 0 .../{soc => }/esp32s2/include/soc/sha_caps.h | 0 .../soc/{soc => }/esp32s2/include/soc/soc.h | 0 .../{soc => }/esp32s2/include/soc/soc_caps.h | 0 .../{soc => }/esp32s2/include/soc/soc_pins.h | 0 .../{soc => }/esp32s2/include/soc/soc_ulp.h | 0 .../esp32s2/include/soc/spi_mem_reg.h | 0 .../esp32s2/include/soc/spi_mem_struct.h | 0 .../{soc => }/esp32s2/include/soc/spi_pins.h | 0 .../{soc => }/esp32s2/include/soc/spi_reg.h | 0 .../esp32s2/include/soc/spi_struct.h | 0 .../esp32s2/include/soc/syscon_reg.h | 0 .../esp32s2/include/soc/syscon_struct.h | 0 .../esp32s2/include/soc/system_reg.h | 0 .../esp32s2/include/soc/systimer_reg.h | 0 .../esp32s2/include/soc/timer_group_reg.h | 0 .../esp32s2/include/soc/timer_group_struct.h | 0 .../include/soc/touch_sensor_channel.h | 0 .../esp32s2/include/soc/touch_sensor_pins.h | 0 .../esp32s2/include/soc/twai_struct.h | 0 .../esp32s2/include/soc/uart_channel.h | 0 .../{soc => }/esp32s2/include/soc/uart_reg.h | 0 .../esp32s2/include/soc/uart_struct.h | 0 .../{soc => }/esp32s2/include/soc/uhci_reg.h | 0 .../esp32s2/include/soc/uhci_struct.h | 0 .../esp32s2/include/soc/usb_periph.h | 0 .../{soc => }/esp32s2/include/soc/usb_pins.h | 0 .../{soc => }/esp32s2/include/soc/usb_reg.h | 0 .../esp32s2/include/soc/usb_struct.h | 0 .../{soc => }/esp32s2/include/soc/usb_types.h | 0 .../esp32s2/include/soc/usb_wrap_reg.h | 0 .../esp32s2/include/soc/usb_wrap_struct.h | 0 .../{soc => }/esp32s2/include/soc/wdev_reg.h | 0 components/soc/{soc => }/esp32s2/interrupts.c | 0 .../soc/{soc => }/esp32s2/ledc_periph.c | 0 .../soc/{soc => }/esp32s2/pcnt_periph.c | 0 .../esp32s2/private_include/regi2c_apll.h | 0 .../esp32s2/private_include/regi2c_bbpll.h | 0 .../esp32s2/private_include/regi2c_brownout.h | 0 .../esp32s2/private_include/regi2c_saradc.h | 0 .../esp32s2/private_include/regi2c_ulp.h | 0 .../soc/{src => }/esp32s2/regi2c_ctrl.c | 0 .../soc/{src => }/esp32s2/regi2c_ctrl.h | 0 components/soc/{src => }/esp32s2/rtc_clk.c | 0 .../soc/{src => }/esp32s2/rtc_clk_common.h | 3 + .../soc/{src => }/esp32s2/rtc_clk_init.c | 0 components/soc/{src => }/esp32s2/rtc_init.c | 0 .../soc/{soc => }/esp32s2/rtc_io_periph.c | 0 components/soc/{soc => }/esp32s2/rtc_periph.c | 0 components/soc/{src => }/esp32s2/rtc_pm.c | 0 components/soc/{src => }/esp32s2/rtc_sleep.c | 0 components/soc/{src => }/esp32s2/rtc_time.c | 0 components/soc/{src => }/esp32s2/rtc_wdt.c | 0 .../soc/{src => }/esp32s2/soc_memory_layout.c | 0 components/soc/{soc => }/esp32s2/spi_periph.c | 0 .../{soc => }/esp32s2/touch_sensor_periph.c | 0 .../soc/{soc => }/esp32s2/uart_periph.c | 0 components/soc/{soc => }/esp32s2/usb_periph.c | 0 components/soc/esp32s3/CMakeLists.txt | 34 ++++ components/soc/{soc => }/esp32s3/adc_periph.c | 0 components/soc/{soc => }/esp32s3/dac_periph.c | 0 .../soc/{soc => }/esp32s3/dedic_gpio_periph.c | 0 .../soc/{soc => }/esp32s3/gpio_periph.c | 0 components/soc/esp32s3/i2c_bbpll.h | 184 ++++++++++++++++++ components/soc/{soc => }/esp32s3/i2c_periph.c | 0 components/soc/esp32s3/i2c_ulp.h | 39 ++++ components/soc/{soc => }/esp32s3/i2s_periph.c | 0 .../{soc => }/esp32s3/include/soc/adc_caps.h | 0 .../esp32s3/include/soc/adc_channel.h | 0 .../esp32s3/include/soc/apb_ctrl_reg.h | 0 .../esp32s3/include/soc/apb_ctrl_struct.h | 0 .../esp32s3/include/soc/apb_saradc_reg.h | 0 .../esp32s3/include/soc/apb_saradc_struct.h | 0 .../esp32s3/include/soc/assist_debug_reg.h | 0 .../esp32s3/include/soc/assist_debug_struct.h | 0 .../{soc => }/esp32s3/include/soc/bb_reg.h | 0 .../{soc => }/esp32s3/include/soc/boot_mode.h | 0 .../esp32s3/include/soc/brownout_caps.h | 0 .../esp32s3/include/soc/cache_memory.h | 0 .../esp32s3/include/soc/clkout_channel.h | 0 .../{soc => }/esp32s3/include/soc/cpu_caps.h | 0 .../{soc => }/esp32s3/include/soc/dac_caps.h | 0 .../esp32s3/include/soc/dac_channel.h | 0 .../esp32s3/include/soc/dport_access.h | 0 .../{soc => }/esp32s3/include/soc/dport_reg.h | 0 .../{soc => }/esp32s3/include/soc/efuse_reg.h | 0 .../esp32s3/include/soc/efuse_struct.h | 0 .../esp32s3/include/soc/extmem_reg.h | 0 .../esp32s3/include/soc/extmem_struct.h | 0 .../{soc => }/esp32s3/include/soc/fe_reg.h | 0 .../{soc => }/esp32s3/include/soc/gdma_caps.h | 0 .../{soc => }/esp32s3/include/soc/gdma_reg.h | 0 .../esp32s3/include/soc/gdma_struct.h | 0 .../{soc => }/esp32s3/include/soc/gpio_caps.h | 0 .../{soc => }/esp32s3/include/soc/gpio_pins.h | 0 .../{soc => }/esp32s3/include/soc/gpio_reg.h | 0 .../esp32s3/include/soc/gpio_sd_reg.h | 0 .../esp32s3/include/soc/gpio_sd_struct.h | 0 .../esp32s3/include/soc/gpio_sig_map.h | 0 .../esp32s3/include/soc/gpio_struct.h | 0 .../{soc => }/esp32s3/include/soc/hinf_reg.h | 0 .../esp32s3/include/soc/hinf_struct.h | 0 .../{soc => }/esp32s3/include/soc/host_reg.h | 0 .../esp32s3/include/soc/host_struct.h | 0 .../esp32s3/include/soc/hwcrypto_reg.h | 0 .../{soc => }/esp32s3/include/soc/i2c_caps.h | 0 .../{soc => }/esp32s3/include/soc/i2c_reg.h | 0 .../esp32s3/include/soc/i2c_struct.h | 0 .../{soc => }/esp32s3/include/soc/i2s_caps.h | 0 .../{soc => }/esp32s3/include/soc/i2s_reg.h | 0 .../esp32s3/include/soc/i2s_struct.h | 0 .../esp32s3/include/soc/interrupt_core0_reg.h | 0 .../include/soc/interrupt_core0_struct.h | 0 .../esp32s3/include/soc/interrupt_core1_reg.h | 0 .../include/soc/interrupt_core1_struct.h | 0 .../esp32s3/include/soc/interrupt_reg.h | 0 .../esp32s3/include/soc/io_mux_reg.h | 0 .../esp32s3/include/soc/lcd_cam_reg.h | 0 .../esp32s3/include/soc/lcd_cam_struct.h | 0 .../{soc => }/esp32s3/include/soc/ledc_caps.h | 0 .../{soc => }/esp32s3/include/soc/ledc_reg.h | 0 .../esp32s3/include/soc/ledc_struct.h | 0 .../{soc => }/esp32s3/include/soc/mcpwm_reg.h | 0 .../esp32s3/include/soc/mcpwm_struct.h | 0 .../{soc => }/esp32s3/include/soc/mpu_caps.h | 0 .../{soc => }/esp32s3/include/soc/nrx_reg.h | 0 .../{soc => }/esp32s3/include/soc/pcnt_reg.h | 0 .../esp32s3/include/soc/pcnt_struct.h | 0 .../esp32s3/include/soc/periph_defs.h | 0 .../{soc => }/esp32s3/include/soc/rmt_caps.h | 0 .../{soc => }/esp32s3/include/soc/rmt_reg.h | 0 .../esp32s3/include/soc/rmt_struct.h | 0 .../{soc => }/esp32s3/include/soc/rsa_caps.h | 0 .../soc/{soc => }/esp32s3/include/soc/rtc.h | 0 .../esp32s3/include/soc/rtc_cntl_reg.h | 0 .../esp32s3/include/soc/rtc_cntl_struct.h | 0 .../esp32s3/include/soc/rtc_gpio_channel.h | 0 .../esp32s3/include/soc/rtc_i2c_reg.h | 0 .../esp32s3/include/soc/rtc_i2c_struct.h | 0 .../esp32s3/include/soc/rtc_io_caps.h | 0 .../esp32s3/include/soc/rtc_io_channel.h | 0 .../esp32s3/include/soc/rtc_io_reg.h | 0 .../esp32s3/include/soc/rtc_io_struct.h | 0 .../esp32s3/include/soc/sdio_slave_pins.h | 0 .../esp32s3/include/soc/sdmmc_pins.h | 0 .../{soc => }/esp32s3/include/soc/sdmmc_reg.h | 0 .../esp32s3/include/soc/sdmmc_struct.h | 0 .../{soc => }/esp32s3/include/soc/sens_reg.h | 0 .../esp32s3/include/soc/sens_struct.h | 0 .../esp32s3/include/soc/sensitive_reg.h | 0 .../esp32s3/include/soc/sensitive_struct.h | 0 .../{soc => }/esp32s3/include/soc/sha_caps.h | 0 .../esp32s3/include/soc/sigmadelta_caps.h | 0 .../{soc => }/esp32s3/include/soc/slc_reg.h | 0 .../esp32s3/include/soc/slc_struct.h | 0 .../soc/{soc => }/esp32s3/include/soc/soc.h | 0 .../{soc => }/esp32s3/include/soc/soc_caps.h | 0 .../{soc => }/esp32s3/include/soc/soc_pins.h | 0 .../{soc => }/esp32s3/include/soc/soc_ulp.h | 0 .../{soc => }/esp32s3/include/soc/spi_caps.h | 0 .../esp32s3/include/soc/spi_mem_reg.h | 0 .../esp32s3/include/soc/spi_mem_struct.h | 0 .../{soc => }/esp32s3/include/soc/spi_pins.h | 0 .../{soc => }/esp32s3/include/soc/spi_reg.h | 0 .../esp32s3/include/soc/spi_struct.h | 0 .../esp32s3/include/soc/sys_timer_reg.h | 0 .../esp32s3/include/soc/sys_timer_struct.h | 0 .../esp32s3/include/soc/syscon_reg.h | 0 .../esp32s3/include/soc/syscon_struct.h | 0 .../esp32s3/include/soc/system_reg.h | 0 .../esp32s3/include/soc/system_struct.h | 0 .../esp32s3/include/soc/systimer_caps.h | 0 .../esp32s3/include/soc/timer_group_caps.h | 0 .../esp32s3/include/soc/timer_group_reg.h | 0 .../esp32s3/include/soc/timer_group_struct.h | 0 .../esp32s3/include/soc/touch_channel.h | 0 .../esp32s3/include/soc/touch_sensor_caps.h | 0 .../include/soc/touch_sensor_channel.h | 0 .../{soc => }/esp32s3/include/soc/twai_caps.h | 0 .../esp32s3/include/soc/twai_struct.h | 0 .../{soc => }/esp32s3/include/soc/uart_caps.h | 0 .../esp32s3/include/soc/uart_channel.h | 0 .../{soc => }/esp32s3/include/soc/uart_reg.h | 0 .../esp32s3/include/soc/uart_struct.h | 0 .../{soc => }/esp32s3/include/soc/uhci_reg.h | 0 .../esp32s3/include/soc/uhci_struct.h | 0 .../{soc => }/esp32s3/include/soc/wdev_reg.h | 0 components/soc/{soc => }/esp32s3/interrupts.c | 0 .../soc/{soc => }/esp32s3/ledc_periph.c | 0 .../soc/{soc => }/esp32s3/pcnt_periph.c | 0 .../esp32s3/private_include/regi2c_bbpll.h | 0 .../esp32s3/private_include/regi2c_brownout.h | 0 .../esp32s3/private_include/regi2c_dig_reg.h | 0 .../esp32s3/private_include/regi2c_ulp.h | 0 .../soc/{src => }/esp32s3/regi2c_ctrl.h | 0 components/soc/{src => }/esp32s3/rtc_clk.c | 0 .../soc/{src => }/esp32s3/rtc_clk_common.h | 3 + .../soc/{src => }/esp32s3/rtc_clk_init.c | 0 components/soc/{src => }/esp32s3/rtc_init.c | 0 .../soc/{soc => }/esp32s3/rtc_io_periph.c | 0 components/soc/{soc => }/esp32s3/rtc_periph.c | 0 components/soc/{src => }/esp32s3/rtc_pm.c | 0 components/soc/{src => }/esp32s3/rtc_sleep.c | 0 components/soc/{src => }/esp32s3/rtc_time.c | 0 .../soc/{soc => }/esp32s3/sdio_slave_periph.c | 0 .../soc/{soc => }/esp32s3/sdmmc_periph.c | 0 .../soc/{src => }/esp32s3/soc_memory_layout.c | 0 components/soc/{soc => }/esp32s3/spi_periph.c | 0 .../{soc => }/esp32s3/touch_sensor_periph.c | 0 .../soc/{soc => }/esp32s3/uart_periph.c | 0 .../soc/{soc => }/include/soc/adc_periph.h | 0 .../soc/{soc => }/include/soc/dac_periph.h | 0 .../{soc => }/include/soc/dedic_gpio_periph.h | 0 .../soc/{soc => }/include/soc/efuse_periph.h | 0 .../soc/{soc => }/include/soc/emac_periph.h | 0 .../soc/{soc => }/include/soc/gpio_periph.h | 0 .../{soc => }/include/soc/hwcrypto_periph.h | 0 .../soc/{soc => }/include/soc/i2c_periph.h | 0 .../soc/{soc => }/include/soc/i2s_periph.h | 0 .../soc/{soc => }/include/soc/interrupts.h | 0 .../soc/{soc => }/include/soc/ledc_periph.h | 0 .../soc/{soc => }/include/soc/mcpwm_periph.h | 0 .../soc/{soc => }/include/soc/pcnt_periph.h | 0 .../soc/{soc => }/include/soc/rmt_periph.h | 0 .../{soc => }/include/soc/rtc_cntl_periph.h | 0 .../soc/{soc => }/include/soc/rtc_io_periph.h | 0 .../soc/{soc => }/include/soc/rtc_periph.h | 0 .../{soc => }/include/soc/sdio_slave_periph.h | 0 .../soc/{soc => }/include/soc/sdmmc_periph.h | 0 .../soc/{soc => }/include/soc/sens_periph.h | 0 .../{soc => }/include/soc/sigmadelta_periph.h | 0 .../soc/{soc => }/include/soc/spi_periph.h | 0 .../soc/{soc => }/include/soc/syscon_periph.h | 0 .../soc/{soc => }/include/soc/timer_periph.h | 0 .../include/soc/touch_sensor_periph.h | 0 .../soc/{soc => }/include/soc/twai_periph.h | 0 .../soc/{soc => }/include/soc/uart_periph.h | 0 .../soc/{soc => }/include/soc/uhci_periph.h | 0 components/soc/{src => }/lldesc.c | 0 components/soc/soc/CMakeLists.txt | 2 - components/soc/soc/component.mk | 2 - components/soc/soc/esp32/CMakeLists.txt | 18 -- components/soc/soc/esp32s2/CMakeLists.txt | 18 -- components/soc/soc/esp32s3/CMakeLists.txt | 19 -- .../soc/{src => }/soc_include_legacy_warn.c | 0 components/soc/src/esp32/component.mk | 8 - components/soc/src/esp32s2/CMakeLists.txt | 20 -- components/soc/src/esp32s3/CMakeLists.txt | 18 -- components/spi_flash/sim/Makefile.files | 3 +- components/spi_flash/sim/stubs/Makefile.files | 3 +- .../spiffs/test_spiffs_host/Makefile.files | 3 +- .../test_wl_host/Makefile.files | 3 +- docs/en/api-reference/peripherals/rmt.rst | 4 +- docs/en/api-reference/peripherals/timer.rst | 2 +- docs/idf_extensions/gen_defines.py | 2 +- .../zh_CN/api-reference/peripherals/timer.rst | 2 +- 442 files changed, 773 insertions(+), 168 deletions(-) rename components/{soc/src => hal}/esp32s2/include/hal/memprot_peri_ll.h (100%) rename components/{soc => hal}/include/hal/sha_hal.h (100%) rename components/soc/{src => }/esp32/CMakeLists.txt (63%) rename components/soc/{soc => }/esp32/adc_periph.c (100%) rename components/soc/{soc => }/esp32/dac_periph.c (100%) rename components/soc/{soc => }/esp32/gpio_periph.c (100%) rename components/soc/{soc => }/esp32/i2c_periph.c (100%) rename components/soc/{soc => }/esp32/i2s_periph.c (100%) rename components/soc/{soc => }/esp32/include/soc/adc_channel.h (100%) rename components/soc/{soc => }/esp32/include/soc/apb_ctrl_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/apb_ctrl_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/bb_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/boot_mode.h (100%) rename components/soc/{soc => }/esp32/include/soc/can_periph.h (100%) rename components/soc/{soc => }/esp32/include/soc/can_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/clkout_channel.h (100%) rename components/soc/{soc => }/esp32/include/soc/dac_channel.h (100%) rename components/soc/{soc => }/esp32/include/soc/dport_access.h (100%) rename components/soc/{soc => }/esp32/include/soc/dport_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/efuse_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/emac_dma_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/emac_ext_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/emac_mac_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/fe_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/frc_timer_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/gpio_pins.h (100%) rename components/soc/{soc => }/esp32/include/soc/gpio_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/gpio_sd_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/gpio_sd_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/gpio_sig_map.h (100%) rename components/soc/{soc => }/esp32/include/soc/gpio_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/hinf_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/hinf_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/host_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/host_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/hwcrypto_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/i2c_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/i2c_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/i2s_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/i2s_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/io_mux_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/ledc_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/ledc_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/mcpwm_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/mcpwm_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/nrx_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/pcnt_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/pcnt_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/periph_defs.h (100%) rename components/soc/{soc => }/esp32/include/soc/pid.h (100%) rename components/soc/{soc => }/esp32/include/soc/rmt_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/rmt_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/rsa_caps.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc_cntl_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc_cntl_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc_i2c_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc_io_channel.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc_io_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/rtc_io_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/sdio_slave_pins.h (100%) rename components/soc/{soc => }/esp32/include/soc/sdmmc_pins.h (100%) rename components/soc/{soc => }/esp32/include/soc/sdmmc_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/sdmmc_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/sens_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/sens_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/sha_caps.h (100%) rename components/soc/{soc => }/esp32/include/soc/slc_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/slc_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/soc.h (100%) rename components/soc/{soc => }/esp32/include/soc/soc_caps.h (100%) rename components/soc/{soc => }/esp32/include/soc/soc_pins.h (100%) rename components/soc/{soc => }/esp32/include/soc/soc_ulp.h (100%) rename components/soc/{soc => }/esp32/include/soc/spi_pins.h (100%) rename components/soc/{soc => }/esp32/include/soc/spi_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/spi_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/syscon_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/syscon_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/timer_group_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/timer_group_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/touch_sensor_channel.h (100%) rename components/soc/{soc => }/esp32/include/soc/twai_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/uart_channel.h (100%) rename components/soc/{soc => }/esp32/include/soc/uart_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/uart_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/uhci_reg.h (100%) rename components/soc/{soc => }/esp32/include/soc/uhci_struct.h (100%) rename components/soc/{soc => }/esp32/include/soc/wdev_reg.h (100%) rename components/soc/{soc => }/esp32/interrupts.c (100%) rename components/soc/{soc => }/esp32/ledc_periph.c (100%) rename components/soc/{soc => }/esp32/pcnt_periph.c (100%) rename components/soc/{soc => }/esp32/private_include/regi2c_apll.h (100%) rename components/soc/{soc => }/esp32/private_include/regi2c_bbpll.h (100%) rename components/soc/{src => }/esp32/regi2c_ctrl.h (100%) rename components/soc/{src => }/esp32/rtc_clk.c (100%) rename components/soc/{src => }/esp32/rtc_clk_common.h (96%) rename components/soc/{src => }/esp32/rtc_clk_init.c (100%) rename components/soc/{src => }/esp32/rtc_init.c (100%) rename components/soc/{soc => }/esp32/rtc_io_periph.c (100%) rename components/soc/{soc => }/esp32/rtc_periph.c (100%) rename components/soc/{src => }/esp32/rtc_pm.c (100%) rename components/soc/{src => }/esp32/rtc_sleep.c (100%) rename components/soc/{src => }/esp32/rtc_time.c (100%) rename components/soc/{src => }/esp32/rtc_wdt.c (100%) rename components/soc/{soc => }/esp32/sdio_slave_periph.c (100%) rename components/soc/{soc => }/esp32/sdmmc_periph.c (100%) rename components/soc/{src => }/esp32/soc_memory_layout.c (100%) rename components/soc/{soc => }/esp32/spi_periph.c (100%) rename components/soc/{soc => }/esp32/touch_sensor_periph.c (100%) rename components/soc/{soc => }/esp32/uart_periph.c (100%) create mode 100644 components/soc/esp32s2/CMakeLists.txt rename components/soc/{soc => }/esp32s2/adc_periph.c (100%) rename components/soc/{soc => }/esp32s2/dac_periph.c (100%) rename components/soc/{soc => }/esp32s2/dedic_gpio_periph.c (100%) rename components/soc/{soc => }/esp32s2/gpio_periph.c (100%) create mode 100644 components/soc/esp32s2/i2c_apll.h create mode 100644 components/soc/esp32s2/i2c_bbpll.h rename components/soc/{soc => }/esp32s2/i2c_periph.c (100%) create mode 100644 components/soc/esp32s2/i2c_ulp.h rename components/soc/{soc => }/esp32s2/i2s_periph.c (100%) rename components/soc/{soc => }/esp32s2/include/soc/adc_channel.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/apb_ctrl_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/apb_ctrl_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/apb_saradc_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/apb_saradc_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/assist_debug_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/bb_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/boot_mode.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/cache_memory.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/clkout_channel.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/cp_dma_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/cp_dma_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/crypto_dma_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/dac_channel.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/dedic_gpio_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/dedic_gpio_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/dport_access.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/dport_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/efuse_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/efuse_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/extmem_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/fe_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/frc_timer_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/gpio_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/gpio_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/gpio_sd_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/gpio_sd_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/gpio_sig_map.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/gpio_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/hwcrypto_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/i2c_reg.h (100%) create mode 100644 components/soc/esp32s2/include/soc/i2c_saradc.h rename components/soc/{soc => }/esp32s2/include/soc/i2c_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/i2s_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/i2s_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/interrupt_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/io_mux_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/ledc_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/ledc_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/nrx_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/pcnt_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/pcnt_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/periph_defs.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rmt_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rmt_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rsa_caps.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_cntl_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_cntl_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_i2c_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_i2c_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_io_channel.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_io_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/rtc_io_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sdio_slave_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sdmmc_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sdmmc_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sdmmc_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sens_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sens_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sensitive_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/sha_caps.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/soc.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/soc_caps.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/soc_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/soc_ulp.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/spi_mem_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/spi_mem_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/spi_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/spi_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/spi_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/syscon_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/syscon_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/system_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/systimer_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/timer_group_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/timer_group_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/touch_sensor_channel.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/touch_sensor_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/twai_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/uart_channel.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/uart_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/uart_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/uhci_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/uhci_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_periph.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_pins.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_types.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_wrap_reg.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/usb_wrap_struct.h (100%) rename components/soc/{soc => }/esp32s2/include/soc/wdev_reg.h (100%) rename components/soc/{soc => }/esp32s2/interrupts.c (100%) rename components/soc/{soc => }/esp32s2/ledc_periph.c (100%) rename components/soc/{soc => }/esp32s2/pcnt_periph.c (100%) rename components/soc/{soc => }/esp32s2/private_include/regi2c_apll.h (100%) rename components/soc/{soc => }/esp32s2/private_include/regi2c_bbpll.h (100%) rename components/soc/{soc => }/esp32s2/private_include/regi2c_brownout.h (100%) rename components/soc/{soc => }/esp32s2/private_include/regi2c_saradc.h (100%) rename components/soc/{soc => }/esp32s2/private_include/regi2c_ulp.h (100%) rename components/soc/{src => }/esp32s2/regi2c_ctrl.c (100%) rename components/soc/{src => }/esp32s2/regi2c_ctrl.h (100%) rename components/soc/{src => }/esp32s2/rtc_clk.c (100%) rename components/soc/{src => }/esp32s2/rtc_clk_common.h (97%) rename components/soc/{src => }/esp32s2/rtc_clk_init.c (100%) rename components/soc/{src => }/esp32s2/rtc_init.c (100%) rename components/soc/{soc => }/esp32s2/rtc_io_periph.c (100%) rename components/soc/{soc => }/esp32s2/rtc_periph.c (100%) rename components/soc/{src => }/esp32s2/rtc_pm.c (100%) rename components/soc/{src => }/esp32s2/rtc_sleep.c (100%) rename components/soc/{src => }/esp32s2/rtc_time.c (100%) rename components/soc/{src => }/esp32s2/rtc_wdt.c (100%) rename components/soc/{src => }/esp32s2/soc_memory_layout.c (100%) rename components/soc/{soc => }/esp32s2/spi_periph.c (100%) rename components/soc/{soc => }/esp32s2/touch_sensor_periph.c (100%) rename components/soc/{soc => }/esp32s2/uart_periph.c (100%) rename components/soc/{soc => }/esp32s2/usb_periph.c (100%) create mode 100644 components/soc/esp32s3/CMakeLists.txt rename components/soc/{soc => }/esp32s3/adc_periph.c (100%) rename components/soc/{soc => }/esp32s3/dac_periph.c (100%) rename components/soc/{soc => }/esp32s3/dedic_gpio_periph.c (100%) rename components/soc/{soc => }/esp32s3/gpio_periph.c (100%) create mode 100644 components/soc/esp32s3/i2c_bbpll.h rename components/soc/{soc => }/esp32s3/i2c_periph.c (100%) create mode 100644 components/soc/esp32s3/i2c_ulp.h rename components/soc/{soc => }/esp32s3/i2s_periph.c (100%) rename components/soc/{soc => }/esp32s3/include/soc/adc_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/adc_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/apb_ctrl_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/apb_ctrl_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/apb_saradc_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/apb_saradc_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/assist_debug_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/assist_debug_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/bb_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/boot_mode.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/brownout_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/cache_memory.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/clkout_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/cpu_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/dac_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/dac_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/dport_access.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/dport_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/efuse_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/efuse_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/extmem_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/extmem_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/fe_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gdma_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gdma_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gdma_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_pins.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_sd_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_sd_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_sig_map.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/gpio_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/hinf_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/hinf_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/host_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/host_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/hwcrypto_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/i2c_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/i2c_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/i2c_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/i2s_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/i2s_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/i2s_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/interrupt_core0_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/interrupt_core0_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/interrupt_core1_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/interrupt_core1_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/interrupt_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/io_mux_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/lcd_cam_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/lcd_cam_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/ledc_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/ledc_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/ledc_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/mcpwm_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/mcpwm_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/mpu_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/nrx_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/pcnt_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/pcnt_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/periph_defs.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rmt_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rmt_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rmt_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rsa_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_cntl_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_cntl_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_gpio_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_i2c_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_i2c_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_io_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_io_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_io_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/rtc_io_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sdio_slave_pins.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sdmmc_pins.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sdmmc_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sdmmc_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sens_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sens_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sensitive_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sensitive_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sha_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sigmadelta_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/slc_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/slc_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/soc.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/soc_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/soc_pins.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/soc_ulp.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/spi_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/spi_mem_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/spi_mem_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/spi_pins.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/spi_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/spi_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sys_timer_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/sys_timer_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/syscon_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/syscon_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/system_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/system_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/systimer_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/timer_group_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/timer_group_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/timer_group_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/touch_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/touch_sensor_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/touch_sensor_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/twai_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/twai_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/uart_caps.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/uart_channel.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/uart_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/uart_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/uhci_reg.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/uhci_struct.h (100%) rename components/soc/{soc => }/esp32s3/include/soc/wdev_reg.h (100%) rename components/soc/{soc => }/esp32s3/interrupts.c (100%) rename components/soc/{soc => }/esp32s3/ledc_periph.c (100%) rename components/soc/{soc => }/esp32s3/pcnt_periph.c (100%) rename components/soc/{soc => }/esp32s3/private_include/regi2c_bbpll.h (100%) rename components/soc/{soc => }/esp32s3/private_include/regi2c_brownout.h (100%) rename components/soc/{soc => }/esp32s3/private_include/regi2c_dig_reg.h (100%) rename components/soc/{soc => }/esp32s3/private_include/regi2c_ulp.h (100%) rename components/soc/{src => }/esp32s3/regi2c_ctrl.h (100%) rename components/soc/{src => }/esp32s3/rtc_clk.c (100%) rename components/soc/{src => }/esp32s3/rtc_clk_common.h (97%) rename components/soc/{src => }/esp32s3/rtc_clk_init.c (100%) rename components/soc/{src => }/esp32s3/rtc_init.c (100%) rename components/soc/{soc => }/esp32s3/rtc_io_periph.c (100%) rename components/soc/{soc => }/esp32s3/rtc_periph.c (100%) rename components/soc/{src => }/esp32s3/rtc_pm.c (100%) rename components/soc/{src => }/esp32s3/rtc_sleep.c (100%) rename components/soc/{src => }/esp32s3/rtc_time.c (100%) rename components/soc/{soc => }/esp32s3/sdio_slave_periph.c (100%) rename components/soc/{soc => }/esp32s3/sdmmc_periph.c (100%) rename components/soc/{src => }/esp32s3/soc_memory_layout.c (100%) rename components/soc/{soc => }/esp32s3/spi_periph.c (100%) rename components/soc/{soc => }/esp32s3/touch_sensor_periph.c (100%) rename components/soc/{soc => }/esp32s3/uart_periph.c (100%) rename components/soc/{soc => }/include/soc/adc_periph.h (100%) rename components/soc/{soc => }/include/soc/dac_periph.h (100%) rename components/soc/{soc => }/include/soc/dedic_gpio_periph.h (100%) rename components/soc/{soc => }/include/soc/efuse_periph.h (100%) rename components/soc/{soc => }/include/soc/emac_periph.h (100%) rename components/soc/{soc => }/include/soc/gpio_periph.h (100%) rename components/soc/{soc => }/include/soc/hwcrypto_periph.h (100%) rename components/soc/{soc => }/include/soc/i2c_periph.h (100%) rename components/soc/{soc => }/include/soc/i2s_periph.h (100%) rename components/soc/{soc => }/include/soc/interrupts.h (100%) rename components/soc/{soc => }/include/soc/ledc_periph.h (100%) rename components/soc/{soc => }/include/soc/mcpwm_periph.h (100%) rename components/soc/{soc => }/include/soc/pcnt_periph.h (100%) rename components/soc/{soc => }/include/soc/rmt_periph.h (100%) rename components/soc/{soc => }/include/soc/rtc_cntl_periph.h (100%) rename components/soc/{soc => }/include/soc/rtc_io_periph.h (100%) rename components/soc/{soc => }/include/soc/rtc_periph.h (100%) rename components/soc/{soc => }/include/soc/sdio_slave_periph.h (100%) rename components/soc/{soc => }/include/soc/sdmmc_periph.h (100%) rename components/soc/{soc => }/include/soc/sens_periph.h (100%) rename components/soc/{soc => }/include/soc/sigmadelta_periph.h (100%) rename components/soc/{soc => }/include/soc/spi_periph.h (100%) rename components/soc/{soc => }/include/soc/syscon_periph.h (100%) rename components/soc/{soc => }/include/soc/timer_periph.h (100%) rename components/soc/{soc => }/include/soc/touch_sensor_periph.h (100%) rename components/soc/{soc => }/include/soc/twai_periph.h (100%) rename components/soc/{soc => }/include/soc/uart_periph.h (100%) rename components/soc/{soc => }/include/soc/uhci_periph.h (100%) rename components/soc/{src => }/lldesc.c (100%) delete mode 100644 components/soc/soc/CMakeLists.txt delete mode 100644 components/soc/soc/component.mk delete mode 100644 components/soc/soc/esp32/CMakeLists.txt delete mode 100644 components/soc/soc/esp32s2/CMakeLists.txt delete mode 100644 components/soc/soc/esp32s3/CMakeLists.txt rename components/soc/{src => }/soc_include_legacy_warn.c (100%) delete mode 100644 components/soc/src/esp32/component.mk delete mode 100644 components/soc/src/esp32s2/CMakeLists.txt delete mode 100644 components/soc/src/esp32s3/CMakeLists.txt diff --git a/components/fatfs/test_fatfs_host/Makefile.files b/components/fatfs/test_fatfs_host/Makefile.files index 73b2774296..e8e9d1f700 100644 --- a/components/fatfs/test_fatfs_host/Makefile.files +++ b/components/fatfs/test_fatfs_host/Makefile.files @@ -27,9 +27,8 @@ INCLUDE_DIRS := \ esp_system/include \ xtensa/include \ xtensa/esp32/include \ - soc/soc/esp32/include \ + soc/esp32/include \ soc/include \ - soc/soc/include \ esp32/include \ esp_common/include \ bootloader_support/include \ diff --git a/components/soc/src/esp32s2/include/hal/memprot_peri_ll.h b/components/hal/esp32s2/include/hal/memprot_peri_ll.h similarity index 100% rename from components/soc/src/esp32s2/include/hal/memprot_peri_ll.h rename to components/hal/esp32s2/include/hal/memprot_peri_ll.h diff --git a/components/soc/include/hal/sha_hal.h b/components/hal/include/hal/sha_hal.h similarity index 100% rename from components/soc/include/hal/sha_hal.h rename to components/hal/include/hal/sha_hal.h diff --git a/components/lwip/test_afl_host/Makefile b/components/lwip/test_afl_host/Makefile index 5a75bcc39f..92e0b14b38 100644 --- a/components/lwip/test_afl_host/Makefile +++ b/components/lwip/test_afl_host/Makefile @@ -2,7 +2,7 @@ COMPONENTS_DIR=../.. COMPILER_ICLUDE_DIR=$(shell echo `which xtensa-esp32-elf-gcc | xargs dirname | xargs dirname`/xtensa-esp32-elf) CFLAGS=-std=gnu99 -Og -ggdb -ffunction-sections -fdata-sections -nostdlib -Wall -Werror=all -Wno-int-to-pointer-cast -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-macro-redefined -Wno-constant-conversion -Wno-incompatible-pointer-types-discards-qualifiers -Wno-typedef-redefinition -Wno-incompatible-pointer-types -Wextra \ -Wno-unused-parameter -Wno-sign-compare -Wno-address -Wno-unused-variable -DESP_PLATFORM -D IDF_VER=\"v3.1\" -MMD -MP -DWITH_POSIX -DLWIP_NO_CTYPE_H=1 -INC_DIRS=-I . -I ./build/config -I $(COMPONENTS_DIR)/newlib/platform_include -I $(COMPONENTS_DIR)/newlib/include -I $(COMPONENTS_DIR)/driver/include -I $(COMPONENTS_DIR)/esp32/include -I $(COMPONENTS_DIR)/ethernet/include -I $(COMPONENTS_DIR)/freertos/include -I $(COMPONENTS_DIR)/heap/include -I $(COMPONENTS_DIR)/lwip/lwip/src/include -I $(COMPONENTS_DIR)/lwip/include/apps -I $(COMPONENTS_DIR)/lwip/lwip/src/include/netif -I $(COMPONENTS_DIR)/lwip/lwip/src/include/posix -I $(COMPONENTS_DIR)/lwip/port/esp32/include -I $(COMPONENTS_DIR)/lwip/lwip/src/include/posix -I $(COMPONENTS_DIR)/lwip/include/apps/ping -I $(COMPONENTS_DIR)/lwip/include/apps/sntp -I $(COMPONENTS_DIR)/soc/esp32/include -I $(COMPONENTS_DIR)/soc/include -I $(COMPONENTS_DIR)/tcpip_adapter/include -I $(COMPONENTS_DIR)/esp_rom/include -I $(COMPONENTS_DIR)/esp_common/include -I $(COMPONENTS_DIR)/xtensa/include -I $(COMPONENTS_DIR)/xtensa/esp32/include -I $(COMPONENTS_DIR)/esp_wifi/include -I $(COMPONENTS_DIR)/esp_event/include -I $(COMPONENTS_DIR)/freertos/xtensa/include -I $(COMPONENTS_DIR)/esp_system/include -I $(COMPONENTS_DIR)/esp_timer/include -I $(COMPONENTS_DIR)/soc/include -I $(COMPONENTS_DIR)/soc/soc/include -I $(COMPONENTS_DIR)/soc/src/esp32/include -I $(COMPONENTS_DIR)/soc/soc/esp32/include -I $(COMPONENTS_DIR)/esp_netif/include -I $(COMPONENTS_DIR)/esp_eth/include -I $(COMPONENTS_DIR)/esp_netif/lwip -I $(COMPONENTS_DIR)/hal/include -I $(COMPONENTS_DIR)/hal/esp32/include -I $(COMPILER_ICLUDE_DIR)/include +INC_DIRS=-I . -I ./build/config -I $(COMPONENTS_DIR)/newlib/platform_include -I $(COMPONENTS_DIR)/newlib/include -I $(COMPONENTS_DIR)/driver/include -I $(COMPONENTS_DIR)/esp32/include -I $(COMPONENTS_DIR)/ethernet/include -I $(COMPONENTS_DIR)/freertos/include -I $(COMPONENTS_DIR)/heap/include -I $(COMPONENTS_DIR)/lwip/lwip/src/include -I $(COMPONENTS_DIR)/lwip/include/apps -I $(COMPONENTS_DIR)/lwip/lwip/src/include/netif -I $(COMPONENTS_DIR)/lwip/lwip/src/include/posix -I $(COMPONENTS_DIR)/lwip/port/esp32/include -I $(COMPONENTS_DIR)/lwip/lwip/src/include/posix -I $(COMPONENTS_DIR)/lwip/include/apps/ping -I $(COMPONENTS_DIR)/lwip/include/apps/sntp -I $(COMPONENTS_DIR)/soc/esp32/include -I $(COMPONENTS_DIR)/soc/include -I $(COMPONENTS_DIR)/tcpip_adapter/include -I $(COMPONENTS_DIR)/esp_rom/include -I $(COMPONENTS_DIR)/esp_common/include -I $(COMPONENTS_DIR)/xtensa/include -I $(COMPONENTS_DIR)/xtensa/esp32/include -I $(COMPONENTS_DIR)/esp_wifi/include -I $(COMPONENTS_DIR)/esp_event/include -I $(COMPONENTS_DIR)/freertos/xtensa/include -I $(COMPONENTS_DIR)/esp_system/include -I $(COMPONENTS_DIR)/esp_timer/include -I $(COMPONENTS_DIR)/soc/include -I $(COMPONENTS_DIR)/soc/include -I $(COMPONENTS_DIR)/soc/src/esp32/include -I $(COMPONENTS_DIR)/soc/esp32/include -I $(COMPONENTS_DIR)/esp_netif/include -I $(COMPONENTS_DIR)/esp_eth/include -I $(COMPONENTS_DIR)/esp_netif/lwip -I $(COMPONENTS_DIR)/hal/include -I $(COMPONENTS_DIR)/hal/esp32/include -I $(COMPILER_ICLUDE_DIR)/include TEST_NAME=test FUZZ=afl-fuzz GEN_CFG=generate_config diff --git a/components/mdns/test_afl_fuzz_host/Makefile b/components/mdns/test_afl_fuzz_host/Makefile index e8ad152323..d636e3758a 100644 --- a/components/mdns/test_afl_fuzz_host/Makefile +++ b/components/mdns/test_afl_fuzz_host/Makefile @@ -28,8 +28,8 @@ CFLAGS=-g -Wno-unused-value -Wno-missing-declarations -Wno-pointer-bool-conversi -I$(COMPONENTS_DIR)/lwip/port/esp32/include \ -I$(COMPONENTS_DIR)/lwip/lwip/src/include/lwip/apps \ -I$(COMPONENTS_DIR)/soc/include \ - -I$(COMPONENTS_DIR)/soc/soc/include \ - -I$(COMPONENTS_DIR)/soc/soc/esp32/include \ + -I$(COMPONENTS_DIR)/soc/include \ + -I$(COMPONENTS_DIR)/soc/esp32/include \ -I$(COMPONENTS_DIR)/soc/src/esp32/include \ -I$(COMPONENTS_DIR)/tcpip_adapter/include \ -I$(COMPONENTS_DIR)/xtensa/include \ diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index 67ef7bc045..47b68ee56c 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -1,13 +1,10 @@ idf_build_get_property(target IDF_TARGET) -idf_component_register(SRCS "src/lldesc.c" - "src/soc_include_legacy_warn.c" - "src/memory_layout_utils.c" +idf_component_register(SRCS "lldesc.c" + "soc_include_legacy_warn.c" + "memory_layout_utils.c" INCLUDE_DIRS include PRIV_REQUIRES hal # [refactor-todo] soc dependency on hal for rtc sources LDFRAGMENTS linker.lf) -add_subdirectory(soc) - -add_subdirectory(src/${target}) -target_link_libraries(${COMPONENT_LIB} PUBLIC "soc_${target}") +add_subdirectory(${target}) \ No newline at end of file diff --git a/components/soc/README.md b/components/soc/README.md index d29d692bd7..6e6d4b127c 100644 --- a/components/soc/README.md +++ b/components/soc/README.md @@ -1,33 +1,10 @@ ## `soc` ## -The `soc` component provides provides hardware description and hardware support functionality for targets supported by ESP-IDF. This is reflected in the component's subdirectories: - -- `soc/include` - abstraction -- `soc/soc` - description -- `soc/src` - implementation - -#### `soc/include` #### - -`soc/include` contains header files which provide a hardware-agnostic interface to the SoC. The interface consists of -function declarations and abstracted types that other, higher level components can make use of in order to have code portable to -all targets ESP-IDF supports. - -The `soc` subdirectory contains other useful interface for SoC-level operations or concepts, such as the memory layout, spinlocks, etc. - -#### `soc/soc` #### - -The `soc/soc` subdirectory contains description of the underlying hardware: +The `soc` component provides hardware description for targets supported by ESP-IDF. - `xxx_reg.h` - defines registers related to the hardware - `xxx_struct.h` - hardware description in C `struct` - `xxx_channel.h` - definitions for hardware with multiple channels - `xxx_caps.h` - features/capabilities of the hardware - `xxx_pins.h` - pin definitions - - `xxx_periph.h/*.c` - includes all headers related to a peripheral; declaration and definition of IO mapping for that hardware - -Since the hardware description is target-specific, there are subdirectories for each target containing copies of the files above. -Furthermore, the files in this directory should be standalone, i.e. should not include files from outside directories. - -#### `soc/src` #### - -Provides the interface about the memory, I2C, and Real_Time Clock functions. \ No newline at end of file + - `xxx_periph.h/*.c` - includes all headers related to a peripheral; declaration and definition of IO mapping for that hardware \ No newline at end of file diff --git a/components/soc/component.mk b/components/soc/component.mk index 23d74c38e1..74c217e192 100644 --- a/components/soc/component.mk +++ b/components/soc/component.mk @@ -1,14 +1,4 @@ -SOC_NAME := $(IDF_TARGET) - -COMPONENT_SRCDIRS := src -COMPONENT_ADD_INCLUDEDIRS := - -# Since there can be chip-specific HAL headers which can include the common -# HAL header via include_next, process the build scripts here first so that -# include directories appear first in the compile command. --include $(COMPONENT_PATH)/src/$(SOC_NAME)/component.mk -COMPONENT_ADD_INCLUDEDIRS += include - --include $(COMPONENT_PATH)/soc/component.mk +COMPONENT_SRCDIRS := . $(IDF_TARGET) +COMPONENT_ADD_INCLUDEDIRS := include $(IDF_TARGET) $(IDF_TARGET)/include COMPONENT_ADD_LDFRAGMENTS += linker.lf diff --git a/components/soc/src/esp32/CMakeLists.txt b/components/soc/esp32/CMakeLists.txt similarity index 63% rename from components/soc/src/esp32/CMakeLists.txt rename to components/soc/esp32/CMakeLists.txt index 3f1279d3f6..71e3aeeb32 100644 --- a/components/soc/src/esp32/CMakeLists.txt +++ b/components/soc/esp32/CMakeLists.txt @@ -1,13 +1,27 @@ set(srcs + "adc_periph.c" + "dac_periph.c" + "gpio_periph.c" + "i2c_periph.c" + "i2s_periph.c" + "interrupts.c" + "pcnt_periph.c" + "ledc_periph.c" "rtc_clk.c" "rtc_clk_init.c" "rtc_init.c" + "rtc_io_periph.c" + "rtc_periph.c" "rtc_pm.c" "rtc_sleep.c" "rtc_time.c" "rtc_wdt.c" + "sdio_slave_periph.c" + "sdmmc_periph.c" "soc_memory_layout.c" -) + "spi_periph.c" + "touch_sensor_periph.c" + "uart_periph.c") add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") diff --git a/components/soc/soc/esp32/adc_periph.c b/components/soc/esp32/adc_periph.c similarity index 100% rename from components/soc/soc/esp32/adc_periph.c rename to components/soc/esp32/adc_periph.c diff --git a/components/soc/soc/esp32/dac_periph.c b/components/soc/esp32/dac_periph.c similarity index 100% rename from components/soc/soc/esp32/dac_periph.c rename to components/soc/esp32/dac_periph.c diff --git a/components/soc/soc/esp32/gpio_periph.c b/components/soc/esp32/gpio_periph.c similarity index 100% rename from components/soc/soc/esp32/gpio_periph.c rename to components/soc/esp32/gpio_periph.c diff --git a/components/soc/soc/esp32/i2c_periph.c b/components/soc/esp32/i2c_periph.c similarity index 100% rename from components/soc/soc/esp32/i2c_periph.c rename to components/soc/esp32/i2c_periph.c diff --git a/components/soc/soc/esp32/i2s_periph.c b/components/soc/esp32/i2s_periph.c similarity index 100% rename from components/soc/soc/esp32/i2s_periph.c rename to components/soc/esp32/i2s_periph.c diff --git a/components/soc/soc/esp32/include/soc/adc_channel.h b/components/soc/esp32/include/soc/adc_channel.h similarity index 100% rename from components/soc/soc/esp32/include/soc/adc_channel.h rename to components/soc/esp32/include/soc/adc_channel.h diff --git a/components/soc/soc/esp32/include/soc/apb_ctrl_reg.h b/components/soc/esp32/include/soc/apb_ctrl_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/apb_ctrl_reg.h rename to components/soc/esp32/include/soc/apb_ctrl_reg.h diff --git a/components/soc/soc/esp32/include/soc/apb_ctrl_struct.h b/components/soc/esp32/include/soc/apb_ctrl_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/apb_ctrl_struct.h rename to components/soc/esp32/include/soc/apb_ctrl_struct.h diff --git a/components/soc/soc/esp32/include/soc/bb_reg.h b/components/soc/esp32/include/soc/bb_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/bb_reg.h rename to components/soc/esp32/include/soc/bb_reg.h diff --git a/components/soc/soc/esp32/include/soc/boot_mode.h b/components/soc/esp32/include/soc/boot_mode.h similarity index 100% rename from components/soc/soc/esp32/include/soc/boot_mode.h rename to components/soc/esp32/include/soc/boot_mode.h diff --git a/components/soc/soc/esp32/include/soc/can_periph.h b/components/soc/esp32/include/soc/can_periph.h similarity index 100% rename from components/soc/soc/esp32/include/soc/can_periph.h rename to components/soc/esp32/include/soc/can_periph.h diff --git a/components/soc/soc/esp32/include/soc/can_struct.h b/components/soc/esp32/include/soc/can_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/can_struct.h rename to components/soc/esp32/include/soc/can_struct.h diff --git a/components/soc/soc/esp32/include/soc/clkout_channel.h b/components/soc/esp32/include/soc/clkout_channel.h similarity index 100% rename from components/soc/soc/esp32/include/soc/clkout_channel.h rename to components/soc/esp32/include/soc/clkout_channel.h diff --git a/components/soc/soc/esp32/include/soc/dac_channel.h b/components/soc/esp32/include/soc/dac_channel.h similarity index 100% rename from components/soc/soc/esp32/include/soc/dac_channel.h rename to components/soc/esp32/include/soc/dac_channel.h diff --git a/components/soc/soc/esp32/include/soc/dport_access.h b/components/soc/esp32/include/soc/dport_access.h similarity index 100% rename from components/soc/soc/esp32/include/soc/dport_access.h rename to components/soc/esp32/include/soc/dport_access.h diff --git a/components/soc/soc/esp32/include/soc/dport_reg.h b/components/soc/esp32/include/soc/dport_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/dport_reg.h rename to components/soc/esp32/include/soc/dport_reg.h diff --git a/components/soc/soc/esp32/include/soc/efuse_reg.h b/components/soc/esp32/include/soc/efuse_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/efuse_reg.h rename to components/soc/esp32/include/soc/efuse_reg.h diff --git a/components/soc/soc/esp32/include/soc/emac_dma_struct.h b/components/soc/esp32/include/soc/emac_dma_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/emac_dma_struct.h rename to components/soc/esp32/include/soc/emac_dma_struct.h diff --git a/components/soc/soc/esp32/include/soc/emac_ext_struct.h b/components/soc/esp32/include/soc/emac_ext_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/emac_ext_struct.h rename to components/soc/esp32/include/soc/emac_ext_struct.h diff --git a/components/soc/soc/esp32/include/soc/emac_mac_struct.h b/components/soc/esp32/include/soc/emac_mac_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/emac_mac_struct.h rename to components/soc/esp32/include/soc/emac_mac_struct.h diff --git a/components/soc/soc/esp32/include/soc/fe_reg.h b/components/soc/esp32/include/soc/fe_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/fe_reg.h rename to components/soc/esp32/include/soc/fe_reg.h diff --git a/components/soc/soc/esp32/include/soc/frc_timer_reg.h b/components/soc/esp32/include/soc/frc_timer_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/frc_timer_reg.h rename to components/soc/esp32/include/soc/frc_timer_reg.h diff --git a/components/soc/soc/esp32/include/soc/gpio_pins.h b/components/soc/esp32/include/soc/gpio_pins.h similarity index 100% rename from components/soc/soc/esp32/include/soc/gpio_pins.h rename to components/soc/esp32/include/soc/gpio_pins.h diff --git a/components/soc/soc/esp32/include/soc/gpio_reg.h b/components/soc/esp32/include/soc/gpio_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/gpio_reg.h rename to components/soc/esp32/include/soc/gpio_reg.h diff --git a/components/soc/soc/esp32/include/soc/gpio_sd_reg.h b/components/soc/esp32/include/soc/gpio_sd_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/gpio_sd_reg.h rename to components/soc/esp32/include/soc/gpio_sd_reg.h diff --git a/components/soc/soc/esp32/include/soc/gpio_sd_struct.h b/components/soc/esp32/include/soc/gpio_sd_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/gpio_sd_struct.h rename to components/soc/esp32/include/soc/gpio_sd_struct.h diff --git a/components/soc/soc/esp32/include/soc/gpio_sig_map.h b/components/soc/esp32/include/soc/gpio_sig_map.h similarity index 100% rename from components/soc/soc/esp32/include/soc/gpio_sig_map.h rename to components/soc/esp32/include/soc/gpio_sig_map.h diff --git a/components/soc/soc/esp32/include/soc/gpio_struct.h b/components/soc/esp32/include/soc/gpio_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/gpio_struct.h rename to components/soc/esp32/include/soc/gpio_struct.h diff --git a/components/soc/soc/esp32/include/soc/hinf_reg.h b/components/soc/esp32/include/soc/hinf_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/hinf_reg.h rename to components/soc/esp32/include/soc/hinf_reg.h diff --git a/components/soc/soc/esp32/include/soc/hinf_struct.h b/components/soc/esp32/include/soc/hinf_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/hinf_struct.h rename to components/soc/esp32/include/soc/hinf_struct.h diff --git a/components/soc/soc/esp32/include/soc/host_reg.h b/components/soc/esp32/include/soc/host_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/host_reg.h rename to components/soc/esp32/include/soc/host_reg.h diff --git a/components/soc/soc/esp32/include/soc/host_struct.h b/components/soc/esp32/include/soc/host_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/host_struct.h rename to components/soc/esp32/include/soc/host_struct.h diff --git a/components/soc/soc/esp32/include/soc/hwcrypto_reg.h b/components/soc/esp32/include/soc/hwcrypto_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/hwcrypto_reg.h rename to components/soc/esp32/include/soc/hwcrypto_reg.h diff --git a/components/soc/soc/esp32/include/soc/i2c_reg.h b/components/soc/esp32/include/soc/i2c_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/i2c_reg.h rename to components/soc/esp32/include/soc/i2c_reg.h diff --git a/components/soc/soc/esp32/include/soc/i2c_struct.h b/components/soc/esp32/include/soc/i2c_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/i2c_struct.h rename to components/soc/esp32/include/soc/i2c_struct.h diff --git a/components/soc/soc/esp32/include/soc/i2s_reg.h b/components/soc/esp32/include/soc/i2s_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/i2s_reg.h rename to components/soc/esp32/include/soc/i2s_reg.h diff --git a/components/soc/soc/esp32/include/soc/i2s_struct.h b/components/soc/esp32/include/soc/i2s_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/i2s_struct.h rename to components/soc/esp32/include/soc/i2s_struct.h diff --git a/components/soc/soc/esp32/include/soc/io_mux_reg.h b/components/soc/esp32/include/soc/io_mux_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/io_mux_reg.h rename to components/soc/esp32/include/soc/io_mux_reg.h diff --git a/components/soc/soc/esp32/include/soc/ledc_reg.h b/components/soc/esp32/include/soc/ledc_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/ledc_reg.h rename to components/soc/esp32/include/soc/ledc_reg.h diff --git a/components/soc/soc/esp32/include/soc/ledc_struct.h b/components/soc/esp32/include/soc/ledc_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/ledc_struct.h rename to components/soc/esp32/include/soc/ledc_struct.h diff --git a/components/soc/soc/esp32/include/soc/mcpwm_reg.h b/components/soc/esp32/include/soc/mcpwm_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/mcpwm_reg.h rename to components/soc/esp32/include/soc/mcpwm_reg.h diff --git a/components/soc/soc/esp32/include/soc/mcpwm_struct.h b/components/soc/esp32/include/soc/mcpwm_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/mcpwm_struct.h rename to components/soc/esp32/include/soc/mcpwm_struct.h diff --git a/components/soc/soc/esp32/include/soc/nrx_reg.h b/components/soc/esp32/include/soc/nrx_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/nrx_reg.h rename to components/soc/esp32/include/soc/nrx_reg.h diff --git a/components/soc/soc/esp32/include/soc/pcnt_reg.h b/components/soc/esp32/include/soc/pcnt_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/pcnt_reg.h rename to components/soc/esp32/include/soc/pcnt_reg.h diff --git a/components/soc/soc/esp32/include/soc/pcnt_struct.h b/components/soc/esp32/include/soc/pcnt_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/pcnt_struct.h rename to components/soc/esp32/include/soc/pcnt_struct.h diff --git a/components/soc/soc/esp32/include/soc/periph_defs.h b/components/soc/esp32/include/soc/periph_defs.h similarity index 100% rename from components/soc/soc/esp32/include/soc/periph_defs.h rename to components/soc/esp32/include/soc/periph_defs.h diff --git a/components/soc/soc/esp32/include/soc/pid.h b/components/soc/esp32/include/soc/pid.h similarity index 100% rename from components/soc/soc/esp32/include/soc/pid.h rename to components/soc/esp32/include/soc/pid.h diff --git a/components/soc/soc/esp32/include/soc/rmt_reg.h b/components/soc/esp32/include/soc/rmt_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rmt_reg.h rename to components/soc/esp32/include/soc/rmt_reg.h diff --git a/components/soc/soc/esp32/include/soc/rmt_struct.h b/components/soc/esp32/include/soc/rmt_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rmt_struct.h rename to components/soc/esp32/include/soc/rmt_struct.h diff --git a/components/soc/soc/esp32/include/soc/rsa_caps.h b/components/soc/esp32/include/soc/rsa_caps.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rsa_caps.h rename to components/soc/esp32/include/soc/rsa_caps.h diff --git a/components/soc/soc/esp32/include/soc/rtc.h b/components/soc/esp32/include/soc/rtc.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc.h rename to components/soc/esp32/include/soc/rtc.h diff --git a/components/soc/soc/esp32/include/soc/rtc_cntl_reg.h b/components/soc/esp32/include/soc/rtc_cntl_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc_cntl_reg.h rename to components/soc/esp32/include/soc/rtc_cntl_reg.h diff --git a/components/soc/soc/esp32/include/soc/rtc_cntl_struct.h b/components/soc/esp32/include/soc/rtc_cntl_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc_cntl_struct.h rename to components/soc/esp32/include/soc/rtc_cntl_struct.h diff --git a/components/soc/soc/esp32/include/soc/rtc_i2c_reg.h b/components/soc/esp32/include/soc/rtc_i2c_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc_i2c_reg.h rename to components/soc/esp32/include/soc/rtc_i2c_reg.h diff --git a/components/soc/soc/esp32/include/soc/rtc_io_channel.h b/components/soc/esp32/include/soc/rtc_io_channel.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc_io_channel.h rename to components/soc/esp32/include/soc/rtc_io_channel.h diff --git a/components/soc/soc/esp32/include/soc/rtc_io_reg.h b/components/soc/esp32/include/soc/rtc_io_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc_io_reg.h rename to components/soc/esp32/include/soc/rtc_io_reg.h diff --git a/components/soc/soc/esp32/include/soc/rtc_io_struct.h b/components/soc/esp32/include/soc/rtc_io_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/rtc_io_struct.h rename to components/soc/esp32/include/soc/rtc_io_struct.h diff --git a/components/soc/soc/esp32/include/soc/sdio_slave_pins.h b/components/soc/esp32/include/soc/sdio_slave_pins.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sdio_slave_pins.h rename to components/soc/esp32/include/soc/sdio_slave_pins.h diff --git a/components/soc/soc/esp32/include/soc/sdmmc_pins.h b/components/soc/esp32/include/soc/sdmmc_pins.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sdmmc_pins.h rename to components/soc/esp32/include/soc/sdmmc_pins.h diff --git a/components/soc/soc/esp32/include/soc/sdmmc_reg.h b/components/soc/esp32/include/soc/sdmmc_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sdmmc_reg.h rename to components/soc/esp32/include/soc/sdmmc_reg.h diff --git a/components/soc/soc/esp32/include/soc/sdmmc_struct.h b/components/soc/esp32/include/soc/sdmmc_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sdmmc_struct.h rename to components/soc/esp32/include/soc/sdmmc_struct.h diff --git a/components/soc/soc/esp32/include/soc/sens_reg.h b/components/soc/esp32/include/soc/sens_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sens_reg.h rename to components/soc/esp32/include/soc/sens_reg.h diff --git a/components/soc/soc/esp32/include/soc/sens_struct.h b/components/soc/esp32/include/soc/sens_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sens_struct.h rename to components/soc/esp32/include/soc/sens_struct.h diff --git a/components/soc/soc/esp32/include/soc/sha_caps.h b/components/soc/esp32/include/soc/sha_caps.h similarity index 100% rename from components/soc/soc/esp32/include/soc/sha_caps.h rename to components/soc/esp32/include/soc/sha_caps.h diff --git a/components/soc/soc/esp32/include/soc/slc_reg.h b/components/soc/esp32/include/soc/slc_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/slc_reg.h rename to components/soc/esp32/include/soc/slc_reg.h diff --git a/components/soc/soc/esp32/include/soc/slc_struct.h b/components/soc/esp32/include/soc/slc_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/slc_struct.h rename to components/soc/esp32/include/soc/slc_struct.h diff --git a/components/soc/soc/esp32/include/soc/soc.h b/components/soc/esp32/include/soc/soc.h similarity index 100% rename from components/soc/soc/esp32/include/soc/soc.h rename to components/soc/esp32/include/soc/soc.h diff --git a/components/soc/soc/esp32/include/soc/soc_caps.h b/components/soc/esp32/include/soc/soc_caps.h similarity index 100% rename from components/soc/soc/esp32/include/soc/soc_caps.h rename to components/soc/esp32/include/soc/soc_caps.h diff --git a/components/soc/soc/esp32/include/soc/soc_pins.h b/components/soc/esp32/include/soc/soc_pins.h similarity index 100% rename from components/soc/soc/esp32/include/soc/soc_pins.h rename to components/soc/esp32/include/soc/soc_pins.h diff --git a/components/soc/soc/esp32/include/soc/soc_ulp.h b/components/soc/esp32/include/soc/soc_ulp.h similarity index 100% rename from components/soc/soc/esp32/include/soc/soc_ulp.h rename to components/soc/esp32/include/soc/soc_ulp.h diff --git a/components/soc/soc/esp32/include/soc/spi_pins.h b/components/soc/esp32/include/soc/spi_pins.h similarity index 100% rename from components/soc/soc/esp32/include/soc/spi_pins.h rename to components/soc/esp32/include/soc/spi_pins.h diff --git a/components/soc/soc/esp32/include/soc/spi_reg.h b/components/soc/esp32/include/soc/spi_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/spi_reg.h rename to components/soc/esp32/include/soc/spi_reg.h diff --git a/components/soc/soc/esp32/include/soc/spi_struct.h b/components/soc/esp32/include/soc/spi_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/spi_struct.h rename to components/soc/esp32/include/soc/spi_struct.h diff --git a/components/soc/soc/esp32/include/soc/syscon_reg.h b/components/soc/esp32/include/soc/syscon_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/syscon_reg.h rename to components/soc/esp32/include/soc/syscon_reg.h diff --git a/components/soc/soc/esp32/include/soc/syscon_struct.h b/components/soc/esp32/include/soc/syscon_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/syscon_struct.h rename to components/soc/esp32/include/soc/syscon_struct.h diff --git a/components/soc/soc/esp32/include/soc/timer_group_reg.h b/components/soc/esp32/include/soc/timer_group_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/timer_group_reg.h rename to components/soc/esp32/include/soc/timer_group_reg.h diff --git a/components/soc/soc/esp32/include/soc/timer_group_struct.h b/components/soc/esp32/include/soc/timer_group_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/timer_group_struct.h rename to components/soc/esp32/include/soc/timer_group_struct.h diff --git a/components/soc/soc/esp32/include/soc/touch_sensor_channel.h b/components/soc/esp32/include/soc/touch_sensor_channel.h similarity index 100% rename from components/soc/soc/esp32/include/soc/touch_sensor_channel.h rename to components/soc/esp32/include/soc/touch_sensor_channel.h diff --git a/components/soc/soc/esp32/include/soc/twai_struct.h b/components/soc/esp32/include/soc/twai_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/twai_struct.h rename to components/soc/esp32/include/soc/twai_struct.h diff --git a/components/soc/soc/esp32/include/soc/uart_channel.h b/components/soc/esp32/include/soc/uart_channel.h similarity index 100% rename from components/soc/soc/esp32/include/soc/uart_channel.h rename to components/soc/esp32/include/soc/uart_channel.h diff --git a/components/soc/soc/esp32/include/soc/uart_reg.h b/components/soc/esp32/include/soc/uart_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/uart_reg.h rename to components/soc/esp32/include/soc/uart_reg.h diff --git a/components/soc/soc/esp32/include/soc/uart_struct.h b/components/soc/esp32/include/soc/uart_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/uart_struct.h rename to components/soc/esp32/include/soc/uart_struct.h diff --git a/components/soc/soc/esp32/include/soc/uhci_reg.h b/components/soc/esp32/include/soc/uhci_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/uhci_reg.h rename to components/soc/esp32/include/soc/uhci_reg.h diff --git a/components/soc/soc/esp32/include/soc/uhci_struct.h b/components/soc/esp32/include/soc/uhci_struct.h similarity index 100% rename from components/soc/soc/esp32/include/soc/uhci_struct.h rename to components/soc/esp32/include/soc/uhci_struct.h diff --git a/components/soc/soc/esp32/include/soc/wdev_reg.h b/components/soc/esp32/include/soc/wdev_reg.h similarity index 100% rename from components/soc/soc/esp32/include/soc/wdev_reg.h rename to components/soc/esp32/include/soc/wdev_reg.h diff --git a/components/soc/soc/esp32/interrupts.c b/components/soc/esp32/interrupts.c similarity index 100% rename from components/soc/soc/esp32/interrupts.c rename to components/soc/esp32/interrupts.c diff --git a/components/soc/soc/esp32/ledc_periph.c b/components/soc/esp32/ledc_periph.c similarity index 100% rename from components/soc/soc/esp32/ledc_periph.c rename to components/soc/esp32/ledc_periph.c diff --git a/components/soc/soc/esp32/pcnt_periph.c b/components/soc/esp32/pcnt_periph.c similarity index 100% rename from components/soc/soc/esp32/pcnt_periph.c rename to components/soc/esp32/pcnt_periph.c diff --git a/components/soc/soc/esp32/private_include/regi2c_apll.h b/components/soc/esp32/private_include/regi2c_apll.h similarity index 100% rename from components/soc/soc/esp32/private_include/regi2c_apll.h rename to components/soc/esp32/private_include/regi2c_apll.h diff --git a/components/soc/soc/esp32/private_include/regi2c_bbpll.h b/components/soc/esp32/private_include/regi2c_bbpll.h similarity index 100% rename from components/soc/soc/esp32/private_include/regi2c_bbpll.h rename to components/soc/esp32/private_include/regi2c_bbpll.h diff --git a/components/soc/src/esp32/regi2c_ctrl.h b/components/soc/esp32/regi2c_ctrl.h similarity index 100% rename from components/soc/src/esp32/regi2c_ctrl.h rename to components/soc/esp32/regi2c_ctrl.h diff --git a/components/soc/src/esp32/rtc_clk.c b/components/soc/esp32/rtc_clk.c similarity index 100% rename from components/soc/src/esp32/rtc_clk.c rename to components/soc/esp32/rtc_clk.c diff --git a/components/soc/src/esp32/rtc_clk_common.h b/components/soc/esp32/rtc_clk_common.h similarity index 96% rename from components/soc/src/esp32/rtc_clk_common.h rename to components/soc/esp32/rtc_clk_common.h index 7b7f1bb220..b6ae3ca2e4 100644 --- a/components/soc/src/esp32/rtc_clk_common.h +++ b/components/soc/esp32/rtc_clk_common.h @@ -14,6 +14,9 @@ #pragma once +#include +#include + #define MHZ (1000000) #ifdef __cplusplus diff --git a/components/soc/src/esp32/rtc_clk_init.c b/components/soc/esp32/rtc_clk_init.c similarity index 100% rename from components/soc/src/esp32/rtc_clk_init.c rename to components/soc/esp32/rtc_clk_init.c diff --git a/components/soc/src/esp32/rtc_init.c b/components/soc/esp32/rtc_init.c similarity index 100% rename from components/soc/src/esp32/rtc_init.c rename to components/soc/esp32/rtc_init.c diff --git a/components/soc/soc/esp32/rtc_io_periph.c b/components/soc/esp32/rtc_io_periph.c similarity index 100% rename from components/soc/soc/esp32/rtc_io_periph.c rename to components/soc/esp32/rtc_io_periph.c diff --git a/components/soc/soc/esp32/rtc_periph.c b/components/soc/esp32/rtc_periph.c similarity index 100% rename from components/soc/soc/esp32/rtc_periph.c rename to components/soc/esp32/rtc_periph.c diff --git a/components/soc/src/esp32/rtc_pm.c b/components/soc/esp32/rtc_pm.c similarity index 100% rename from components/soc/src/esp32/rtc_pm.c rename to components/soc/esp32/rtc_pm.c diff --git a/components/soc/src/esp32/rtc_sleep.c b/components/soc/esp32/rtc_sleep.c similarity index 100% rename from components/soc/src/esp32/rtc_sleep.c rename to components/soc/esp32/rtc_sleep.c diff --git a/components/soc/src/esp32/rtc_time.c b/components/soc/esp32/rtc_time.c similarity index 100% rename from components/soc/src/esp32/rtc_time.c rename to components/soc/esp32/rtc_time.c diff --git a/components/soc/src/esp32/rtc_wdt.c b/components/soc/esp32/rtc_wdt.c similarity index 100% rename from components/soc/src/esp32/rtc_wdt.c rename to components/soc/esp32/rtc_wdt.c diff --git a/components/soc/soc/esp32/sdio_slave_periph.c b/components/soc/esp32/sdio_slave_periph.c similarity index 100% rename from components/soc/soc/esp32/sdio_slave_periph.c rename to components/soc/esp32/sdio_slave_periph.c diff --git a/components/soc/soc/esp32/sdmmc_periph.c b/components/soc/esp32/sdmmc_periph.c similarity index 100% rename from components/soc/soc/esp32/sdmmc_periph.c rename to components/soc/esp32/sdmmc_periph.c diff --git a/components/soc/src/esp32/soc_memory_layout.c b/components/soc/esp32/soc_memory_layout.c similarity index 100% rename from components/soc/src/esp32/soc_memory_layout.c rename to components/soc/esp32/soc_memory_layout.c diff --git a/components/soc/soc/esp32/spi_periph.c b/components/soc/esp32/spi_periph.c similarity index 100% rename from components/soc/soc/esp32/spi_periph.c rename to components/soc/esp32/spi_periph.c diff --git a/components/soc/soc/esp32/touch_sensor_periph.c b/components/soc/esp32/touch_sensor_periph.c similarity index 100% rename from components/soc/soc/esp32/touch_sensor_periph.c rename to components/soc/esp32/touch_sensor_periph.c diff --git a/components/soc/soc/esp32/uart_periph.c b/components/soc/esp32/uart_periph.c similarity index 100% rename from components/soc/soc/esp32/uart_periph.c rename to components/soc/esp32/uart_periph.c diff --git a/components/soc/esp32s2/CMakeLists.txt b/components/soc/esp32s2/CMakeLists.txt new file mode 100644 index 0000000000..698337c934 --- /dev/null +++ b/components/soc/esp32s2/CMakeLists.txt @@ -0,0 +1,35 @@ +set(srcs + "adc_periph.c" + "dac_periph.c" + "dedic_gpio_periph.c" + "gpio_periph.c" + "i2c_periph.c" + "i2s_periph.c" + "interrupts.c" + "ledc_periph.c" + "pcnt_periph.c" + "regi2c_ctrl.c" + "rtc_clk.c" + "rtc_clk_init.c" + "rtc_init.c" + "rtc_io_periph.c" + "rtc_periph.c" + "rtc_pm.c" + "rtc_sleep.c" + "rtc_time.c" + "rtc_wdt.c" + "soc_memory_layout.c" + "spi_periph.c" + "touch_sensor_periph.c" + "uart_periph.c" + "usb_periph.c") + +add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") + +target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") +target_include_directories(${COMPONENT_LIB} PUBLIC . include) + +if(NOT CMAKE_BUILD_EARLY_EXPANSION) + set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES + COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") +endif() diff --git a/components/soc/soc/esp32s2/adc_periph.c b/components/soc/esp32s2/adc_periph.c similarity index 100% rename from components/soc/soc/esp32s2/adc_periph.c rename to components/soc/esp32s2/adc_periph.c diff --git a/components/soc/soc/esp32s2/dac_periph.c b/components/soc/esp32s2/dac_periph.c similarity index 100% rename from components/soc/soc/esp32s2/dac_periph.c rename to components/soc/esp32s2/dac_periph.c diff --git a/components/soc/soc/esp32s2/dedic_gpio_periph.c b/components/soc/esp32s2/dedic_gpio_periph.c similarity index 100% rename from components/soc/soc/esp32s2/dedic_gpio_periph.c rename to components/soc/esp32s2/dedic_gpio_periph.c diff --git a/components/soc/soc/esp32s2/gpio_periph.c b/components/soc/esp32s2/gpio_periph.c similarity index 100% rename from components/soc/soc/esp32s2/gpio_periph.c rename to components/soc/esp32s2/gpio_periph.c diff --git a/components/soc/esp32s2/i2c_apll.h b/components/soc/esp32s2/i2c_apll.h new file mode 100644 index 0000000000..909326f64e --- /dev/null +++ b/components/soc/esp32s2/i2c_apll.h @@ -0,0 +1,136 @@ +// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +/** + * @file i2c_apll.h + * @brief Register definitions for audio PLL (APLL) + * + * This file lists register fields of APLL, located on an internal configuration + * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by + * rtc_clk_apll_enable function in rtc_clk.c. + */ + +#define I2C_APLL 0X6D +#define I2C_APLL_HOSTID 1 + +#define I2C_APLL_IR_CAL_DELAY 0 +#define I2C_APLL_IR_CAL_DELAY_MSB 3 +#define I2C_APLL_IR_CAL_DELAY_LSB 0 + +#define I2C_APLL_IR_CAL_RSTB 0 +#define I2C_APLL_IR_CAL_RSTB_MSB 4 +#define I2C_APLL_IR_CAL_RSTB_LSB 4 + +#define I2C_APLL_IR_CAL_START 0 +#define I2C_APLL_IR_CAL_START_MSB 5 +#define I2C_APLL_IR_CAL_START_LSB 5 + +#define I2C_APLL_IR_CAL_UNSTOP 0 +#define I2C_APLL_IR_CAL_UNSTOP_MSB 6 +#define I2C_APLL_IR_CAL_UNSTOP_LSB 6 + +#define I2C_APLL_OC_ENB_FCAL 0 +#define I2C_APLL_OC_ENB_FCAL_MSB 7 +#define I2C_APLL_OC_ENB_FCAL_LSB 7 + +#define I2C_APLL_IR_CAL_EXT_CAP 1 +#define I2C_APLL_IR_CAL_EXT_CAP_MSB 4 +#define I2C_APLL_IR_CAL_EXT_CAP_LSB 0 + +#define I2C_APLL_IR_CAL_ENX_CAP 1 +#define I2C_APLL_IR_CAL_ENX_CAP_MSB 5 +#define I2C_APLL_IR_CAL_ENX_CAP_LSB 5 + +#define I2C_APLL_OC_LBW 1 +#define I2C_APLL_OC_LBW_MSB 6 +#define I2C_APLL_OC_LBW_LSB 6 + +#define I2C_APLL_IR_CAL_CK_DIV 2 +#define I2C_APLL_IR_CAL_CK_DIV_MSB 3 +#define I2C_APLL_IR_CAL_CK_DIV_LSB 0 + +#define I2C_APLL_OC_DCHGP 2 +#define I2C_APLL_OC_DCHGP_MSB 6 +#define I2C_APLL_OC_DCHGP_LSB 4 + +#define I2C_APLL_OC_ENB_VCON 2 +#define I2C_APLL_OC_ENB_VCON_MSB 7 +#define I2C_APLL_OC_ENB_VCON_LSB 7 + +#define I2C_APLL_OR_CAL_CAP 3 +#define I2C_APLL_OR_CAL_CAP_MSB 4 +#define I2C_APLL_OR_CAL_CAP_LSB 0 + +#define I2C_APLL_OR_CAL_UDF 3 +#define I2C_APLL_OR_CAL_UDF_MSB 5 +#define I2C_APLL_OR_CAL_UDF_LSB 5 + +#define I2C_APLL_OR_CAL_OVF 3 +#define I2C_APLL_OR_CAL_OVF_MSB 6 +#define I2C_APLL_OR_CAL_OVF_LSB 6 + +#define I2C_APLL_OR_CAL_END 3 +#define I2C_APLL_OR_CAL_END_MSB 7 +#define I2C_APLL_OR_CAL_END_LSB 7 + +#define I2C_APLL_OR_OUTPUT_DIV 4 +#define I2C_APLL_OR_OUTPUT_DIV_MSB 4 +#define I2C_APLL_OR_OUTPUT_DIV_LSB 0 + +#define I2C_APLL_OC_TSCHGP 4 +#define I2C_APLL_OC_TSCHGP_MSB 6 +#define I2C_APLL_OC_TSCHGP_LSB 6 + +#define I2C_APLL_EN_FAST_CAL 4 +#define I2C_APLL_EN_FAST_CAL_MSB 7 +#define I2C_APLL_EN_FAST_CAL_LSB 7 + +#define I2C_APLL_OC_DHREF_SEL 5 +#define I2C_APLL_OC_DHREF_SEL_MSB 1 +#define I2C_APLL_OC_DHREF_SEL_LSB 0 + +#define I2C_APLL_OC_DLREF_SEL 5 +#define I2C_APLL_OC_DLREF_SEL_MSB 3 +#define I2C_APLL_OC_DLREF_SEL_LSB 2 + +#define I2C_APLL_SDM_DITHER 5 +#define I2C_APLL_SDM_DITHER_MSB 4 +#define I2C_APLL_SDM_DITHER_LSB 4 + +#define I2C_APLL_SDM_STOP 5 +#define I2C_APLL_SDM_STOP_MSB 5 +#define I2C_APLL_SDM_STOP_LSB 5 + +#define I2C_APLL_SDM_RSTB 5 +#define I2C_APLL_SDM_RSTB_MSB 6 +#define I2C_APLL_SDM_RSTB_LSB 6 + +#define I2C_APLL_OC_DVDD 6 +#define I2C_APLL_OC_DVDD_MSB 4 +#define I2C_APLL_OC_DVDD_LSB 0 + +#define I2C_APLL_DSDM2 7 +#define I2C_APLL_DSDM2_MSB 5 +#define I2C_APLL_DSDM2_LSB 0 + +#define I2C_APLL_DSDM1 8 +#define I2C_APLL_DSDM1_MSB 7 +#define I2C_APLL_DSDM1_LSB 0 + +#define I2C_APLL_DSDM0 9 +#define I2C_APLL_DSDM0_MSB 7 +#define I2C_APLL_DSDM0_LSB 0 + diff --git a/components/soc/esp32s2/i2c_bbpll.h b/components/soc/esp32s2/i2c_bbpll.h new file mode 100644 index 0000000000..1f56a5f40d --- /dev/null +++ b/components/soc/esp32s2/i2c_bbpll.h @@ -0,0 +1,184 @@ +// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +/** + * @file i2c_apll.h + * @brief Register definitions for digital PLL (BBPLL) + * + * This file lists register fields of BBPLL, located on an internal configuration + * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by + * rtc_clk_cpu_freq_set function in rtc_clk.c. + */ + +#define I2C_BBPLL 0x66 +#define I2C_BBPLL_HOSTID 1 + +#define I2C_BBPLL_IR_CAL_DELAY 0 +#define I2C_BBPLL_IR_CAL_DELAY_MSB 3 +#define I2C_BBPLL_IR_CAL_DELAY_LSB 0 + +#define I2C_BBPLL_IR_CAL_CK_DIV 0 +#define I2C_BBPLL_IR_CAL_CK_DIV_MSB 7 +#define I2C_BBPLL_IR_CAL_CK_DIV_LSB 4 + +#define I2C_BBPLL_IR_CAL_EXT_CAP 1 +#define I2C_BBPLL_IR_CAL_EXT_CAP_MSB 3 +#define I2C_BBPLL_IR_CAL_EXT_CAP_LSB 0 + +#define I2C_BBPLL_IR_CAL_ENX_CAP 1 +#define I2C_BBPLL_IR_CAL_ENX_CAP_MSB 4 +#define I2C_BBPLL_IR_CAL_ENX_CAP_LSB 4 + +#define I2C_BBPLL_IR_CAL_RSTB 1 +#define I2C_BBPLL_IR_CAL_RSTB_MSB 5 +#define I2C_BBPLL_IR_CAL_RSTB_LSB 5 + +#define I2C_BBPLL_IR_CAL_START 1 +#define I2C_BBPLL_IR_CAL_START_MSB 6 +#define I2C_BBPLL_IR_CAL_START_LSB 6 + +#define I2C_BBPLL_IR_CAL_UNSTOP 1 +#define I2C_BBPLL_IR_CAL_UNSTOP_MSB 7 +#define I2C_BBPLL_IR_CAL_UNSTOP_LSB 7 + +#define I2C_BBPLL_OC_REF_DIV 2 +#define I2C_BBPLL_OC_REF_DIV_MSB 3 +#define I2C_BBPLL_OC_REF_DIV_LSB 0 + +#define I2C_BBPLL_OC_DCHGP 2 +#define I2C_BBPLL_OC_DCHGP_MSB 6 +#define I2C_BBPLL_OC_DCHGP_LSB 4 + +#define I2C_BBPLL_OC_ENB_FCAL 2 +#define I2C_BBPLL_OC_ENB_FCAL_MSB 7 +#define I2C_BBPLL_OC_ENB_FCAL_LSB 7 + +#define I2C_BBPLL_OC_DIV_7_0 3 +#define I2C_BBPLL_OC_DIV_7_0_MSB 7 +#define I2C_BBPLL_OC_DIV_7_0_LSB 0 + +#define I2C_BBPLL_RSTB_DIV_ADC 4 +#define I2C_BBPLL_RSTB_DIV_ADC_MSB 0 +#define I2C_BBPLL_RSTB_DIV_ADC_LSB 0 + +#define I2C_BBPLL_MODE_HF 4 +#define I2C_BBPLL_MODE_HF_MSB 1 +#define I2C_BBPLL_MODE_HF_LSB 1 + +#define I2C_BBPLL_DIV_ADC 4 +#define I2C_BBPLL_DIV_ADC_MSB 3 +#define I2C_BBPLL_DIV_ADC_LSB 2 + +#define I2C_BBPLL_DIV_DAC 4 +#define I2C_BBPLL_DIV_DAC_MSB 4 +#define I2C_BBPLL_DIV_DAC_LSB 4 + +#define I2C_BBPLL_DIV_CPU 4 +#define I2C_BBPLL_DIV_CPU_MSB 5 +#define I2C_BBPLL_DIV_CPU_LSB 5 + +#define I2C_BBPLL_OC_ENB_VCON 4 +#define I2C_BBPLL_OC_ENB_VCON_MSB 6 +#define I2C_BBPLL_OC_ENB_VCON_LSB 6 + +#define I2C_BBPLL_OC_TSCHGP 4 +#define I2C_BBPLL_OC_TSCHGP_MSB 7 +#define I2C_BBPLL_OC_TSCHGP_LSB 7 + +#define I2C_BBPLL_OC_DR1 5 +#define I2C_BBPLL_OC_DR1_MSB 2 +#define I2C_BBPLL_OC_DR1_LSB 0 + +#define I2C_BBPLL_OC_DR3 5 +#define I2C_BBPLL_OC_DR3_MSB 6 +#define I2C_BBPLL_OC_DR3_LSB 4 + +#define I2C_BBPLL_EN_USB 5 +#define I2C_BBPLL_EN_USB_MSB 7 +#define I2C_BBPLL_EN_USB_LSB 7 + +#define I2C_BBPLL_OC_DCUR 6 +#define I2C_BBPLL_OC_DCUR_MSB 2 +#define I2C_BBPLL_OC_DCUR_LSB 0 + +#define I2C_BBPLL_INC_CUR 6 +#define I2C_BBPLL_INC_CUR_MSB 3 +#define I2C_BBPLL_INC_CUR_LSB 3 + +#define I2C_BBPLL_OC_DHREF_SEL 6 +#define I2C_BBPLL_OC_DHREF_SEL_MSB 5 +#define I2C_BBPLL_OC_DHREF_SEL_LSB 4 + +#define I2C_BBPLL_OC_DLREF_SEL 6 +#define I2C_BBPLL_OC_DLREF_SEL_MSB 7 +#define I2C_BBPLL_OC_DLREF_SEL_LSB 6 + +#define I2C_BBPLL_OR_CAL_CAP 8 +#define I2C_BBPLL_OR_CAL_CAP_MSB 3 +#define I2C_BBPLL_OR_CAL_CAP_LSB 0 + +#define I2C_BBPLL_OR_CAL_UDF 8 +#define I2C_BBPLL_OR_CAL_UDF_MSB 4 +#define I2C_BBPLL_OR_CAL_UDF_LSB 4 + +#define I2C_BBPLL_OR_CAL_OVF 8 +#define I2C_BBPLL_OR_CAL_OVF_MSB 5 +#define I2C_BBPLL_OR_CAL_OVF_LSB 5 + +#define I2C_BBPLL_OR_CAL_END 8 +#define I2C_BBPLL_OR_CAL_END_MSB 6 +#define I2C_BBPLL_OR_CAL_END_LSB 6 + +#define I2C_BBPLL_OR_LOCK 8 +#define I2C_BBPLL_OR_LOCK_MSB 7 +#define I2C_BBPLL_OR_LOCK_LSB 7 + +#define I2C_BBPLL_BBADC_DELAY1 9 +#define I2C_BBPLL_BBADC_DELAY1_MSB 1 +#define I2C_BBPLL_BBADC_DELAY1_LSB 0 + +#define I2C_BBPLL_BBADC_DELAY2 9 +#define I2C_BBPLL_BBADC_DELAY2_MSB 3 +#define I2C_BBPLL_BBADC_DELAY2_LSB 2 + +#define I2C_BBPLL_BBADC_DVDD 9 +#define I2C_BBPLL_BBADC_DVDD_MSB 5 +#define I2C_BBPLL_BBADC_DVDD_LSB 4 + +#define I2C_BBPLL_BBADC_DREF 9 +#define I2C_BBPLL_BBADC_DREF_MSB 7 +#define I2C_BBPLL_BBADC_DREF_LSB 6 + +#define I2C_BBPLL_BBADC_DCUR 10 +#define I2C_BBPLL_BBADC_DCUR_MSB 1 +#define I2C_BBPLL_BBADC_DCUR_LSB 0 + +#define I2C_BBPLL_BBADC_INPUT_SHORT 10 +#define I2C_BBPLL_BBADC_INPUT_SHORT_MSB 2 +#define I2C_BBPLL_BBADC_INPUT_SHORT_LSB 2 + +#define I2C_BBPLL_ENT_PLL 10 +#define I2C_BBPLL_ENT_PLL_MSB 3 +#define I2C_BBPLL_ENT_PLL_LSB 3 + +#define I2C_BBPLL_DTEST 10 +#define I2C_BBPLL_DTEST_MSB 5 +#define I2C_BBPLL_DTEST_LSB 4 + +#define I2C_BBPLL_ENT_ADC 10 +#define I2C_BBPLL_ENT_ADC_MSB 7 +#define I2C_BBPLL_ENT_ADC_LSB 6 + diff --git a/components/soc/soc/esp32s2/i2c_periph.c b/components/soc/esp32s2/i2c_periph.c similarity index 100% rename from components/soc/soc/esp32s2/i2c_periph.c rename to components/soc/esp32s2/i2c_periph.c diff --git a/components/soc/esp32s2/i2c_ulp.h b/components/soc/esp32s2/i2c_ulp.h new file mode 100644 index 0000000000..e7f4afa08f --- /dev/null +++ b/components/soc/esp32s2/i2c_ulp.h @@ -0,0 +1,39 @@ +// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +/** + * @file i2c_ulp.h + * @brief Register definitions for analog to calibrate o_code for getting a more precise voltage. + * + * This file lists register fields of ULP, located on an internal configuration + * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by + * rtc_init function in rtc_init.c. + */ + +#define I2C_ULP 0x61 +#define I2C_ULP_HOSTID 1 + +#define I2C_ULP_IR_RESETB 0 +#define I2C_ULP_IR_RESETB_MSB 0 +#define I2C_ULP_IR_RESETB_LSB 0 + +#define I2C_ULP_O_DONE_FLAG 3 +#define I2C_ULP_O_DONE_FLAG_MSB 0 +#define I2C_ULP_O_DONE_FLAG_LSB 0 + +#define I2C_ULP_BG_O_DONE_FLAG 3 +#define I2C_ULP_BG_O_DONE_FLAG_MSB 3 +#define I2C_ULP_BG_O_DONE_FLAG_LSB 3 \ No newline at end of file diff --git a/components/soc/soc/esp32s2/i2s_periph.c b/components/soc/esp32s2/i2s_periph.c similarity index 100% rename from components/soc/soc/esp32s2/i2s_periph.c rename to components/soc/esp32s2/i2s_periph.c diff --git a/components/soc/soc/esp32s2/include/soc/adc_channel.h b/components/soc/esp32s2/include/soc/adc_channel.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/adc_channel.h rename to components/soc/esp32s2/include/soc/adc_channel.h diff --git a/components/soc/soc/esp32s2/include/soc/apb_ctrl_reg.h b/components/soc/esp32s2/include/soc/apb_ctrl_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/apb_ctrl_reg.h rename to components/soc/esp32s2/include/soc/apb_ctrl_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/apb_ctrl_struct.h b/components/soc/esp32s2/include/soc/apb_ctrl_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/apb_ctrl_struct.h rename to components/soc/esp32s2/include/soc/apb_ctrl_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/apb_saradc_reg.h b/components/soc/esp32s2/include/soc/apb_saradc_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/apb_saradc_reg.h rename to components/soc/esp32s2/include/soc/apb_saradc_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/apb_saradc_struct.h b/components/soc/esp32s2/include/soc/apb_saradc_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/apb_saradc_struct.h rename to components/soc/esp32s2/include/soc/apb_saradc_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/assist_debug_reg.h b/components/soc/esp32s2/include/soc/assist_debug_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/assist_debug_reg.h rename to components/soc/esp32s2/include/soc/assist_debug_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/bb_reg.h b/components/soc/esp32s2/include/soc/bb_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/bb_reg.h rename to components/soc/esp32s2/include/soc/bb_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/boot_mode.h b/components/soc/esp32s2/include/soc/boot_mode.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/boot_mode.h rename to components/soc/esp32s2/include/soc/boot_mode.h diff --git a/components/soc/soc/esp32s2/include/soc/cache_memory.h b/components/soc/esp32s2/include/soc/cache_memory.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/cache_memory.h rename to components/soc/esp32s2/include/soc/cache_memory.h diff --git a/components/soc/soc/esp32s2/include/soc/clkout_channel.h b/components/soc/esp32s2/include/soc/clkout_channel.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/clkout_channel.h rename to components/soc/esp32s2/include/soc/clkout_channel.h diff --git a/components/soc/soc/esp32s2/include/soc/cp_dma_reg.h b/components/soc/esp32s2/include/soc/cp_dma_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/cp_dma_reg.h rename to components/soc/esp32s2/include/soc/cp_dma_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/cp_dma_struct.h b/components/soc/esp32s2/include/soc/cp_dma_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/cp_dma_struct.h rename to components/soc/esp32s2/include/soc/cp_dma_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/crypto_dma_reg.h b/components/soc/esp32s2/include/soc/crypto_dma_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/crypto_dma_reg.h rename to components/soc/esp32s2/include/soc/crypto_dma_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/dac_channel.h b/components/soc/esp32s2/include/soc/dac_channel.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/dac_channel.h rename to components/soc/esp32s2/include/soc/dac_channel.h diff --git a/components/soc/soc/esp32s2/include/soc/dedic_gpio_reg.h b/components/soc/esp32s2/include/soc/dedic_gpio_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/dedic_gpio_reg.h rename to components/soc/esp32s2/include/soc/dedic_gpio_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/dedic_gpio_struct.h b/components/soc/esp32s2/include/soc/dedic_gpio_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/dedic_gpio_struct.h rename to components/soc/esp32s2/include/soc/dedic_gpio_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/dport_access.h b/components/soc/esp32s2/include/soc/dport_access.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/dport_access.h rename to components/soc/esp32s2/include/soc/dport_access.h diff --git a/components/soc/soc/esp32s2/include/soc/dport_reg.h b/components/soc/esp32s2/include/soc/dport_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/dport_reg.h rename to components/soc/esp32s2/include/soc/dport_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/efuse_reg.h b/components/soc/esp32s2/include/soc/efuse_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/efuse_reg.h rename to components/soc/esp32s2/include/soc/efuse_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/efuse_struct.h b/components/soc/esp32s2/include/soc/efuse_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/efuse_struct.h rename to components/soc/esp32s2/include/soc/efuse_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/extmem_reg.h b/components/soc/esp32s2/include/soc/extmem_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/extmem_reg.h rename to components/soc/esp32s2/include/soc/extmem_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/fe_reg.h b/components/soc/esp32s2/include/soc/fe_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/fe_reg.h rename to components/soc/esp32s2/include/soc/fe_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/frc_timer_reg.h b/components/soc/esp32s2/include/soc/frc_timer_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/frc_timer_reg.h rename to components/soc/esp32s2/include/soc/frc_timer_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/gpio_pins.h b/components/soc/esp32s2/include/soc/gpio_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/gpio_pins.h rename to components/soc/esp32s2/include/soc/gpio_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/gpio_reg.h b/components/soc/esp32s2/include/soc/gpio_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/gpio_reg.h rename to components/soc/esp32s2/include/soc/gpio_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/gpio_sd_reg.h b/components/soc/esp32s2/include/soc/gpio_sd_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/gpio_sd_reg.h rename to components/soc/esp32s2/include/soc/gpio_sd_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/gpio_sd_struct.h b/components/soc/esp32s2/include/soc/gpio_sd_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/gpio_sd_struct.h rename to components/soc/esp32s2/include/soc/gpio_sd_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/gpio_sig_map.h b/components/soc/esp32s2/include/soc/gpio_sig_map.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/gpio_sig_map.h rename to components/soc/esp32s2/include/soc/gpio_sig_map.h diff --git a/components/soc/soc/esp32s2/include/soc/gpio_struct.h b/components/soc/esp32s2/include/soc/gpio_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/gpio_struct.h rename to components/soc/esp32s2/include/soc/gpio_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/hwcrypto_reg.h b/components/soc/esp32s2/include/soc/hwcrypto_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/hwcrypto_reg.h rename to components/soc/esp32s2/include/soc/hwcrypto_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/i2c_reg.h b/components/soc/esp32s2/include/soc/i2c_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/i2c_reg.h rename to components/soc/esp32s2/include/soc/i2c_reg.h diff --git a/components/soc/esp32s2/include/soc/i2c_saradc.h b/components/soc/esp32s2/include/soc/i2c_saradc.h new file mode 100644 index 0000000000..5aa6451743 --- /dev/null +++ b/components/soc/esp32s2/include/soc/i2c_saradc.h @@ -0,0 +1,77 @@ +// Copyright 2019-2020 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +/** + * @file i2c_sar.h + * @brief Register definitions for analog to calibrate initial code for getting a more precise voltage of SAR ADC. + * + * This file lists register fields of SAR, located on an internal configuration + * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by + * function in adc_ll.h. + */ + +#define I2C_SAR_ADC 0X69 +#define I2C_SAR_ADC_HOSTID 0 + +#define ADC_ANA_CONFIG2_REG 0x6000E048 + +#define ADC_SAR1_ENCAL_GND_ADDR 0x7 +#define ADC_SAR1_ENCAL_GND_ADDR_MSB 5 +#define ADC_SAR1_ENCAL_GND_ADDR_LSB 5 + +#define ADC_SAR2_ENCAL_GND_ADDR 0x7 +#define ADC_SAR2_ENCAL_GND_ADDR_MSB 7 +#define ADC_SAR2_ENCAL_GND_ADDR_LSB 7 + +#define ADC_SAR1_INITIAL_CODE_HIGH_ADDR 0x1 +#define ADC_SAR1_INITIAL_CODE_HIGH_ADDR_MSB 0x3 +#define ADC_SAR1_INITIAL_CODE_HIGH_ADDR_LSB 0x0 + +#define ADC_SAR1_INITIAL_CODE_LOW_ADDR 0x0 +#define ADC_SAR1_INITIAL_CODE_LOW_ADDR_MSB 0x7 +#define ADC_SAR1_INITIAL_CODE_LOW_ADDR_LSB 0x0 + +#define ADC_SAR2_INITIAL_CODE_HIGH_ADDR 0x4 +#define ADC_SAR2_INITIAL_CODE_HIGH_ADDR_MSB 0x3 +#define ADC_SAR2_INITIAL_CODE_HIGH_ADDR_LSB 0x0 + +#define ADC_SAR2_INITIAL_CODE_LOW_ADDR 0x3 +#define ADC_SAR2_INITIAL_CODE_LOW_ADDR_MSB 0x7 +#define ADC_SAR2_INITIAL_CODE_LOW_ADDR_LSB 0x0 + +#define ADC_SAR1_DREF_ADDR 0x2 +#define ADC_SAR1_DREF_ADDR_MSB 0x6 +#define ADC_SAR1_DREF_ADDR_LSB 0x4 + +#define ADC_SAR2_DREF_ADDR 0x5 +#define ADC_SAR2_DREF_ADDR_MSB 0x6 +#define ADC_SAR2_DREF_ADDR_LSB 0x4 + +#define ADC_SAR1_SAMPLE_CYCLE_ADDR 0x2 +#define ADC_SAR1_SAMPLE_CYCLE_ADDR_MSB 0x2 +#define ADC_SAR1_SAMPLE_CYCLE_ADDR_LSB 0x0 + +#define ADC_SARADC_DTEST_RTC_ADDR 0x7 +#define ADC_SARADC_DTEST_RTC_ADDR_MSB 1 +#define ADC_SARADC_DTEST_RTC_ADDR_LSB 0 + +#define ADC_SARADC_ENT_TSENS_ADDR 0x7 +#define ADC_SARADC_ENT_TSENS_ADDR_MSB 2 +#define ADC_SARADC_ENT_TSENS_ADDR_LSB 2 + +#define ADC_SARADC_ENT_RTC_ADDR 0x7 +#define ADC_SARADC_ENT_RTC_ADDR_MSB 3 +#define ADC_SARADC_ENT_RTC_ADDR_LSB 3 diff --git a/components/soc/soc/esp32s2/include/soc/i2c_struct.h b/components/soc/esp32s2/include/soc/i2c_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/i2c_struct.h rename to components/soc/esp32s2/include/soc/i2c_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/i2s_reg.h b/components/soc/esp32s2/include/soc/i2s_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/i2s_reg.h rename to components/soc/esp32s2/include/soc/i2s_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/i2s_struct.h b/components/soc/esp32s2/include/soc/i2s_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/i2s_struct.h rename to components/soc/esp32s2/include/soc/i2s_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/interrupt_reg.h b/components/soc/esp32s2/include/soc/interrupt_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/interrupt_reg.h rename to components/soc/esp32s2/include/soc/interrupt_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/io_mux_reg.h b/components/soc/esp32s2/include/soc/io_mux_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/io_mux_reg.h rename to components/soc/esp32s2/include/soc/io_mux_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/ledc_reg.h b/components/soc/esp32s2/include/soc/ledc_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/ledc_reg.h rename to components/soc/esp32s2/include/soc/ledc_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/ledc_struct.h b/components/soc/esp32s2/include/soc/ledc_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/ledc_struct.h rename to components/soc/esp32s2/include/soc/ledc_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/nrx_reg.h b/components/soc/esp32s2/include/soc/nrx_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/nrx_reg.h rename to components/soc/esp32s2/include/soc/nrx_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/pcnt_reg.h b/components/soc/esp32s2/include/soc/pcnt_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/pcnt_reg.h rename to components/soc/esp32s2/include/soc/pcnt_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/pcnt_struct.h b/components/soc/esp32s2/include/soc/pcnt_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/pcnt_struct.h rename to components/soc/esp32s2/include/soc/pcnt_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/periph_defs.h b/components/soc/esp32s2/include/soc/periph_defs.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/periph_defs.h rename to components/soc/esp32s2/include/soc/periph_defs.h diff --git a/components/soc/soc/esp32s2/include/soc/rmt_reg.h b/components/soc/esp32s2/include/soc/rmt_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rmt_reg.h rename to components/soc/esp32s2/include/soc/rmt_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/rmt_struct.h b/components/soc/esp32s2/include/soc/rmt_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rmt_struct.h rename to components/soc/esp32s2/include/soc/rmt_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/rsa_caps.h b/components/soc/esp32s2/include/soc/rsa_caps.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rsa_caps.h rename to components/soc/esp32s2/include/soc/rsa_caps.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc.h b/components/soc/esp32s2/include/soc/rtc.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc.h rename to components/soc/esp32s2/include/soc/rtc.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_cntl_reg.h b/components/soc/esp32s2/include/soc/rtc_cntl_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_cntl_reg.h rename to components/soc/esp32s2/include/soc/rtc_cntl_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_cntl_struct.h b/components/soc/esp32s2/include/soc/rtc_cntl_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_cntl_struct.h rename to components/soc/esp32s2/include/soc/rtc_cntl_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_i2c_reg.h b/components/soc/esp32s2/include/soc/rtc_i2c_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_i2c_reg.h rename to components/soc/esp32s2/include/soc/rtc_i2c_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_i2c_struct.h b/components/soc/esp32s2/include/soc/rtc_i2c_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_i2c_struct.h rename to components/soc/esp32s2/include/soc/rtc_i2c_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_io_channel.h b/components/soc/esp32s2/include/soc/rtc_io_channel.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_io_channel.h rename to components/soc/esp32s2/include/soc/rtc_io_channel.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_io_reg.h b/components/soc/esp32s2/include/soc/rtc_io_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_io_reg.h rename to components/soc/esp32s2/include/soc/rtc_io_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/rtc_io_struct.h b/components/soc/esp32s2/include/soc/rtc_io_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/rtc_io_struct.h rename to components/soc/esp32s2/include/soc/rtc_io_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/sdio_slave_pins.h b/components/soc/esp32s2/include/soc/sdio_slave_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sdio_slave_pins.h rename to components/soc/esp32s2/include/soc/sdio_slave_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/sdmmc_pins.h b/components/soc/esp32s2/include/soc/sdmmc_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sdmmc_pins.h rename to components/soc/esp32s2/include/soc/sdmmc_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/sdmmc_reg.h b/components/soc/esp32s2/include/soc/sdmmc_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sdmmc_reg.h rename to components/soc/esp32s2/include/soc/sdmmc_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/sdmmc_struct.h b/components/soc/esp32s2/include/soc/sdmmc_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sdmmc_struct.h rename to components/soc/esp32s2/include/soc/sdmmc_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/sens_reg.h b/components/soc/esp32s2/include/soc/sens_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sens_reg.h rename to components/soc/esp32s2/include/soc/sens_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/sens_struct.h b/components/soc/esp32s2/include/soc/sens_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sens_struct.h rename to components/soc/esp32s2/include/soc/sens_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/sensitive_reg.h b/components/soc/esp32s2/include/soc/sensitive_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sensitive_reg.h rename to components/soc/esp32s2/include/soc/sensitive_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/sha_caps.h b/components/soc/esp32s2/include/soc/sha_caps.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/sha_caps.h rename to components/soc/esp32s2/include/soc/sha_caps.h diff --git a/components/soc/soc/esp32s2/include/soc/soc.h b/components/soc/esp32s2/include/soc/soc.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/soc.h rename to components/soc/esp32s2/include/soc/soc.h diff --git a/components/soc/soc/esp32s2/include/soc/soc_caps.h b/components/soc/esp32s2/include/soc/soc_caps.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/soc_caps.h rename to components/soc/esp32s2/include/soc/soc_caps.h diff --git a/components/soc/soc/esp32s2/include/soc/soc_pins.h b/components/soc/esp32s2/include/soc/soc_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/soc_pins.h rename to components/soc/esp32s2/include/soc/soc_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/soc_ulp.h b/components/soc/esp32s2/include/soc/soc_ulp.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/soc_ulp.h rename to components/soc/esp32s2/include/soc/soc_ulp.h diff --git a/components/soc/soc/esp32s2/include/soc/spi_mem_reg.h b/components/soc/esp32s2/include/soc/spi_mem_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/spi_mem_reg.h rename to components/soc/esp32s2/include/soc/spi_mem_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/spi_mem_struct.h b/components/soc/esp32s2/include/soc/spi_mem_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/spi_mem_struct.h rename to components/soc/esp32s2/include/soc/spi_mem_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/spi_pins.h b/components/soc/esp32s2/include/soc/spi_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/spi_pins.h rename to components/soc/esp32s2/include/soc/spi_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/spi_reg.h b/components/soc/esp32s2/include/soc/spi_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/spi_reg.h rename to components/soc/esp32s2/include/soc/spi_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/spi_struct.h b/components/soc/esp32s2/include/soc/spi_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/spi_struct.h rename to components/soc/esp32s2/include/soc/spi_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/syscon_reg.h b/components/soc/esp32s2/include/soc/syscon_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/syscon_reg.h rename to components/soc/esp32s2/include/soc/syscon_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/syscon_struct.h b/components/soc/esp32s2/include/soc/syscon_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/syscon_struct.h rename to components/soc/esp32s2/include/soc/syscon_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/system_reg.h b/components/soc/esp32s2/include/soc/system_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/system_reg.h rename to components/soc/esp32s2/include/soc/system_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/systimer_reg.h b/components/soc/esp32s2/include/soc/systimer_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/systimer_reg.h rename to components/soc/esp32s2/include/soc/systimer_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/timer_group_reg.h b/components/soc/esp32s2/include/soc/timer_group_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/timer_group_reg.h rename to components/soc/esp32s2/include/soc/timer_group_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/timer_group_struct.h b/components/soc/esp32s2/include/soc/timer_group_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/timer_group_struct.h rename to components/soc/esp32s2/include/soc/timer_group_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/touch_sensor_channel.h b/components/soc/esp32s2/include/soc/touch_sensor_channel.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/touch_sensor_channel.h rename to components/soc/esp32s2/include/soc/touch_sensor_channel.h diff --git a/components/soc/soc/esp32s2/include/soc/touch_sensor_pins.h b/components/soc/esp32s2/include/soc/touch_sensor_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/touch_sensor_pins.h rename to components/soc/esp32s2/include/soc/touch_sensor_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/twai_struct.h b/components/soc/esp32s2/include/soc/twai_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/twai_struct.h rename to components/soc/esp32s2/include/soc/twai_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/uart_channel.h b/components/soc/esp32s2/include/soc/uart_channel.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/uart_channel.h rename to components/soc/esp32s2/include/soc/uart_channel.h diff --git a/components/soc/soc/esp32s2/include/soc/uart_reg.h b/components/soc/esp32s2/include/soc/uart_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/uart_reg.h rename to components/soc/esp32s2/include/soc/uart_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/uart_struct.h b/components/soc/esp32s2/include/soc/uart_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/uart_struct.h rename to components/soc/esp32s2/include/soc/uart_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/uhci_reg.h b/components/soc/esp32s2/include/soc/uhci_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/uhci_reg.h rename to components/soc/esp32s2/include/soc/uhci_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/uhci_struct.h b/components/soc/esp32s2/include/soc/uhci_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/uhci_struct.h rename to components/soc/esp32s2/include/soc/uhci_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_periph.h b/components/soc/esp32s2/include/soc/usb_periph.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_periph.h rename to components/soc/esp32s2/include/soc/usb_periph.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_pins.h b/components/soc/esp32s2/include/soc/usb_pins.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_pins.h rename to components/soc/esp32s2/include/soc/usb_pins.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_reg.h b/components/soc/esp32s2/include/soc/usb_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_reg.h rename to components/soc/esp32s2/include/soc/usb_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_struct.h b/components/soc/esp32s2/include/soc/usb_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_struct.h rename to components/soc/esp32s2/include/soc/usb_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_types.h b/components/soc/esp32s2/include/soc/usb_types.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_types.h rename to components/soc/esp32s2/include/soc/usb_types.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_wrap_reg.h b/components/soc/esp32s2/include/soc/usb_wrap_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_wrap_reg.h rename to components/soc/esp32s2/include/soc/usb_wrap_reg.h diff --git a/components/soc/soc/esp32s2/include/soc/usb_wrap_struct.h b/components/soc/esp32s2/include/soc/usb_wrap_struct.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/usb_wrap_struct.h rename to components/soc/esp32s2/include/soc/usb_wrap_struct.h diff --git a/components/soc/soc/esp32s2/include/soc/wdev_reg.h b/components/soc/esp32s2/include/soc/wdev_reg.h similarity index 100% rename from components/soc/soc/esp32s2/include/soc/wdev_reg.h rename to components/soc/esp32s2/include/soc/wdev_reg.h diff --git a/components/soc/soc/esp32s2/interrupts.c b/components/soc/esp32s2/interrupts.c similarity index 100% rename from components/soc/soc/esp32s2/interrupts.c rename to components/soc/esp32s2/interrupts.c diff --git a/components/soc/soc/esp32s2/ledc_periph.c b/components/soc/esp32s2/ledc_periph.c similarity index 100% rename from components/soc/soc/esp32s2/ledc_periph.c rename to components/soc/esp32s2/ledc_periph.c diff --git a/components/soc/soc/esp32s2/pcnt_periph.c b/components/soc/esp32s2/pcnt_periph.c similarity index 100% rename from components/soc/soc/esp32s2/pcnt_periph.c rename to components/soc/esp32s2/pcnt_periph.c diff --git a/components/soc/soc/esp32s2/private_include/regi2c_apll.h b/components/soc/esp32s2/private_include/regi2c_apll.h similarity index 100% rename from components/soc/soc/esp32s2/private_include/regi2c_apll.h rename to components/soc/esp32s2/private_include/regi2c_apll.h diff --git a/components/soc/soc/esp32s2/private_include/regi2c_bbpll.h b/components/soc/esp32s2/private_include/regi2c_bbpll.h similarity index 100% rename from components/soc/soc/esp32s2/private_include/regi2c_bbpll.h rename to components/soc/esp32s2/private_include/regi2c_bbpll.h diff --git a/components/soc/soc/esp32s2/private_include/regi2c_brownout.h b/components/soc/esp32s2/private_include/regi2c_brownout.h similarity index 100% rename from components/soc/soc/esp32s2/private_include/regi2c_brownout.h rename to components/soc/esp32s2/private_include/regi2c_brownout.h diff --git a/components/soc/soc/esp32s2/private_include/regi2c_saradc.h b/components/soc/esp32s2/private_include/regi2c_saradc.h similarity index 100% rename from components/soc/soc/esp32s2/private_include/regi2c_saradc.h rename to components/soc/esp32s2/private_include/regi2c_saradc.h diff --git a/components/soc/soc/esp32s2/private_include/regi2c_ulp.h b/components/soc/esp32s2/private_include/regi2c_ulp.h similarity index 100% rename from components/soc/soc/esp32s2/private_include/regi2c_ulp.h rename to components/soc/esp32s2/private_include/regi2c_ulp.h diff --git a/components/soc/src/esp32s2/regi2c_ctrl.c b/components/soc/esp32s2/regi2c_ctrl.c similarity index 100% rename from components/soc/src/esp32s2/regi2c_ctrl.c rename to components/soc/esp32s2/regi2c_ctrl.c diff --git a/components/soc/src/esp32s2/regi2c_ctrl.h b/components/soc/esp32s2/regi2c_ctrl.h similarity index 100% rename from components/soc/src/esp32s2/regi2c_ctrl.h rename to components/soc/esp32s2/regi2c_ctrl.h diff --git a/components/soc/src/esp32s2/rtc_clk.c b/components/soc/esp32s2/rtc_clk.c similarity index 100% rename from components/soc/src/esp32s2/rtc_clk.c rename to components/soc/esp32s2/rtc_clk.c diff --git a/components/soc/src/esp32s2/rtc_clk_common.h b/components/soc/esp32s2/rtc_clk_common.h similarity index 97% rename from components/soc/src/esp32s2/rtc_clk_common.h rename to components/soc/esp32s2/rtc_clk_common.h index cb92f67ac2..d4dad103ad 100644 --- a/components/soc/src/esp32s2/rtc_clk_common.h +++ b/components/soc/esp32s2/rtc_clk_common.h @@ -14,6 +14,9 @@ #pragma once +#include +#include + #define MHZ (1000000) #define DPORT_CPUPERIOD_SEL_80 0 diff --git a/components/soc/src/esp32s2/rtc_clk_init.c b/components/soc/esp32s2/rtc_clk_init.c similarity index 100% rename from components/soc/src/esp32s2/rtc_clk_init.c rename to components/soc/esp32s2/rtc_clk_init.c diff --git a/components/soc/src/esp32s2/rtc_init.c b/components/soc/esp32s2/rtc_init.c similarity index 100% rename from components/soc/src/esp32s2/rtc_init.c rename to components/soc/esp32s2/rtc_init.c diff --git a/components/soc/soc/esp32s2/rtc_io_periph.c b/components/soc/esp32s2/rtc_io_periph.c similarity index 100% rename from components/soc/soc/esp32s2/rtc_io_periph.c rename to components/soc/esp32s2/rtc_io_periph.c diff --git a/components/soc/soc/esp32s2/rtc_periph.c b/components/soc/esp32s2/rtc_periph.c similarity index 100% rename from components/soc/soc/esp32s2/rtc_periph.c rename to components/soc/esp32s2/rtc_periph.c diff --git a/components/soc/src/esp32s2/rtc_pm.c b/components/soc/esp32s2/rtc_pm.c similarity index 100% rename from components/soc/src/esp32s2/rtc_pm.c rename to components/soc/esp32s2/rtc_pm.c diff --git a/components/soc/src/esp32s2/rtc_sleep.c b/components/soc/esp32s2/rtc_sleep.c similarity index 100% rename from components/soc/src/esp32s2/rtc_sleep.c rename to components/soc/esp32s2/rtc_sleep.c diff --git a/components/soc/src/esp32s2/rtc_time.c b/components/soc/esp32s2/rtc_time.c similarity index 100% rename from components/soc/src/esp32s2/rtc_time.c rename to components/soc/esp32s2/rtc_time.c diff --git a/components/soc/src/esp32s2/rtc_wdt.c b/components/soc/esp32s2/rtc_wdt.c similarity index 100% rename from components/soc/src/esp32s2/rtc_wdt.c rename to components/soc/esp32s2/rtc_wdt.c diff --git a/components/soc/src/esp32s2/soc_memory_layout.c b/components/soc/esp32s2/soc_memory_layout.c similarity index 100% rename from components/soc/src/esp32s2/soc_memory_layout.c rename to components/soc/esp32s2/soc_memory_layout.c diff --git a/components/soc/soc/esp32s2/spi_periph.c b/components/soc/esp32s2/spi_periph.c similarity index 100% rename from components/soc/soc/esp32s2/spi_periph.c rename to components/soc/esp32s2/spi_periph.c diff --git a/components/soc/soc/esp32s2/touch_sensor_periph.c b/components/soc/esp32s2/touch_sensor_periph.c similarity index 100% rename from components/soc/soc/esp32s2/touch_sensor_periph.c rename to components/soc/esp32s2/touch_sensor_periph.c diff --git a/components/soc/soc/esp32s2/uart_periph.c b/components/soc/esp32s2/uart_periph.c similarity index 100% rename from components/soc/soc/esp32s2/uart_periph.c rename to components/soc/esp32s2/uart_periph.c diff --git a/components/soc/soc/esp32s2/usb_periph.c b/components/soc/esp32s2/usb_periph.c similarity index 100% rename from components/soc/soc/esp32s2/usb_periph.c rename to components/soc/esp32s2/usb_periph.c diff --git a/components/soc/esp32s3/CMakeLists.txt b/components/soc/esp32s3/CMakeLists.txt new file mode 100644 index 0000000000..5854ba56f4 --- /dev/null +++ b/components/soc/esp32s3/CMakeLists.txt @@ -0,0 +1,34 @@ +set(srcs + "adc_periph.c" + "dac_periph.c" + "dedic_gpio_periph.c" + "gpio_periph.c" + "i2c_periph.c" + "i2s_periph.c" + "interrupts.c" + "ledc_periph.c" + "pcnt_periph.c" + "rtc_clk.c" + "rtc_clk_init.c" + "rtc_init.c" + "rtc_io_periph.c" + "rtc_periph.c" + "rtc_pm.c" + "rtc_sleep.c" + "rtc_time.c" + "sdio_slave_periph.c" + "sdmmc_periph.c" + "soc_memory_layout.c" + "spi_periph.c" + "touch_sensor_periph.c" + "uart_periph.c") + +add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") + +target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") +target_include_directories(${COMPONENT_LIB} PUBLIC . include) + +if(NOT CMAKE_BUILD_EARLY_EXPANSION) + set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES + COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") +endif() diff --git a/components/soc/soc/esp32s3/adc_periph.c b/components/soc/esp32s3/adc_periph.c similarity index 100% rename from components/soc/soc/esp32s3/adc_periph.c rename to components/soc/esp32s3/adc_periph.c diff --git a/components/soc/soc/esp32s3/dac_periph.c b/components/soc/esp32s3/dac_periph.c similarity index 100% rename from components/soc/soc/esp32s3/dac_periph.c rename to components/soc/esp32s3/dac_periph.c diff --git a/components/soc/soc/esp32s3/dedic_gpio_periph.c b/components/soc/esp32s3/dedic_gpio_periph.c similarity index 100% rename from components/soc/soc/esp32s3/dedic_gpio_periph.c rename to components/soc/esp32s3/dedic_gpio_periph.c diff --git a/components/soc/soc/esp32s3/gpio_periph.c b/components/soc/esp32s3/gpio_periph.c similarity index 100% rename from components/soc/soc/esp32s3/gpio_periph.c rename to components/soc/esp32s3/gpio_periph.c diff --git a/components/soc/esp32s3/i2c_bbpll.h b/components/soc/esp32s3/i2c_bbpll.h new file mode 100644 index 0000000000..73a0a84ccf --- /dev/null +++ b/components/soc/esp32s3/i2c_bbpll.h @@ -0,0 +1,184 @@ +// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +/** + * @file i2c_bbpll.h + * @brief Register definitions for digital PLL (BBPLL) + * + * This file lists register fields of BBPLL, located on an internal configuration + * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by + * rtc_clk_cpu_freq_set function in rtc_clk.c. + */ + +#define I2C_BBPLL 0x66 +#define I2C_BBPLL_HOSTID 1 + +#define I2C_BBPLL_IR_CAL_DELAY 0 +#define I2C_BBPLL_IR_CAL_DELAY_MSB 3 +#define I2C_BBPLL_IR_CAL_DELAY_LSB 0 + +#define I2C_BBPLL_IR_CAL_CK_DIV 0 +#define I2C_BBPLL_IR_CAL_CK_DIV_MSB 7 +#define I2C_BBPLL_IR_CAL_CK_DIV_LSB 4 + +#define I2C_BBPLL_IR_CAL_EXT_CAP 1 +#define I2C_BBPLL_IR_CAL_EXT_CAP_MSB 3 +#define I2C_BBPLL_IR_CAL_EXT_CAP_LSB 0 + +#define I2C_BBPLL_IR_CAL_ENX_CAP 1 +#define I2C_BBPLL_IR_CAL_ENX_CAP_MSB 4 +#define I2C_BBPLL_IR_CAL_ENX_CAP_LSB 4 + +#define I2C_BBPLL_IR_CAL_RSTB 1 +#define I2C_BBPLL_IR_CAL_RSTB_MSB 5 +#define I2C_BBPLL_IR_CAL_RSTB_LSB 5 + +#define I2C_BBPLL_IR_CAL_START 1 +#define I2C_BBPLL_IR_CAL_START_MSB 6 +#define I2C_BBPLL_IR_CAL_START_LSB 6 + +#define I2C_BBPLL_IR_CAL_UNSTOP 1 +#define I2C_BBPLL_IR_CAL_UNSTOP_MSB 7 +#define I2C_BBPLL_IR_CAL_UNSTOP_LSB 7 + +#define I2C_BBPLL_OC_REF_DIV 2 +#define I2C_BBPLL_OC_REF_DIV_MSB 3 +#define I2C_BBPLL_OC_REF_DIV_LSB 0 + +#define I2C_BBPLL_OC_DCHGP 2 +#define I2C_BBPLL_OC_DCHGP_MSB 6 +#define I2C_BBPLL_OC_DCHGP_LSB 4 + +#define I2C_BBPLL_OC_ENB_FCAL 2 +#define I2C_BBPLL_OC_ENB_FCAL_MSB 7 +#define I2C_BBPLL_OC_ENB_FCAL_LSB 7 + +#define I2C_BBPLL_OC_DIV_7_0 3 +#define I2C_BBPLL_OC_DIV_7_0_MSB 7 +#define I2C_BBPLL_OC_DIV_7_0_LSB 0 + +#define I2C_BBPLL_RSTB_DIV_ADC 4 +#define I2C_BBPLL_RSTB_DIV_ADC_MSB 0 +#define I2C_BBPLL_RSTB_DIV_ADC_LSB 0 + +#define I2C_BBPLL_MODE_HF 4 +#define I2C_BBPLL_MODE_HF_MSB 1 +#define I2C_BBPLL_MODE_HF_LSB 1 + +#define I2C_BBPLL_DIV_ADC 4 +#define I2C_BBPLL_DIV_ADC_MSB 3 +#define I2C_BBPLL_DIV_ADC_LSB 2 + +#define I2C_BBPLL_DIV_DAC 4 +#define I2C_BBPLL_DIV_DAC_MSB 4 +#define I2C_BBPLL_DIV_DAC_LSB 4 + +#define I2C_BBPLL_DIV_CPU 4 +#define I2C_BBPLL_DIV_CPU_MSB 5 +#define I2C_BBPLL_DIV_CPU_LSB 5 + +#define I2C_BBPLL_OC_ENB_VCON 4 +#define I2C_BBPLL_OC_ENB_VCON_MSB 6 +#define I2C_BBPLL_OC_ENB_VCON_LSB 6 + +#define I2C_BBPLL_OC_TSCHGP 4 +#define I2C_BBPLL_OC_TSCHGP_MSB 7 +#define I2C_BBPLL_OC_TSCHGP_LSB 7 + +#define I2C_BBPLL_OC_DR1 5 +#define I2C_BBPLL_OC_DR1_MSB 2 +#define I2C_BBPLL_OC_DR1_LSB 0 + +#define I2C_BBPLL_OC_DR3 5 +#define I2C_BBPLL_OC_DR3_MSB 6 +#define I2C_BBPLL_OC_DR3_LSB 4 + +#define I2C_BBPLL_EN_USB 5 +#define I2C_BBPLL_EN_USB_MSB 7 +#define I2C_BBPLL_EN_USB_LSB 7 + +#define I2C_BBPLL_OC_DCUR 6 +#define I2C_BBPLL_OC_DCUR_MSB 2 +#define I2C_BBPLL_OC_DCUR_LSB 0 + +#define I2C_BBPLL_INC_CUR 6 +#define I2C_BBPLL_INC_CUR_MSB 3 +#define I2C_BBPLL_INC_CUR_LSB 3 + +#define I2C_BBPLL_OC_DHREF_SEL 6 +#define I2C_BBPLL_OC_DHREF_SEL_MSB 5 +#define I2C_BBPLL_OC_DHREF_SEL_LSB 4 + +#define I2C_BBPLL_OC_DLREF_SEL 6 +#define I2C_BBPLL_OC_DLREF_SEL_MSB 7 +#define I2C_BBPLL_OC_DLREF_SEL_LSB 6 + +#define I2C_BBPLL_OR_CAL_CAP 8 +#define I2C_BBPLL_OR_CAL_CAP_MSB 3 +#define I2C_BBPLL_OR_CAL_CAP_LSB 0 + +#define I2C_BBPLL_OR_CAL_UDF 8 +#define I2C_BBPLL_OR_CAL_UDF_MSB 4 +#define I2C_BBPLL_OR_CAL_UDF_LSB 4 + +#define I2C_BBPLL_OR_CAL_OVF 8 +#define I2C_BBPLL_OR_CAL_OVF_MSB 5 +#define I2C_BBPLL_OR_CAL_OVF_LSB 5 + +#define I2C_BBPLL_OR_CAL_END 8 +#define I2C_BBPLL_OR_CAL_END_MSB 6 +#define I2C_BBPLL_OR_CAL_END_LSB 6 + +#define I2C_BBPLL_OR_LOCK 8 +#define I2C_BBPLL_OR_LOCK_MSB 7 +#define I2C_BBPLL_OR_LOCK_LSB 7 + +#define I2C_BBPLL_OC_VCO_DBIAS 9 +#define I2C_BBPLL_OC_VCO_DBIAS_MSB 1 +#define I2C_BBPLL_OC_VCO_DBIAS_LSB 0 + +#define I2C_BBPLL_BBADC_DELAY2 9 +#define I2C_BBPLL_BBADC_DELAY2_MSB 3 +#define I2C_BBPLL_BBADC_DELAY2_LSB 2 + +#define I2C_BBPLL_BBADC_DVDD 9 +#define I2C_BBPLL_BBADC_DVDD_MSB 5 +#define I2C_BBPLL_BBADC_DVDD_LSB 4 + +#define I2C_BBPLL_BBADC_DREF 9 +#define I2C_BBPLL_BBADC_DREF_MSB 7 +#define I2C_BBPLL_BBADC_DREF_LSB 6 + +#define I2C_BBPLL_BBADC_DCUR 10 +#define I2C_BBPLL_BBADC_DCUR_MSB 1 +#define I2C_BBPLL_BBADC_DCUR_LSB 0 + +#define I2C_BBPLL_BBADC_INPUT_SHORT 10 +#define I2C_BBPLL_BBADC_INPUT_SHORT_MSB 2 +#define I2C_BBPLL_BBADC_INPUT_SHORT_LSB 2 + +#define I2C_BBPLL_ENT_PLL 10 +#define I2C_BBPLL_ENT_PLL_MSB 3 +#define I2C_BBPLL_ENT_PLL_LSB 3 + +#define I2C_BBPLL_DTEST 10 +#define I2C_BBPLL_DTEST_MSB 5 +#define I2C_BBPLL_DTEST_LSB 4 + +#define I2C_BBPLL_ENT_ADC 10 +#define I2C_BBPLL_ENT_ADC_MSB 7 +#define I2C_BBPLL_ENT_ADC_LSB 6 + diff --git a/components/soc/soc/esp32s3/i2c_periph.c b/components/soc/esp32s3/i2c_periph.c similarity index 100% rename from components/soc/soc/esp32s3/i2c_periph.c rename to components/soc/esp32s3/i2c_periph.c diff --git a/components/soc/esp32s3/i2c_ulp.h b/components/soc/esp32s3/i2c_ulp.h new file mode 100644 index 0000000000..bf60672c9c --- /dev/null +++ b/components/soc/esp32s3/i2c_ulp.h @@ -0,0 +1,39 @@ +// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +/** + * @file i2c_ulp.h + * @brief Register definitions for analog to calibrate o_code for getting a more precise voltage. + * + * This file lists register fields of ULP, located on an internal configuration + * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by + * rtc_init function in rtc_init.c. + */ + +#define I2C_ULP 0x61 +#define I2C_ULP_HOSTID 1 + +#define I2C_ULP_IR_RESETB 0 +#define I2C_ULP_IR_RESETB_MSB 0 +#define I2C_ULP_IR_RESETB_LSB 0 + +#define I2C_ULP_O_DONE_FLAG 3 +#define I2C_ULP_O_DONE_FLAG_MSB 0 +#define I2C_ULP_O_DONE_FLAG_LSB 0 + +#define I2C_ULP_BG_O_DONE_FLAG 3 +#define I2C_ULP_BG_O_DONE_FLAG_MSB 3 +#define I2C_ULP_BG_O_DONE_FLAG_LSB 3 diff --git a/components/soc/soc/esp32s3/i2s_periph.c b/components/soc/esp32s3/i2s_periph.c similarity index 100% rename from components/soc/soc/esp32s3/i2s_periph.c rename to components/soc/esp32s3/i2s_periph.c diff --git a/components/soc/soc/esp32s3/include/soc/adc_caps.h b/components/soc/esp32s3/include/soc/adc_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/adc_caps.h rename to components/soc/esp32s3/include/soc/adc_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/adc_channel.h b/components/soc/esp32s3/include/soc/adc_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/adc_channel.h rename to components/soc/esp32s3/include/soc/adc_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/apb_ctrl_reg.h b/components/soc/esp32s3/include/soc/apb_ctrl_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/apb_ctrl_reg.h rename to components/soc/esp32s3/include/soc/apb_ctrl_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/apb_ctrl_struct.h b/components/soc/esp32s3/include/soc/apb_ctrl_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/apb_ctrl_struct.h rename to components/soc/esp32s3/include/soc/apb_ctrl_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/apb_saradc_reg.h b/components/soc/esp32s3/include/soc/apb_saradc_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/apb_saradc_reg.h rename to components/soc/esp32s3/include/soc/apb_saradc_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/apb_saradc_struct.h b/components/soc/esp32s3/include/soc/apb_saradc_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/apb_saradc_struct.h rename to components/soc/esp32s3/include/soc/apb_saradc_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/assist_debug_reg.h b/components/soc/esp32s3/include/soc/assist_debug_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/assist_debug_reg.h rename to components/soc/esp32s3/include/soc/assist_debug_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/assist_debug_struct.h b/components/soc/esp32s3/include/soc/assist_debug_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/assist_debug_struct.h rename to components/soc/esp32s3/include/soc/assist_debug_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/bb_reg.h b/components/soc/esp32s3/include/soc/bb_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/bb_reg.h rename to components/soc/esp32s3/include/soc/bb_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/boot_mode.h b/components/soc/esp32s3/include/soc/boot_mode.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/boot_mode.h rename to components/soc/esp32s3/include/soc/boot_mode.h diff --git a/components/soc/soc/esp32s3/include/soc/brownout_caps.h b/components/soc/esp32s3/include/soc/brownout_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/brownout_caps.h rename to components/soc/esp32s3/include/soc/brownout_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/cache_memory.h b/components/soc/esp32s3/include/soc/cache_memory.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/cache_memory.h rename to components/soc/esp32s3/include/soc/cache_memory.h diff --git a/components/soc/soc/esp32s3/include/soc/clkout_channel.h b/components/soc/esp32s3/include/soc/clkout_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/clkout_channel.h rename to components/soc/esp32s3/include/soc/clkout_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/cpu_caps.h b/components/soc/esp32s3/include/soc/cpu_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/cpu_caps.h rename to components/soc/esp32s3/include/soc/cpu_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/dac_caps.h b/components/soc/esp32s3/include/soc/dac_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/dac_caps.h rename to components/soc/esp32s3/include/soc/dac_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/dac_channel.h b/components/soc/esp32s3/include/soc/dac_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/dac_channel.h rename to components/soc/esp32s3/include/soc/dac_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/dport_access.h b/components/soc/esp32s3/include/soc/dport_access.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/dport_access.h rename to components/soc/esp32s3/include/soc/dport_access.h diff --git a/components/soc/soc/esp32s3/include/soc/dport_reg.h b/components/soc/esp32s3/include/soc/dport_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/dport_reg.h rename to components/soc/esp32s3/include/soc/dport_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/efuse_reg.h b/components/soc/esp32s3/include/soc/efuse_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/efuse_reg.h rename to components/soc/esp32s3/include/soc/efuse_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/efuse_struct.h b/components/soc/esp32s3/include/soc/efuse_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/efuse_struct.h rename to components/soc/esp32s3/include/soc/efuse_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/extmem_reg.h b/components/soc/esp32s3/include/soc/extmem_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/extmem_reg.h rename to components/soc/esp32s3/include/soc/extmem_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/extmem_struct.h b/components/soc/esp32s3/include/soc/extmem_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/extmem_struct.h rename to components/soc/esp32s3/include/soc/extmem_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/fe_reg.h b/components/soc/esp32s3/include/soc/fe_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/fe_reg.h rename to components/soc/esp32s3/include/soc/fe_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/gdma_caps.h b/components/soc/esp32s3/include/soc/gdma_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gdma_caps.h rename to components/soc/esp32s3/include/soc/gdma_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/gdma_reg.h b/components/soc/esp32s3/include/soc/gdma_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gdma_reg.h rename to components/soc/esp32s3/include/soc/gdma_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/gdma_struct.h b/components/soc/esp32s3/include/soc/gdma_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gdma_struct.h rename to components/soc/esp32s3/include/soc/gdma_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_caps.h b/components/soc/esp32s3/include/soc/gpio_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_caps.h rename to components/soc/esp32s3/include/soc/gpio_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_pins.h b/components/soc/esp32s3/include/soc/gpio_pins.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_pins.h rename to components/soc/esp32s3/include/soc/gpio_pins.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_reg.h b/components/soc/esp32s3/include/soc/gpio_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_reg.h rename to components/soc/esp32s3/include/soc/gpio_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_sd_reg.h b/components/soc/esp32s3/include/soc/gpio_sd_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_sd_reg.h rename to components/soc/esp32s3/include/soc/gpio_sd_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_sd_struct.h b/components/soc/esp32s3/include/soc/gpio_sd_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_sd_struct.h rename to components/soc/esp32s3/include/soc/gpio_sd_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_sig_map.h b/components/soc/esp32s3/include/soc/gpio_sig_map.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_sig_map.h rename to components/soc/esp32s3/include/soc/gpio_sig_map.h diff --git a/components/soc/soc/esp32s3/include/soc/gpio_struct.h b/components/soc/esp32s3/include/soc/gpio_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/gpio_struct.h rename to components/soc/esp32s3/include/soc/gpio_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/hinf_reg.h b/components/soc/esp32s3/include/soc/hinf_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/hinf_reg.h rename to components/soc/esp32s3/include/soc/hinf_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/hinf_struct.h b/components/soc/esp32s3/include/soc/hinf_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/hinf_struct.h rename to components/soc/esp32s3/include/soc/hinf_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/host_reg.h b/components/soc/esp32s3/include/soc/host_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/host_reg.h rename to components/soc/esp32s3/include/soc/host_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/host_struct.h b/components/soc/esp32s3/include/soc/host_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/host_struct.h rename to components/soc/esp32s3/include/soc/host_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/hwcrypto_reg.h b/components/soc/esp32s3/include/soc/hwcrypto_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/hwcrypto_reg.h rename to components/soc/esp32s3/include/soc/hwcrypto_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/i2c_caps.h b/components/soc/esp32s3/include/soc/i2c_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/i2c_caps.h rename to components/soc/esp32s3/include/soc/i2c_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/i2c_reg.h b/components/soc/esp32s3/include/soc/i2c_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/i2c_reg.h rename to components/soc/esp32s3/include/soc/i2c_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/i2c_struct.h b/components/soc/esp32s3/include/soc/i2c_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/i2c_struct.h rename to components/soc/esp32s3/include/soc/i2c_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/i2s_caps.h b/components/soc/esp32s3/include/soc/i2s_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/i2s_caps.h rename to components/soc/esp32s3/include/soc/i2s_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/i2s_reg.h b/components/soc/esp32s3/include/soc/i2s_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/i2s_reg.h rename to components/soc/esp32s3/include/soc/i2s_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/i2s_struct.h b/components/soc/esp32s3/include/soc/i2s_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/i2s_struct.h rename to components/soc/esp32s3/include/soc/i2s_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/interrupt_core0_reg.h b/components/soc/esp32s3/include/soc/interrupt_core0_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/interrupt_core0_reg.h rename to components/soc/esp32s3/include/soc/interrupt_core0_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/interrupt_core0_struct.h b/components/soc/esp32s3/include/soc/interrupt_core0_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/interrupt_core0_struct.h rename to components/soc/esp32s3/include/soc/interrupt_core0_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/interrupt_core1_reg.h b/components/soc/esp32s3/include/soc/interrupt_core1_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/interrupt_core1_reg.h rename to components/soc/esp32s3/include/soc/interrupt_core1_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/interrupt_core1_struct.h b/components/soc/esp32s3/include/soc/interrupt_core1_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/interrupt_core1_struct.h rename to components/soc/esp32s3/include/soc/interrupt_core1_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/interrupt_reg.h b/components/soc/esp32s3/include/soc/interrupt_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/interrupt_reg.h rename to components/soc/esp32s3/include/soc/interrupt_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/io_mux_reg.h b/components/soc/esp32s3/include/soc/io_mux_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/io_mux_reg.h rename to components/soc/esp32s3/include/soc/io_mux_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/lcd_cam_reg.h b/components/soc/esp32s3/include/soc/lcd_cam_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/lcd_cam_reg.h rename to components/soc/esp32s3/include/soc/lcd_cam_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/lcd_cam_struct.h b/components/soc/esp32s3/include/soc/lcd_cam_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/lcd_cam_struct.h rename to components/soc/esp32s3/include/soc/lcd_cam_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/ledc_caps.h b/components/soc/esp32s3/include/soc/ledc_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/ledc_caps.h rename to components/soc/esp32s3/include/soc/ledc_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/ledc_reg.h b/components/soc/esp32s3/include/soc/ledc_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/ledc_reg.h rename to components/soc/esp32s3/include/soc/ledc_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/ledc_struct.h b/components/soc/esp32s3/include/soc/ledc_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/ledc_struct.h rename to components/soc/esp32s3/include/soc/ledc_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/mcpwm_reg.h b/components/soc/esp32s3/include/soc/mcpwm_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/mcpwm_reg.h rename to components/soc/esp32s3/include/soc/mcpwm_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/mcpwm_struct.h b/components/soc/esp32s3/include/soc/mcpwm_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/mcpwm_struct.h rename to components/soc/esp32s3/include/soc/mcpwm_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/mpu_caps.h b/components/soc/esp32s3/include/soc/mpu_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/mpu_caps.h rename to components/soc/esp32s3/include/soc/mpu_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/nrx_reg.h b/components/soc/esp32s3/include/soc/nrx_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/nrx_reg.h rename to components/soc/esp32s3/include/soc/nrx_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/pcnt_reg.h b/components/soc/esp32s3/include/soc/pcnt_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/pcnt_reg.h rename to components/soc/esp32s3/include/soc/pcnt_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/pcnt_struct.h b/components/soc/esp32s3/include/soc/pcnt_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/pcnt_struct.h rename to components/soc/esp32s3/include/soc/pcnt_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/periph_defs.h b/components/soc/esp32s3/include/soc/periph_defs.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/periph_defs.h rename to components/soc/esp32s3/include/soc/periph_defs.h diff --git a/components/soc/soc/esp32s3/include/soc/rmt_caps.h b/components/soc/esp32s3/include/soc/rmt_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rmt_caps.h rename to components/soc/esp32s3/include/soc/rmt_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/rmt_reg.h b/components/soc/esp32s3/include/soc/rmt_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rmt_reg.h rename to components/soc/esp32s3/include/soc/rmt_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/rmt_struct.h b/components/soc/esp32s3/include/soc/rmt_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rmt_struct.h rename to components/soc/esp32s3/include/soc/rmt_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/rsa_caps.h b/components/soc/esp32s3/include/soc/rsa_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rsa_caps.h rename to components/soc/esp32s3/include/soc/rsa_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc.h b/components/soc/esp32s3/include/soc/rtc.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc.h rename to components/soc/esp32s3/include/soc/rtc.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_cntl_reg.h b/components/soc/esp32s3/include/soc/rtc_cntl_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_cntl_reg.h rename to components/soc/esp32s3/include/soc/rtc_cntl_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_cntl_struct.h b/components/soc/esp32s3/include/soc/rtc_cntl_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_cntl_struct.h rename to components/soc/esp32s3/include/soc/rtc_cntl_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_gpio_channel.h b/components/soc/esp32s3/include/soc/rtc_gpio_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_gpio_channel.h rename to components/soc/esp32s3/include/soc/rtc_gpio_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_i2c_reg.h b/components/soc/esp32s3/include/soc/rtc_i2c_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_i2c_reg.h rename to components/soc/esp32s3/include/soc/rtc_i2c_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_i2c_struct.h b/components/soc/esp32s3/include/soc/rtc_i2c_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_i2c_struct.h rename to components/soc/esp32s3/include/soc/rtc_i2c_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_io_caps.h b/components/soc/esp32s3/include/soc/rtc_io_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_io_caps.h rename to components/soc/esp32s3/include/soc/rtc_io_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_io_channel.h b/components/soc/esp32s3/include/soc/rtc_io_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_io_channel.h rename to components/soc/esp32s3/include/soc/rtc_io_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_io_reg.h b/components/soc/esp32s3/include/soc/rtc_io_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_io_reg.h rename to components/soc/esp32s3/include/soc/rtc_io_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/rtc_io_struct.h b/components/soc/esp32s3/include/soc/rtc_io_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/rtc_io_struct.h rename to components/soc/esp32s3/include/soc/rtc_io_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/sdio_slave_pins.h b/components/soc/esp32s3/include/soc/sdio_slave_pins.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sdio_slave_pins.h rename to components/soc/esp32s3/include/soc/sdio_slave_pins.h diff --git a/components/soc/soc/esp32s3/include/soc/sdmmc_pins.h b/components/soc/esp32s3/include/soc/sdmmc_pins.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sdmmc_pins.h rename to components/soc/esp32s3/include/soc/sdmmc_pins.h diff --git a/components/soc/soc/esp32s3/include/soc/sdmmc_reg.h b/components/soc/esp32s3/include/soc/sdmmc_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sdmmc_reg.h rename to components/soc/esp32s3/include/soc/sdmmc_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/sdmmc_struct.h b/components/soc/esp32s3/include/soc/sdmmc_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sdmmc_struct.h rename to components/soc/esp32s3/include/soc/sdmmc_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/sens_reg.h b/components/soc/esp32s3/include/soc/sens_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sens_reg.h rename to components/soc/esp32s3/include/soc/sens_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/sens_struct.h b/components/soc/esp32s3/include/soc/sens_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sens_struct.h rename to components/soc/esp32s3/include/soc/sens_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/sensitive_reg.h b/components/soc/esp32s3/include/soc/sensitive_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sensitive_reg.h rename to components/soc/esp32s3/include/soc/sensitive_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/sensitive_struct.h b/components/soc/esp32s3/include/soc/sensitive_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sensitive_struct.h rename to components/soc/esp32s3/include/soc/sensitive_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/sha_caps.h b/components/soc/esp32s3/include/soc/sha_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sha_caps.h rename to components/soc/esp32s3/include/soc/sha_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/sigmadelta_caps.h b/components/soc/esp32s3/include/soc/sigmadelta_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sigmadelta_caps.h rename to components/soc/esp32s3/include/soc/sigmadelta_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/slc_reg.h b/components/soc/esp32s3/include/soc/slc_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/slc_reg.h rename to components/soc/esp32s3/include/soc/slc_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/slc_struct.h b/components/soc/esp32s3/include/soc/slc_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/slc_struct.h rename to components/soc/esp32s3/include/soc/slc_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/soc.h b/components/soc/esp32s3/include/soc/soc.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/soc.h rename to components/soc/esp32s3/include/soc/soc.h diff --git a/components/soc/soc/esp32s3/include/soc/soc_caps.h b/components/soc/esp32s3/include/soc/soc_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/soc_caps.h rename to components/soc/esp32s3/include/soc/soc_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/soc_pins.h b/components/soc/esp32s3/include/soc/soc_pins.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/soc_pins.h rename to components/soc/esp32s3/include/soc/soc_pins.h diff --git a/components/soc/soc/esp32s3/include/soc/soc_ulp.h b/components/soc/esp32s3/include/soc/soc_ulp.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/soc_ulp.h rename to components/soc/esp32s3/include/soc/soc_ulp.h diff --git a/components/soc/soc/esp32s3/include/soc/spi_caps.h b/components/soc/esp32s3/include/soc/spi_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/spi_caps.h rename to components/soc/esp32s3/include/soc/spi_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/spi_mem_reg.h b/components/soc/esp32s3/include/soc/spi_mem_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/spi_mem_reg.h rename to components/soc/esp32s3/include/soc/spi_mem_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/spi_mem_struct.h b/components/soc/esp32s3/include/soc/spi_mem_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/spi_mem_struct.h rename to components/soc/esp32s3/include/soc/spi_mem_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/spi_pins.h b/components/soc/esp32s3/include/soc/spi_pins.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/spi_pins.h rename to components/soc/esp32s3/include/soc/spi_pins.h diff --git a/components/soc/soc/esp32s3/include/soc/spi_reg.h b/components/soc/esp32s3/include/soc/spi_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/spi_reg.h rename to components/soc/esp32s3/include/soc/spi_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/spi_struct.h b/components/soc/esp32s3/include/soc/spi_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/spi_struct.h rename to components/soc/esp32s3/include/soc/spi_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/sys_timer_reg.h b/components/soc/esp32s3/include/soc/sys_timer_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sys_timer_reg.h rename to components/soc/esp32s3/include/soc/sys_timer_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/sys_timer_struct.h b/components/soc/esp32s3/include/soc/sys_timer_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/sys_timer_struct.h rename to components/soc/esp32s3/include/soc/sys_timer_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/syscon_reg.h b/components/soc/esp32s3/include/soc/syscon_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/syscon_reg.h rename to components/soc/esp32s3/include/soc/syscon_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/syscon_struct.h b/components/soc/esp32s3/include/soc/syscon_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/syscon_struct.h rename to components/soc/esp32s3/include/soc/syscon_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/system_reg.h b/components/soc/esp32s3/include/soc/system_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/system_reg.h rename to components/soc/esp32s3/include/soc/system_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/system_struct.h b/components/soc/esp32s3/include/soc/system_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/system_struct.h rename to components/soc/esp32s3/include/soc/system_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/systimer_caps.h b/components/soc/esp32s3/include/soc/systimer_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/systimer_caps.h rename to components/soc/esp32s3/include/soc/systimer_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/timer_group_caps.h b/components/soc/esp32s3/include/soc/timer_group_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/timer_group_caps.h rename to components/soc/esp32s3/include/soc/timer_group_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/timer_group_reg.h b/components/soc/esp32s3/include/soc/timer_group_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/timer_group_reg.h rename to components/soc/esp32s3/include/soc/timer_group_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/timer_group_struct.h b/components/soc/esp32s3/include/soc/timer_group_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/timer_group_struct.h rename to components/soc/esp32s3/include/soc/timer_group_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/touch_channel.h b/components/soc/esp32s3/include/soc/touch_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/touch_channel.h rename to components/soc/esp32s3/include/soc/touch_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/touch_sensor_caps.h b/components/soc/esp32s3/include/soc/touch_sensor_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/touch_sensor_caps.h rename to components/soc/esp32s3/include/soc/touch_sensor_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/touch_sensor_channel.h b/components/soc/esp32s3/include/soc/touch_sensor_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/touch_sensor_channel.h rename to components/soc/esp32s3/include/soc/touch_sensor_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/twai_caps.h b/components/soc/esp32s3/include/soc/twai_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/twai_caps.h rename to components/soc/esp32s3/include/soc/twai_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/twai_struct.h b/components/soc/esp32s3/include/soc/twai_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/twai_struct.h rename to components/soc/esp32s3/include/soc/twai_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/uart_caps.h b/components/soc/esp32s3/include/soc/uart_caps.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/uart_caps.h rename to components/soc/esp32s3/include/soc/uart_caps.h diff --git a/components/soc/soc/esp32s3/include/soc/uart_channel.h b/components/soc/esp32s3/include/soc/uart_channel.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/uart_channel.h rename to components/soc/esp32s3/include/soc/uart_channel.h diff --git a/components/soc/soc/esp32s3/include/soc/uart_reg.h b/components/soc/esp32s3/include/soc/uart_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/uart_reg.h rename to components/soc/esp32s3/include/soc/uart_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/uart_struct.h b/components/soc/esp32s3/include/soc/uart_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/uart_struct.h rename to components/soc/esp32s3/include/soc/uart_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/uhci_reg.h b/components/soc/esp32s3/include/soc/uhci_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/uhci_reg.h rename to components/soc/esp32s3/include/soc/uhci_reg.h diff --git a/components/soc/soc/esp32s3/include/soc/uhci_struct.h b/components/soc/esp32s3/include/soc/uhci_struct.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/uhci_struct.h rename to components/soc/esp32s3/include/soc/uhci_struct.h diff --git a/components/soc/soc/esp32s3/include/soc/wdev_reg.h b/components/soc/esp32s3/include/soc/wdev_reg.h similarity index 100% rename from components/soc/soc/esp32s3/include/soc/wdev_reg.h rename to components/soc/esp32s3/include/soc/wdev_reg.h diff --git a/components/soc/soc/esp32s3/interrupts.c b/components/soc/esp32s3/interrupts.c similarity index 100% rename from components/soc/soc/esp32s3/interrupts.c rename to components/soc/esp32s3/interrupts.c diff --git a/components/soc/soc/esp32s3/ledc_periph.c b/components/soc/esp32s3/ledc_periph.c similarity index 100% rename from components/soc/soc/esp32s3/ledc_periph.c rename to components/soc/esp32s3/ledc_periph.c diff --git a/components/soc/soc/esp32s3/pcnt_periph.c b/components/soc/esp32s3/pcnt_periph.c similarity index 100% rename from components/soc/soc/esp32s3/pcnt_periph.c rename to components/soc/esp32s3/pcnt_periph.c diff --git a/components/soc/soc/esp32s3/private_include/regi2c_bbpll.h b/components/soc/esp32s3/private_include/regi2c_bbpll.h similarity index 100% rename from components/soc/soc/esp32s3/private_include/regi2c_bbpll.h rename to components/soc/esp32s3/private_include/regi2c_bbpll.h diff --git a/components/soc/soc/esp32s3/private_include/regi2c_brownout.h b/components/soc/esp32s3/private_include/regi2c_brownout.h similarity index 100% rename from components/soc/soc/esp32s3/private_include/regi2c_brownout.h rename to components/soc/esp32s3/private_include/regi2c_brownout.h diff --git a/components/soc/soc/esp32s3/private_include/regi2c_dig_reg.h b/components/soc/esp32s3/private_include/regi2c_dig_reg.h similarity index 100% rename from components/soc/soc/esp32s3/private_include/regi2c_dig_reg.h rename to components/soc/esp32s3/private_include/regi2c_dig_reg.h diff --git a/components/soc/soc/esp32s3/private_include/regi2c_ulp.h b/components/soc/esp32s3/private_include/regi2c_ulp.h similarity index 100% rename from components/soc/soc/esp32s3/private_include/regi2c_ulp.h rename to components/soc/esp32s3/private_include/regi2c_ulp.h diff --git a/components/soc/src/esp32s3/regi2c_ctrl.h b/components/soc/esp32s3/regi2c_ctrl.h similarity index 100% rename from components/soc/src/esp32s3/regi2c_ctrl.h rename to components/soc/esp32s3/regi2c_ctrl.h diff --git a/components/soc/src/esp32s3/rtc_clk.c b/components/soc/esp32s3/rtc_clk.c similarity index 100% rename from components/soc/src/esp32s3/rtc_clk.c rename to components/soc/esp32s3/rtc_clk.c diff --git a/components/soc/src/esp32s3/rtc_clk_common.h b/components/soc/esp32s3/rtc_clk_common.h similarity index 97% rename from components/soc/src/esp32s3/rtc_clk_common.h rename to components/soc/esp32s3/rtc_clk_common.h index ad6e455835..7c0f76dafd 100644 --- a/components/soc/src/esp32s3/rtc_clk_common.h +++ b/components/soc/esp32s3/rtc_clk_common.h @@ -14,6 +14,9 @@ #pragma once +#include +#include + #define MHZ (1000000) #define DPORT_CPUPERIOD_SEL_80 0 diff --git a/components/soc/src/esp32s3/rtc_clk_init.c b/components/soc/esp32s3/rtc_clk_init.c similarity index 100% rename from components/soc/src/esp32s3/rtc_clk_init.c rename to components/soc/esp32s3/rtc_clk_init.c diff --git a/components/soc/src/esp32s3/rtc_init.c b/components/soc/esp32s3/rtc_init.c similarity index 100% rename from components/soc/src/esp32s3/rtc_init.c rename to components/soc/esp32s3/rtc_init.c diff --git a/components/soc/soc/esp32s3/rtc_io_periph.c b/components/soc/esp32s3/rtc_io_periph.c similarity index 100% rename from components/soc/soc/esp32s3/rtc_io_periph.c rename to components/soc/esp32s3/rtc_io_periph.c diff --git a/components/soc/soc/esp32s3/rtc_periph.c b/components/soc/esp32s3/rtc_periph.c similarity index 100% rename from components/soc/soc/esp32s3/rtc_periph.c rename to components/soc/esp32s3/rtc_periph.c diff --git a/components/soc/src/esp32s3/rtc_pm.c b/components/soc/esp32s3/rtc_pm.c similarity index 100% rename from components/soc/src/esp32s3/rtc_pm.c rename to components/soc/esp32s3/rtc_pm.c diff --git a/components/soc/src/esp32s3/rtc_sleep.c b/components/soc/esp32s3/rtc_sleep.c similarity index 100% rename from components/soc/src/esp32s3/rtc_sleep.c rename to components/soc/esp32s3/rtc_sleep.c diff --git a/components/soc/src/esp32s3/rtc_time.c b/components/soc/esp32s3/rtc_time.c similarity index 100% rename from components/soc/src/esp32s3/rtc_time.c rename to components/soc/esp32s3/rtc_time.c diff --git a/components/soc/soc/esp32s3/sdio_slave_periph.c b/components/soc/esp32s3/sdio_slave_periph.c similarity index 100% rename from components/soc/soc/esp32s3/sdio_slave_periph.c rename to components/soc/esp32s3/sdio_slave_periph.c diff --git a/components/soc/soc/esp32s3/sdmmc_periph.c b/components/soc/esp32s3/sdmmc_periph.c similarity index 100% rename from components/soc/soc/esp32s3/sdmmc_periph.c rename to components/soc/esp32s3/sdmmc_periph.c diff --git a/components/soc/src/esp32s3/soc_memory_layout.c b/components/soc/esp32s3/soc_memory_layout.c similarity index 100% rename from components/soc/src/esp32s3/soc_memory_layout.c rename to components/soc/esp32s3/soc_memory_layout.c diff --git a/components/soc/soc/esp32s3/spi_periph.c b/components/soc/esp32s3/spi_periph.c similarity index 100% rename from components/soc/soc/esp32s3/spi_periph.c rename to components/soc/esp32s3/spi_periph.c diff --git a/components/soc/soc/esp32s3/touch_sensor_periph.c b/components/soc/esp32s3/touch_sensor_periph.c similarity index 100% rename from components/soc/soc/esp32s3/touch_sensor_periph.c rename to components/soc/esp32s3/touch_sensor_periph.c diff --git a/components/soc/soc/esp32s3/uart_periph.c b/components/soc/esp32s3/uart_periph.c similarity index 100% rename from components/soc/soc/esp32s3/uart_periph.c rename to components/soc/esp32s3/uart_periph.c diff --git a/components/soc/soc/include/soc/adc_periph.h b/components/soc/include/soc/adc_periph.h similarity index 100% rename from components/soc/soc/include/soc/adc_periph.h rename to components/soc/include/soc/adc_periph.h diff --git a/components/soc/soc/include/soc/dac_periph.h b/components/soc/include/soc/dac_periph.h similarity index 100% rename from components/soc/soc/include/soc/dac_periph.h rename to components/soc/include/soc/dac_periph.h diff --git a/components/soc/soc/include/soc/dedic_gpio_periph.h b/components/soc/include/soc/dedic_gpio_periph.h similarity index 100% rename from components/soc/soc/include/soc/dedic_gpio_periph.h rename to components/soc/include/soc/dedic_gpio_periph.h diff --git a/components/soc/soc/include/soc/efuse_periph.h b/components/soc/include/soc/efuse_periph.h similarity index 100% rename from components/soc/soc/include/soc/efuse_periph.h rename to components/soc/include/soc/efuse_periph.h diff --git a/components/soc/soc/include/soc/emac_periph.h b/components/soc/include/soc/emac_periph.h similarity index 100% rename from components/soc/soc/include/soc/emac_periph.h rename to components/soc/include/soc/emac_periph.h diff --git a/components/soc/soc/include/soc/gpio_periph.h b/components/soc/include/soc/gpio_periph.h similarity index 100% rename from components/soc/soc/include/soc/gpio_periph.h rename to components/soc/include/soc/gpio_periph.h diff --git a/components/soc/soc/include/soc/hwcrypto_periph.h b/components/soc/include/soc/hwcrypto_periph.h similarity index 100% rename from components/soc/soc/include/soc/hwcrypto_periph.h rename to components/soc/include/soc/hwcrypto_periph.h diff --git a/components/soc/soc/include/soc/i2c_periph.h b/components/soc/include/soc/i2c_periph.h similarity index 100% rename from components/soc/soc/include/soc/i2c_periph.h rename to components/soc/include/soc/i2c_periph.h diff --git a/components/soc/soc/include/soc/i2s_periph.h b/components/soc/include/soc/i2s_periph.h similarity index 100% rename from components/soc/soc/include/soc/i2s_periph.h rename to components/soc/include/soc/i2s_periph.h diff --git a/components/soc/soc/include/soc/interrupts.h b/components/soc/include/soc/interrupts.h similarity index 100% rename from components/soc/soc/include/soc/interrupts.h rename to components/soc/include/soc/interrupts.h diff --git a/components/soc/soc/include/soc/ledc_periph.h b/components/soc/include/soc/ledc_periph.h similarity index 100% rename from components/soc/soc/include/soc/ledc_periph.h rename to components/soc/include/soc/ledc_periph.h diff --git a/components/soc/soc/include/soc/mcpwm_periph.h b/components/soc/include/soc/mcpwm_periph.h similarity index 100% rename from components/soc/soc/include/soc/mcpwm_periph.h rename to components/soc/include/soc/mcpwm_periph.h diff --git a/components/soc/soc/include/soc/pcnt_periph.h b/components/soc/include/soc/pcnt_periph.h similarity index 100% rename from components/soc/soc/include/soc/pcnt_periph.h rename to components/soc/include/soc/pcnt_periph.h diff --git a/components/soc/soc/include/soc/rmt_periph.h b/components/soc/include/soc/rmt_periph.h similarity index 100% rename from components/soc/soc/include/soc/rmt_periph.h rename to components/soc/include/soc/rmt_periph.h diff --git a/components/soc/soc/include/soc/rtc_cntl_periph.h b/components/soc/include/soc/rtc_cntl_periph.h similarity index 100% rename from components/soc/soc/include/soc/rtc_cntl_periph.h rename to components/soc/include/soc/rtc_cntl_periph.h diff --git a/components/soc/soc/include/soc/rtc_io_periph.h b/components/soc/include/soc/rtc_io_periph.h similarity index 100% rename from components/soc/soc/include/soc/rtc_io_periph.h rename to components/soc/include/soc/rtc_io_periph.h diff --git a/components/soc/soc/include/soc/rtc_periph.h b/components/soc/include/soc/rtc_periph.h similarity index 100% rename from components/soc/soc/include/soc/rtc_periph.h rename to components/soc/include/soc/rtc_periph.h diff --git a/components/soc/soc/include/soc/sdio_slave_periph.h b/components/soc/include/soc/sdio_slave_periph.h similarity index 100% rename from components/soc/soc/include/soc/sdio_slave_periph.h rename to components/soc/include/soc/sdio_slave_periph.h diff --git a/components/soc/soc/include/soc/sdmmc_periph.h b/components/soc/include/soc/sdmmc_periph.h similarity index 100% rename from components/soc/soc/include/soc/sdmmc_periph.h rename to components/soc/include/soc/sdmmc_periph.h diff --git a/components/soc/soc/include/soc/sens_periph.h b/components/soc/include/soc/sens_periph.h similarity index 100% rename from components/soc/soc/include/soc/sens_periph.h rename to components/soc/include/soc/sens_periph.h diff --git a/components/soc/soc/include/soc/sigmadelta_periph.h b/components/soc/include/soc/sigmadelta_periph.h similarity index 100% rename from components/soc/soc/include/soc/sigmadelta_periph.h rename to components/soc/include/soc/sigmadelta_periph.h diff --git a/components/soc/soc/include/soc/spi_periph.h b/components/soc/include/soc/spi_periph.h similarity index 100% rename from components/soc/soc/include/soc/spi_periph.h rename to components/soc/include/soc/spi_periph.h diff --git a/components/soc/soc/include/soc/syscon_periph.h b/components/soc/include/soc/syscon_periph.h similarity index 100% rename from components/soc/soc/include/soc/syscon_periph.h rename to components/soc/include/soc/syscon_periph.h diff --git a/components/soc/soc/include/soc/timer_periph.h b/components/soc/include/soc/timer_periph.h similarity index 100% rename from components/soc/soc/include/soc/timer_periph.h rename to components/soc/include/soc/timer_periph.h diff --git a/components/soc/soc/include/soc/touch_sensor_periph.h b/components/soc/include/soc/touch_sensor_periph.h similarity index 100% rename from components/soc/soc/include/soc/touch_sensor_periph.h rename to components/soc/include/soc/touch_sensor_periph.h diff --git a/components/soc/soc/include/soc/twai_periph.h b/components/soc/include/soc/twai_periph.h similarity index 100% rename from components/soc/soc/include/soc/twai_periph.h rename to components/soc/include/soc/twai_periph.h diff --git a/components/soc/soc/include/soc/uart_periph.h b/components/soc/include/soc/uart_periph.h similarity index 100% rename from components/soc/soc/include/soc/uart_periph.h rename to components/soc/include/soc/uart_periph.h diff --git a/components/soc/soc/include/soc/uhci_periph.h b/components/soc/include/soc/uhci_periph.h similarity index 100% rename from components/soc/soc/include/soc/uhci_periph.h rename to components/soc/include/soc/uhci_periph.h diff --git a/components/soc/src/lldesc.c b/components/soc/lldesc.c similarity index 100% rename from components/soc/src/lldesc.c rename to components/soc/lldesc.c diff --git a/components/soc/soc/CMakeLists.txt b/components/soc/soc/CMakeLists.txt deleted file mode 100644 index 0f0ee7f6cf..0000000000 --- a/components/soc/soc/CMakeLists.txt +++ /dev/null @@ -1,2 +0,0 @@ -idf_build_get_property(target IDF_TARGET) -add_subdirectory(${target}) diff --git a/components/soc/soc/component.mk b/components/soc/soc/component.mk deleted file mode 100644 index 8deea5253f..0000000000 --- a/components/soc/soc/component.mk +++ /dev/null @@ -1,2 +0,0 @@ -COMPONENT_ADD_INCLUDEDIRS += soc/include soc/$(SOC_NAME)/private_include soc/$(SOC_NAME)/include -COMPONENT_SRCDIRS += soc/$(SOC_NAME) diff --git a/components/soc/soc/esp32/CMakeLists.txt b/components/soc/soc/esp32/CMakeLists.txt deleted file mode 100644 index c423a829bc..0000000000 --- a/components/soc/soc/esp32/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -add_library(soc_esp32 STATIC - "adc_periph.c" - "dac_periph.c" - "gpio_periph.c" - "pcnt_periph.c" - "rtc_io_periph.c" - "rtc_periph.c" - "sdio_slave_periph.c" - "sdmmc_periph.c" - "interrupts.c" - "spi_periph.c" - "ledc_periph.c" - "i2s_periph.c" - "i2c_periph.c" - "uart_periph.c" - "touch_sensor_periph.c") - -target_include_directories(soc_esp32 PUBLIC include ../include private_include) \ No newline at end of file diff --git a/components/soc/soc/esp32s2/CMakeLists.txt b/components/soc/soc/esp32s2/CMakeLists.txt deleted file mode 100644 index 9b00451d91..0000000000 --- a/components/soc/soc/esp32s2/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -add_library(soc_esp32s2 STATIC - "adc_periph.c" - "dac_periph.c" - "dedic_gpio_periph.c" - "gpio_periph.c" - "pcnt_periph.c" - "rtc_io_periph.c" - "rtc_periph.c" - "interrupts.c" - "spi_periph.c" - "ledc_periph.c" - "i2s_periph.c" - "i2c_periph.c" - "uart_periph.c" - "usb_periph.c" - "touch_sensor_periph.c") - -target_include_directories(soc_esp32s2 PUBLIC include ../include private_include) diff --git a/components/soc/soc/esp32s3/CMakeLists.txt b/components/soc/soc/esp32s3/CMakeLists.txt deleted file mode 100644 index 148a3177fb..0000000000 --- a/components/soc/soc/esp32s3/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -add_library(soc_esp32s3 STATIC - "adc_periph.c" - "dac_periph.c" - "dedic_gpio_periph.c" - "gpio_periph.c" - "i2c_periph.c" - "i2s_periph.c" - "interrupts.c" - "ledc_periph.c" - "pcnt_periph.c" - "rtc_io_periph.c" - "rtc_periph.c" - "sdio_slave_periph.c" - "sdmmc_periph.c" - "spi_periph.c" - "touch_sensor_periph.c" - "uart_periph.c") - -target_include_directories(soc_esp32s3 PUBLIC include ../include private_include) diff --git a/components/soc/src/soc_include_legacy_warn.c b/components/soc/soc_include_legacy_warn.c similarity index 100% rename from components/soc/src/soc_include_legacy_warn.c rename to components/soc/soc_include_legacy_warn.c diff --git a/components/soc/src/esp32/component.mk b/components/soc/src/esp32/component.mk deleted file mode 100644 index aea3541d82..0000000000 --- a/components/soc/src/esp32/component.mk +++ /dev/null @@ -1,8 +0,0 @@ -COMPONENT_ADD_INCLUDEDIRS += src/$(SOC_NAME) src/$(SOC_NAME)/include -COMPONENT_SRCDIRS += src/$(SOC_NAME) - -ifndef CONFIG_ETH_USE_ESP32_EMAC - COMPONENT_OBJEXCLUDE += src/esp32/emac_hal.o -endif - -src/esp32/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion \ No newline at end of file diff --git a/components/soc/src/esp32s2/CMakeLists.txt b/components/soc/src/esp32s2/CMakeLists.txt deleted file mode 100644 index f1fe8ca090..0000000000 --- a/components/soc/src/esp32s2/CMakeLists.txt +++ /dev/null @@ -1,20 +0,0 @@ -set(srcs - "rtc_clk.c" - "regi2c_ctrl.c" - "rtc_clk_init.c" - "rtc_init.c" - "rtc_pm.c" - "rtc_sleep.c" - "rtc_time.c" - "rtc_wdt.c" - "soc_memory_layout.c") - -add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") - -target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") -target_include_directories(${COMPONENT_LIB} PUBLIC . include) - -if(NOT CMAKE_BUILD_EARLY_EXPANSION) - set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES - COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") -endif() diff --git a/components/soc/src/esp32s3/CMakeLists.txt b/components/soc/src/esp32s3/CMakeLists.txt deleted file mode 100644 index 972d69f96b..0000000000 --- a/components/soc/src/esp32s3/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -set(srcs - "rtc_clk_init.c" - "rtc_clk.c" - "rtc_init.c" - "rtc_pm.c" - "rtc_sleep.c" - "rtc_time.c" - "soc_memory_layout.c") - -add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") - -target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") -target_include_directories(${COMPONENT_LIB} PUBLIC . include) - -if(NOT CMAKE_BUILD_EARLY_EXPANSION) - set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES - COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") -endif() diff --git a/components/spi_flash/sim/Makefile.files b/components/spi_flash/sim/Makefile.files index 5c05144322..a66ca7733d 100644 --- a/components/spi_flash/sim/Makefile.files +++ b/components/spi_flash/sim/Makefile.files @@ -29,9 +29,8 @@ INCLUDE_DIRS := \ esp_system/include \ xtensa/include \ xtensa/esp32/include \ - soc/soc/esp32/include \ + soc/esp32/include \ soc/include \ - soc/soc/include \ esp32/include \ esp_timer/include \ bootloader_support/include \ diff --git a/components/spi_flash/sim/stubs/Makefile.files b/components/spi_flash/sim/stubs/Makefile.files index 9b63d80c97..f6275d7f23 100644 --- a/components/spi_flash/sim/stubs/Makefile.files +++ b/components/spi_flash/sim/stubs/Makefile.files @@ -21,9 +21,8 @@ INCLUDE_DIRS := \ $(addprefix ../../../../components/, \ esp_common/include \ esp_system/include \ - soc/soc/esp32/include \ + soc/esp32/include \ soc/include \ - soc/soc/include \ xtensa/include \ xtensa/esp32/include \ esp32/include \ diff --git a/components/spiffs/test_spiffs_host/Makefile.files b/components/spiffs/test_spiffs_host/Makefile.files index f5278d0002..924493e9e4 100644 --- a/components/spiffs/test_spiffs_host/Makefile.files +++ b/components/spiffs/test_spiffs_host/Makefile.files @@ -28,9 +28,8 @@ INCLUDE_DIRS := \ esp_system/include \ xtensa/include \ xtensa/esp32/include \ - soc/soc/esp32/include \ + soc/esp32/include \ soc/include \ - soc/soc/include \ esp32/include \ bootloader_support/include \ app_update/include \ diff --git a/components/wear_levelling/test_wl_host/Makefile.files b/components/wear_levelling/test_wl_host/Makefile.files index 93cd2bc722..47c365a4fc 100644 --- a/components/wear_levelling/test_wl_host/Makefile.files +++ b/components/wear_levelling/test_wl_host/Makefile.files @@ -27,9 +27,8 @@ INCLUDE_DIRS := \ esp_common/include \ xtensa/include \ xtensa/esp32/include \ - soc/soc/esp32/include \ + soc/esp32/include \ soc/include \ - soc/soc/include \ esp32/include \ bootloader_support/include \ app_update/include \ diff --git a/docs/en/api-reference/peripherals/rmt.rst b/docs/en/api-reference/peripherals/rmt.rst index 0e66057b59..8420ee363a 100644 --- a/docs/en/api-reference/peripherals/rmt.rst +++ b/docs/en/api-reference/peripherals/rmt.rst @@ -269,11 +269,11 @@ Setting or clearing an interrupt enable mask for specific channels and events ma .. only:: esp32 - When servicing an interrupt within an ISR, the interrupt need to explicitly cleared. To do so, set specific bits described as ``RMT.int_clr.val.chN_event_name`` and defined as a ``volatile struct`` in :component_file:`soc/soc/esp32/include/soc/rmt_struct.h`, where N is the RMT channel number [0, n] and the ``event_name`` is one of four events described above. + When servicing an interrupt within an ISR, the interrupt need to explicitly cleared. To do so, set specific bits described as ``RMT.int_clr.val.chN_event_name`` and defined as a ``volatile struct`` in :component_file:`soc/esp32/include/soc/rmt_struct.h`, where N is the RMT channel number [0, n] and the ``event_name`` is one of four events described above. .. only:: esp32s2 - When servicing an interrupt within an ISR, the interrupt need to explicitly cleared. To do so, set specific bits described as ``RMT.int_clr.val.chN_event_name`` and defined as a ``volatile struct`` in :component_file:`soc/soc/esp32s2/include/soc/rmt_struct.h`, where N is the RMT channel number [0, n] and the ``event_name`` is one of four events described above. + When servicing an interrupt within an ISR, the interrupt need to explicitly cleared. To do so, set specific bits described as ``RMT.int_clr.val.chN_event_name`` and defined as a ``volatile struct`` in :component_file:`soc/esp32s2/include/soc/rmt_struct.h`, where N is the RMT channel number [0, n] and the ``event_name`` is one of four events described above. If you do not need an ISR anymore, you can deregister it by calling a function :cpp:func:`rmt_isr_deregister`. diff --git a/docs/en/api-reference/peripherals/timer.rst b/docs/en/api-reference/peripherals/timer.rst index 017ecab01f..94ecf5461d 100644 --- a/docs/en/api-reference/peripherals/timer.rst +++ b/docs/en/api-reference/peripherals/timer.rst @@ -91,7 +91,7 @@ Registration of the interrupt handler for a specific timer or a timer group can To enable interrupts for a timer group, call :cpp:func:`timer_group_intr_enable`, for a specific timer call :cpp:func:`timer_enable_intr`. To disable interrupts for a timer group, call :cpp:func:`timer_group_intr_disable`, for a specified timer, call :cpp:func:`timer_disable_intr`. -When handling an interrupt within an interrupt serivce routine (ISR), the interrupt status bit needs to be explicitly cleared. To do that, set the ``TIMERGN.{IDF_TARGET_INT_CLR_REG}.tM`` structure, defined in :component_file:`soc/soc/{IDF_TARGET_PATH_NAME}/include/soc/timer_group_struct.h`. In this structure, ``N`` is the timer group number [0, 1], ``M`` is the timer number [0, 1]. For example, to clear an interrupt status bit for the timer 1 in the timer group 0, call the following:: +When handling an interrupt within an interrupt serivce routine (ISR), the interrupt status bit needs to be explicitly cleared. To do that, set the ``TIMERGN.{IDF_TARGET_INT_CLR_REG}.tM`` structure, defined in :component_file:`soc/{IDF_TARGET_PATH_NAME}/include/soc/timer_group_struct.h`. In this structure, ``N`` is the timer group number [0, 1], ``M`` is the timer number [0, 1]. For example, to clear an interrupt status bit for the timer 1 in the timer group 0, call the following:: TIMERG0.{IDF_TARGET_INT_CLR_REG}.t1 = 1 diff --git a/docs/idf_extensions/gen_defines.py b/docs/idf_extensions/gen_defines.py index da5f325f14..c067ce5a7d 100644 --- a/docs/idf_extensions/gen_defines.py +++ b/docs/idf_extensions/gen_defines.py @@ -26,7 +26,7 @@ def generate_defines(app, project_description): # # kind of a hack, be nicer to add a component info dict in project_description.json soc_path = [p for p in project_description["build_component_paths"] if p.endswith("/soc")][0] - soc_headers = glob.glob(os.path.join(soc_path, "soc", project_description["target"], + soc_headers = glob.glob(os.path.join(soc_path, project_description["target"], "include", "soc", "*_caps.h")) assert len(soc_headers) > 0 diff --git a/docs/zh_CN/api-reference/peripherals/timer.rst b/docs/zh_CN/api-reference/peripherals/timer.rst index b9ea490b7e..bc61138967 100644 --- a/docs/zh_CN/api-reference/peripherals/timer.rst +++ b/docs/zh_CN/api-reference/peripherals/timer.rst @@ -89,7 +89,7 @@ ESP32 芯片提供两组硬件定时器,每组包含两个通用硬件定时 调用 :cpp:func:`timer_group_intr_enable` 使能定时器组的中断程序,调用 :cpp:func:`timer_enable_intr` 使能某定时器的中断程序。调用 :cpp:func:`timer_group_intr_disable` 关闭定时器组的中断程序,调用 :cpp:func:`timer_disable_intr` 关闭某定时器的中断程序。 -在中断服务程序(ISR)中处理中断时,需要明确地清除中断状态位。为此,请设置定义在 :component_file:`soc/soc/esp32/include/soc/timer_group_struct.h` 中的 ``TIMERGN.int_clr_timers.tM`` 结构。该结构中 ``N`` 是定时器组别编号 [0, 1],``M`` 是定时器编号 [0, 1]。例如,要清除定时器组别 0 中定时器 1 的中断状态位,请调用以下命令:: +在中断服务程序(ISR)中处理中断时,需要明确地清除中断状态位。为此,请设置定义在 :component_file:`soc/esp32/include/soc/timer_group_struct.h` 中的 ``TIMERGN.int_clr_timers.tM`` 结构。该结构中 ``N`` 是定时器组别编号 [0, 1],``M`` 是定时器编号 [0, 1]。例如,要清除定时器组别 0 中定时器 1 的中断状态位,请调用以下命令:: TIMERG0.int_clr_timers.t1 = 1 From 6b0a5af73e68ef0927915e41fdd89a009d879d3d Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Fri, 25 Sep 2020 15:23:52 +0800 Subject: [PATCH 3/4] soc: move implementations to esp_hw_support --- .../subproject/main/ld/esp32/bootloader.ld | 4 +- .../subproject/main/ld/esp32s2/bootloader.ld | 6 +- .../subproject/main/ld/esp32s3/bootloader.ld | 6 +- components/esp_hw_support/CMakeLists.txt | 6 +- components/esp_hw_support/component.mk | 6 +- .../include/soc/rtc_wdt.h | 0 .../{soc => esp_hw_support}/include/soc_log.h | 1 + components/esp_hw_support/linker.lf | 11 ++ .../esp_hw_support/port/esp32/CMakeLists.txt | 19 ++ .../port}/esp32/private_include/regi2c_apll.h | 0 .../esp32/private_include/regi2c_bbpll.h | 0 .../port}/esp32/regi2c_ctrl.h | 0 .../port}/esp32/rtc_clk.c | 0 .../port}/esp32/rtc_clk_common.h | 0 .../port}/esp32/rtc_clk_init.c | 0 .../port}/esp32/rtc_init.c | 0 .../port}/esp32/rtc_pm.c | 0 .../port}/esp32/rtc_sleep.c | 0 .../port}/esp32/rtc_time.c | 0 .../port}/esp32/rtc_wdt.c | 0 .../port/esp32s2/CMakeLists.txt | 20 ++ .../esp32s2/private_include/regi2c_apll.h | 0 .../esp32s2/private_include/regi2c_bbpll.h | 0 .../esp32s2/private_include/regi2c_brownout.h | 0 .../esp32s2/private_include/regi2c_saradc.h | 0 .../esp32s2/private_include/regi2c_ulp.h | 0 .../port}/esp32s2/regi2c_ctrl.c | 0 .../port}/esp32s2/regi2c_ctrl.h | 0 .../port}/esp32s2/rtc_clk.c | 0 .../port}/esp32s2/rtc_clk_common.h | 0 .../port}/esp32s2/rtc_clk_init.c | 0 .../port}/esp32s2/rtc_init.c | 0 .../port}/esp32s2/rtc_pm.c | 0 .../port}/esp32s2/rtc_sleep.c | 0 .../port}/esp32s2/rtc_time.c | 0 .../port}/esp32s2/rtc_wdt.c | 0 .../port/esp32s3/CMakeLists.txt | 18 ++ .../esp32s3/private_include/regi2c_bbpll.h | 0 .../esp32s3/private_include/regi2c_brownout.h | 0 .../esp32s3/private_include/regi2c_dig_reg.h | 0 .../esp32s3/private_include/regi2c_ulp.h | 0 .../port}/esp32s3/regi2c_ctrl.h | 0 .../port}/esp32s3/rtc_clk.c | 0 .../port}/esp32s3/rtc_clk_common.h | 0 .../port}/esp32s3/rtc_clk_init.c | 0 .../port}/esp32s3/rtc_init.c | 0 .../port}/esp32s3/rtc_pm.c | 0 .../port}/esp32s3/rtc_sleep.c | 0 .../port}/esp32s3/rtc_time.c | 0 components/esp_hw_support/test/CMakeLists.txt | 3 + .../{soc => esp_hw_support}/test/component.mk | 0 .../test/test_rtc_clk.c | 0 components/soc/CMakeLists.txt | 6 +- components/soc/esp32/CMakeLists.txt | 12 -- components/soc/esp32s2/CMakeLists.txt | 13 -- components/soc/esp32s2/i2c_apll.h | 136 ------------- components/soc/esp32s2/i2c_bbpll.h | 184 ------------------ components/soc/esp32s2/i2c_ulp.h | 39 ---- .../soc/esp32s2/include/soc/i2c_saradc.h | 77 -------- components/soc/esp32s3/CMakeLists.txt | 11 -- components/soc/esp32s3/i2c_bbpll.h | 184 ------------------ components/soc/esp32s3/i2c_ulp.h | 39 ---- components/soc/linker.lf | 8 - components/soc/test/CMakeLists.txt | 5 - tools/ci/check_public_headers_exceptions.txt | 2 +- 65 files changed, 92 insertions(+), 724 deletions(-) rename components/{soc => esp_hw_support}/include/soc/rtc_wdt.h (100%) rename components/{soc => esp_hw_support}/include/soc_log.h (99%) create mode 100644 components/esp_hw_support/linker.lf create mode 100644 components/esp_hw_support/port/esp32/CMakeLists.txt rename components/{soc => esp_hw_support/port}/esp32/private_include/regi2c_apll.h (100%) rename components/{soc => esp_hw_support/port}/esp32/private_include/regi2c_bbpll.h (100%) rename components/{soc => esp_hw_support/port}/esp32/regi2c_ctrl.h (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_clk.c (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_clk_common.h (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_clk_init.c (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_init.c (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_pm.c (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_sleep.c (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_time.c (100%) rename components/{soc => esp_hw_support/port}/esp32/rtc_wdt.c (100%) create mode 100644 components/esp_hw_support/port/esp32s2/CMakeLists.txt rename components/{soc => esp_hw_support/port}/esp32s2/private_include/regi2c_apll.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/private_include/regi2c_bbpll.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/private_include/regi2c_brownout.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/private_include/regi2c_saradc.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/private_include/regi2c_ulp.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/regi2c_ctrl.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/regi2c_ctrl.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_clk.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_clk_common.h (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_clk_init.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_init.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_pm.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_sleep.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_time.c (100%) rename components/{soc => esp_hw_support/port}/esp32s2/rtc_wdt.c (100%) create mode 100644 components/esp_hw_support/port/esp32s3/CMakeLists.txt rename components/{soc => esp_hw_support/port}/esp32s3/private_include/regi2c_bbpll.h (100%) rename components/{soc => esp_hw_support/port}/esp32s3/private_include/regi2c_brownout.h (100%) rename components/{soc => esp_hw_support/port}/esp32s3/private_include/regi2c_dig_reg.h (100%) rename components/{soc => esp_hw_support/port}/esp32s3/private_include/regi2c_ulp.h (100%) rename components/{soc => esp_hw_support/port}/esp32s3/regi2c_ctrl.h (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_clk.c (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_clk_common.h (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_clk_init.c (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_init.c (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_pm.c (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_sleep.c (100%) rename components/{soc => esp_hw_support/port}/esp32s3/rtc_time.c (100%) create mode 100644 components/esp_hw_support/test/CMakeLists.txt rename components/{soc => esp_hw_support}/test/component.mk (100%) rename components/{soc => esp_hw_support}/test/test_rtc_clk.c (100%) delete mode 100644 components/soc/esp32s2/i2c_apll.h delete mode 100644 components/soc/esp32s2/i2c_bbpll.h delete mode 100644 components/soc/esp32s2/i2c_ulp.h delete mode 100644 components/soc/esp32s2/include/soc/i2c_saradc.h delete mode 100644 components/soc/esp32s3/i2c_bbpll.h delete mode 100644 components/soc/esp32s3/i2c_ulp.h delete mode 100644 components/soc/test/CMakeLists.txt diff --git a/components/bootloader/subproject/main/ld/esp32/bootloader.ld b/components/bootloader/subproject/main/ld/esp32/bootloader.ld index 304fbc3987..10d586d64c 100644 --- a/components/bootloader/subproject/main/ld/esp32/bootloader.ld +++ b/components/bootloader/subproject/main/ld/esp32/bootloader.ld @@ -56,8 +56,8 @@ SECTIONS *libmicro-ecc.a:*.*(.literal .text .literal.* .text.*) *libspi_flash.a:*.*(.literal .text .literal.* .text.*) *libhal.a:wdt_hal_iram.*(.literal .text .literal.* .text.*) - *libsoc.a:rtc_clk.*(.literal .text .literal.* .text.*) - *libsoc.a:rtc_time.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:rtc_clk.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:rtc_time.*(.literal .text .literal.* .text.*) *libefuse.a:*.*(.literal .text .literal.* .text.*) *(.fini.literal) *(.fini) diff --git a/components/bootloader/subproject/main/ld/esp32s2/bootloader.ld b/components/bootloader/subproject/main/ld/esp32s2/bootloader.ld index 158fcb36cb..62b51c9193 100644 --- a/components/bootloader/subproject/main/ld/esp32s2/bootloader.ld +++ b/components/bootloader/subproject/main/ld/esp32s2/bootloader.ld @@ -43,9 +43,9 @@ SECTIONS *libmicro-ecc.a:*.*(.literal .text .literal.* .text.*) *libspi_flash.a:*.*(.literal .text .literal.* .text.*) *libhal.a:wdt_hal_iram.*(.literal .text .literal.* .text.*) - *libsoc.a:rtc_clk.*(.literal .text .literal.* .text.*) - *libsoc.a:rtc_time.*(.literal .text .literal.* .text.*) - *libsoc.a:regi2c_ctrl.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:rtc_clk.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:rtc_time.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:regi2c_ctrl.*(.literal .text .literal.* .text.*) *libefuse.a:*.*(.literal .text .literal.* .text.*) *(.fini.literal) *(.fini) diff --git a/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld b/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld index e190d4d3b8..61f0f2770a 100644 --- a/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld +++ b/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld @@ -44,9 +44,9 @@ SECTIONS *libmicro-ecc.a:*.*(.literal .text .literal.* .text.*) *libspi_flash.a:*.*(.literal .text .literal.* .text.*) *libhal.a:wdt_hal_iram.*(.literal .text .literal.* .text.*) - *libsoc.a:rtc_clk.*(.literal .text .literal.* .text.*) - *libsoc.a:rtc_time.*(.literal .text .literal.* .text.*) - *libsoc.a:regi2c_ctrl.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:rtc_clk.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:rtc_time.*(.literal .text .literal.* .text.*) + *libesp_hw_support.a:regi2c_ctrl.*(.literal .text .literal.* .text.*) *libefuse.a:*.*(.literal .text .literal.* .text.*) *(.fini.literal) *(.fini) diff --git a/components/esp_hw_support/CMakeLists.txt b/components/esp_hw_support/CMakeLists.txt index 8145907364..ab097c4f69 100644 --- a/components/esp_hw_support/CMakeLists.txt +++ b/components/esp_hw_support/CMakeLists.txt @@ -1,4 +1,8 @@ idf_component_register(SRCS "compare_set.c" "cpu_util.c" INCLUDE_DIRS include - REQUIRES soc) + REQUIRES soc + LDFRAGMENTS linker.lf) + +idf_build_get_property(target IDF_TARGET) +add_subdirectory(port/${target}) diff --git a/components/esp_hw_support/component.mk b/components/esp_hw_support/component.mk index 3734fe3290..b1674229b3 100644 --- a/components/esp_hw_support/component.mk +++ b/components/esp_hw_support/component.mk @@ -1,2 +1,4 @@ -COMPONENT_SRCDIRS := . -COMPONENT_ADD_INCLUDEDIRS := . include +COMPONENT_SRCDIRS := . port/$(IDF_TARGET) +COMPONENT_ADD_INCLUDEDIRS := . include port/$(IDF_TARGET)/private_include + +port/$(IDF_TARGET)/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion diff --git a/components/soc/include/soc/rtc_wdt.h b/components/esp_hw_support/include/soc/rtc_wdt.h similarity index 100% rename from components/soc/include/soc/rtc_wdt.h rename to components/esp_hw_support/include/soc/rtc_wdt.h diff --git a/components/soc/include/soc_log.h b/components/esp_hw_support/include/soc_log.h similarity index 99% rename from components/soc/include/soc_log.h rename to components/esp_hw_support/include/soc_log.h index 2934eb0c6b..2f2bfd4e96 100644 --- a/components/soc/include/soc_log.h +++ b/components/esp_hw_support/include/soc_log.h @@ -14,6 +14,7 @@ #pragma once #include "esp_rom_sys.h" + /** * @file soc_log.h * @brief SOC library logging functions diff --git a/components/esp_hw_support/linker.lf b/components/esp_hw_support/linker.lf new file mode 100644 index 0000000000..b785ec786a --- /dev/null +++ b/components/esp_hw_support/linker.lf @@ -0,0 +1,11 @@ +[mapping:esp_hw_support] +archive: libesp_hw_support.a +entries: + cpu_util (noflash_text) + rtc_clk (noflash) + rtc_init:rtc_vddsdio_set_config (noflash) + rtc_periph (noflash_text) + rtc_pm (noflash_text) + rtc_sleep (noflash_text) + rtc_time (noflash_text) + rtc_wdt (noflash_text) diff --git a/components/esp_hw_support/port/esp32/CMakeLists.txt b/components/esp_hw_support/port/esp32/CMakeLists.txt new file mode 100644 index 0000000000..6edbf56018 --- /dev/null +++ b/components/esp_hw_support/port/esp32/CMakeLists.txt @@ -0,0 +1,19 @@ +target_include_directories(${COMPONENT_LIB} PUBLIC .) +target_include_directories(${COMPONENT_LIB} PRIVATE private_include) + +set(srcs + "rtc_clk.c" + "rtc_clk_init.c" + "rtc_init.c" + "rtc_pm.c" + "rtc_sleep.c" + "rtc_time.c" + "rtc_wdt.c") + +add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") +target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") + +if(NOT CMAKE_BUILD_EARLY_EXPANSION) + set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES + COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") +endif() diff --git a/components/soc/esp32/private_include/regi2c_apll.h b/components/esp_hw_support/port/esp32/private_include/regi2c_apll.h similarity index 100% rename from components/soc/esp32/private_include/regi2c_apll.h rename to components/esp_hw_support/port/esp32/private_include/regi2c_apll.h diff --git a/components/soc/esp32/private_include/regi2c_bbpll.h b/components/esp_hw_support/port/esp32/private_include/regi2c_bbpll.h similarity index 100% rename from components/soc/esp32/private_include/regi2c_bbpll.h rename to components/esp_hw_support/port/esp32/private_include/regi2c_bbpll.h diff --git a/components/soc/esp32/regi2c_ctrl.h b/components/esp_hw_support/port/esp32/regi2c_ctrl.h similarity index 100% rename from components/soc/esp32/regi2c_ctrl.h rename to components/esp_hw_support/port/esp32/regi2c_ctrl.h diff --git a/components/soc/esp32/rtc_clk.c b/components/esp_hw_support/port/esp32/rtc_clk.c similarity index 100% rename from components/soc/esp32/rtc_clk.c rename to components/esp_hw_support/port/esp32/rtc_clk.c diff --git a/components/soc/esp32/rtc_clk_common.h b/components/esp_hw_support/port/esp32/rtc_clk_common.h similarity index 100% rename from components/soc/esp32/rtc_clk_common.h rename to components/esp_hw_support/port/esp32/rtc_clk_common.h diff --git a/components/soc/esp32/rtc_clk_init.c b/components/esp_hw_support/port/esp32/rtc_clk_init.c similarity index 100% rename from components/soc/esp32/rtc_clk_init.c rename to components/esp_hw_support/port/esp32/rtc_clk_init.c diff --git a/components/soc/esp32/rtc_init.c b/components/esp_hw_support/port/esp32/rtc_init.c similarity index 100% rename from components/soc/esp32/rtc_init.c rename to components/esp_hw_support/port/esp32/rtc_init.c diff --git a/components/soc/esp32/rtc_pm.c b/components/esp_hw_support/port/esp32/rtc_pm.c similarity index 100% rename from components/soc/esp32/rtc_pm.c rename to components/esp_hw_support/port/esp32/rtc_pm.c diff --git a/components/soc/esp32/rtc_sleep.c b/components/esp_hw_support/port/esp32/rtc_sleep.c similarity index 100% rename from components/soc/esp32/rtc_sleep.c rename to components/esp_hw_support/port/esp32/rtc_sleep.c diff --git a/components/soc/esp32/rtc_time.c b/components/esp_hw_support/port/esp32/rtc_time.c similarity index 100% rename from components/soc/esp32/rtc_time.c rename to components/esp_hw_support/port/esp32/rtc_time.c diff --git a/components/soc/esp32/rtc_wdt.c b/components/esp_hw_support/port/esp32/rtc_wdt.c similarity index 100% rename from components/soc/esp32/rtc_wdt.c rename to components/esp_hw_support/port/esp32/rtc_wdt.c diff --git a/components/esp_hw_support/port/esp32s2/CMakeLists.txt b/components/esp_hw_support/port/esp32s2/CMakeLists.txt new file mode 100644 index 0000000000..94ae9e59c8 --- /dev/null +++ b/components/esp_hw_support/port/esp32s2/CMakeLists.txt @@ -0,0 +1,20 @@ +target_include_directories(${COMPONENT_LIB} PUBLIC .) +target_include_directories(${COMPONENT_LIB} PUBLIC private_include) + +set(srcs + "rtc_clk.c" + "rtc_clk_init.c" + "rtc_init.c" + "rtc_pm.c" + "rtc_sleep.c" + "rtc_time.c" + "rtc_wdt.c" + "regi2c_ctrl.c") + +add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") +target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") + +if(NOT CMAKE_BUILD_EARLY_EXPANSION) + set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES + COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") +endif() diff --git a/components/soc/esp32s2/private_include/regi2c_apll.h b/components/esp_hw_support/port/esp32s2/private_include/regi2c_apll.h similarity index 100% rename from components/soc/esp32s2/private_include/regi2c_apll.h rename to components/esp_hw_support/port/esp32s2/private_include/regi2c_apll.h diff --git a/components/soc/esp32s2/private_include/regi2c_bbpll.h b/components/esp_hw_support/port/esp32s2/private_include/regi2c_bbpll.h similarity index 100% rename from components/soc/esp32s2/private_include/regi2c_bbpll.h rename to components/esp_hw_support/port/esp32s2/private_include/regi2c_bbpll.h diff --git a/components/soc/esp32s2/private_include/regi2c_brownout.h b/components/esp_hw_support/port/esp32s2/private_include/regi2c_brownout.h similarity index 100% rename from components/soc/esp32s2/private_include/regi2c_brownout.h rename to components/esp_hw_support/port/esp32s2/private_include/regi2c_brownout.h diff --git a/components/soc/esp32s2/private_include/regi2c_saradc.h b/components/esp_hw_support/port/esp32s2/private_include/regi2c_saradc.h similarity index 100% rename from components/soc/esp32s2/private_include/regi2c_saradc.h rename to components/esp_hw_support/port/esp32s2/private_include/regi2c_saradc.h diff --git a/components/soc/esp32s2/private_include/regi2c_ulp.h b/components/esp_hw_support/port/esp32s2/private_include/regi2c_ulp.h similarity index 100% rename from components/soc/esp32s2/private_include/regi2c_ulp.h rename to components/esp_hw_support/port/esp32s2/private_include/regi2c_ulp.h diff --git a/components/soc/esp32s2/regi2c_ctrl.c b/components/esp_hw_support/port/esp32s2/regi2c_ctrl.c similarity index 100% rename from components/soc/esp32s2/regi2c_ctrl.c rename to components/esp_hw_support/port/esp32s2/regi2c_ctrl.c diff --git a/components/soc/esp32s2/regi2c_ctrl.h b/components/esp_hw_support/port/esp32s2/regi2c_ctrl.h similarity index 100% rename from components/soc/esp32s2/regi2c_ctrl.h rename to components/esp_hw_support/port/esp32s2/regi2c_ctrl.h diff --git a/components/soc/esp32s2/rtc_clk.c b/components/esp_hw_support/port/esp32s2/rtc_clk.c similarity index 100% rename from components/soc/esp32s2/rtc_clk.c rename to components/esp_hw_support/port/esp32s2/rtc_clk.c diff --git a/components/soc/esp32s2/rtc_clk_common.h b/components/esp_hw_support/port/esp32s2/rtc_clk_common.h similarity index 100% rename from components/soc/esp32s2/rtc_clk_common.h rename to components/esp_hw_support/port/esp32s2/rtc_clk_common.h diff --git a/components/soc/esp32s2/rtc_clk_init.c b/components/esp_hw_support/port/esp32s2/rtc_clk_init.c similarity index 100% rename from components/soc/esp32s2/rtc_clk_init.c rename to components/esp_hw_support/port/esp32s2/rtc_clk_init.c diff --git a/components/soc/esp32s2/rtc_init.c b/components/esp_hw_support/port/esp32s2/rtc_init.c similarity index 100% rename from components/soc/esp32s2/rtc_init.c rename to components/esp_hw_support/port/esp32s2/rtc_init.c diff --git a/components/soc/esp32s2/rtc_pm.c b/components/esp_hw_support/port/esp32s2/rtc_pm.c similarity index 100% rename from components/soc/esp32s2/rtc_pm.c rename to components/esp_hw_support/port/esp32s2/rtc_pm.c diff --git a/components/soc/esp32s2/rtc_sleep.c b/components/esp_hw_support/port/esp32s2/rtc_sleep.c similarity index 100% rename from components/soc/esp32s2/rtc_sleep.c rename to components/esp_hw_support/port/esp32s2/rtc_sleep.c diff --git a/components/soc/esp32s2/rtc_time.c b/components/esp_hw_support/port/esp32s2/rtc_time.c similarity index 100% rename from components/soc/esp32s2/rtc_time.c rename to components/esp_hw_support/port/esp32s2/rtc_time.c diff --git a/components/soc/esp32s2/rtc_wdt.c b/components/esp_hw_support/port/esp32s2/rtc_wdt.c similarity index 100% rename from components/soc/esp32s2/rtc_wdt.c rename to components/esp_hw_support/port/esp32s2/rtc_wdt.c diff --git a/components/esp_hw_support/port/esp32s3/CMakeLists.txt b/components/esp_hw_support/port/esp32s3/CMakeLists.txt new file mode 100644 index 0000000000..1939674da4 --- /dev/null +++ b/components/esp_hw_support/port/esp32s3/CMakeLists.txt @@ -0,0 +1,18 @@ +target_include_directories(${COMPONENT_LIB} PUBLIC .) +target_include_directories(${COMPONENT_LIB} PUBLIC private_include) + +set(srcs + "rtc_clk.c" + "rtc_clk_init.c" + "rtc_init.c" + "rtc_pm.c" + "rtc_sleep.c" + "rtc_time.c") + +add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") +target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") + +if(NOT CMAKE_BUILD_EARLY_EXPANSION) + set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES + COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") +endif() diff --git a/components/soc/esp32s3/private_include/regi2c_bbpll.h b/components/esp_hw_support/port/esp32s3/private_include/regi2c_bbpll.h similarity index 100% rename from components/soc/esp32s3/private_include/regi2c_bbpll.h rename to components/esp_hw_support/port/esp32s3/private_include/regi2c_bbpll.h diff --git a/components/soc/esp32s3/private_include/regi2c_brownout.h b/components/esp_hw_support/port/esp32s3/private_include/regi2c_brownout.h similarity index 100% rename from components/soc/esp32s3/private_include/regi2c_brownout.h rename to components/esp_hw_support/port/esp32s3/private_include/regi2c_brownout.h diff --git a/components/soc/esp32s3/private_include/regi2c_dig_reg.h b/components/esp_hw_support/port/esp32s3/private_include/regi2c_dig_reg.h similarity index 100% rename from components/soc/esp32s3/private_include/regi2c_dig_reg.h rename to components/esp_hw_support/port/esp32s3/private_include/regi2c_dig_reg.h diff --git a/components/soc/esp32s3/private_include/regi2c_ulp.h b/components/esp_hw_support/port/esp32s3/private_include/regi2c_ulp.h similarity index 100% rename from components/soc/esp32s3/private_include/regi2c_ulp.h rename to components/esp_hw_support/port/esp32s3/private_include/regi2c_ulp.h diff --git a/components/soc/esp32s3/regi2c_ctrl.h b/components/esp_hw_support/port/esp32s3/regi2c_ctrl.h similarity index 100% rename from components/soc/esp32s3/regi2c_ctrl.h rename to components/esp_hw_support/port/esp32s3/regi2c_ctrl.h diff --git a/components/soc/esp32s3/rtc_clk.c b/components/esp_hw_support/port/esp32s3/rtc_clk.c similarity index 100% rename from components/soc/esp32s3/rtc_clk.c rename to components/esp_hw_support/port/esp32s3/rtc_clk.c diff --git a/components/soc/esp32s3/rtc_clk_common.h b/components/esp_hw_support/port/esp32s3/rtc_clk_common.h similarity index 100% rename from components/soc/esp32s3/rtc_clk_common.h rename to components/esp_hw_support/port/esp32s3/rtc_clk_common.h diff --git a/components/soc/esp32s3/rtc_clk_init.c b/components/esp_hw_support/port/esp32s3/rtc_clk_init.c similarity index 100% rename from components/soc/esp32s3/rtc_clk_init.c rename to components/esp_hw_support/port/esp32s3/rtc_clk_init.c diff --git a/components/soc/esp32s3/rtc_init.c b/components/esp_hw_support/port/esp32s3/rtc_init.c similarity index 100% rename from components/soc/esp32s3/rtc_init.c rename to components/esp_hw_support/port/esp32s3/rtc_init.c diff --git a/components/soc/esp32s3/rtc_pm.c b/components/esp_hw_support/port/esp32s3/rtc_pm.c similarity index 100% rename from components/soc/esp32s3/rtc_pm.c rename to components/esp_hw_support/port/esp32s3/rtc_pm.c diff --git a/components/soc/esp32s3/rtc_sleep.c b/components/esp_hw_support/port/esp32s3/rtc_sleep.c similarity index 100% rename from components/soc/esp32s3/rtc_sleep.c rename to components/esp_hw_support/port/esp32s3/rtc_sleep.c diff --git a/components/soc/esp32s3/rtc_time.c b/components/esp_hw_support/port/esp32s3/rtc_time.c similarity index 100% rename from components/soc/esp32s3/rtc_time.c rename to components/esp_hw_support/port/esp32s3/rtc_time.c diff --git a/components/esp_hw_support/test/CMakeLists.txt b/components/esp_hw_support/test/CMakeLists.txt new file mode 100644 index 0000000000..9e246cfaaa --- /dev/null +++ b/components/esp_hw_support/test/CMakeLists.txt @@ -0,0 +1,3 @@ +idf_component_register(SRC_DIRS "." + PRIV_INCLUDE_DIRS "${include_dirs}" + PRIV_REQUIRES cmock test_utils esp_hw_support) diff --git a/components/soc/test/component.mk b/components/esp_hw_support/test/component.mk similarity index 100% rename from components/soc/test/component.mk rename to components/esp_hw_support/test/component.mk diff --git a/components/soc/test/test_rtc_clk.c b/components/esp_hw_support/test/test_rtc_clk.c similarity index 100% rename from components/soc/test/test_rtc_clk.c rename to components/esp_hw_support/test/test_rtc_clk.c diff --git a/components/soc/CMakeLists.txt b/components/soc/CMakeLists.txt index 47b68ee56c..6fc84323bb 100644 --- a/components/soc/CMakeLists.txt +++ b/components/soc/CMakeLists.txt @@ -1,10 +1,8 @@ -idf_build_get_property(target IDF_TARGET) - idf_component_register(SRCS "lldesc.c" "soc_include_legacy_warn.c" "memory_layout_utils.c" INCLUDE_DIRS include - PRIV_REQUIRES hal # [refactor-todo] soc dependency on hal for rtc sources LDFRAGMENTS linker.lf) -add_subdirectory(${target}) \ No newline at end of file +idf_build_get_property(target IDF_TARGET) +add_subdirectory(${target}) diff --git a/components/soc/esp32/CMakeLists.txt b/components/soc/esp32/CMakeLists.txt index 71e3aeeb32..024eb92ce4 100644 --- a/components/soc/esp32/CMakeLists.txt +++ b/components/soc/esp32/CMakeLists.txt @@ -7,15 +7,8 @@ set(srcs "interrupts.c" "pcnt_periph.c" "ledc_periph.c" - "rtc_clk.c" - "rtc_clk_init.c" - "rtc_init.c" "rtc_io_periph.c" "rtc_periph.c" - "rtc_pm.c" - "rtc_sleep.c" - "rtc_time.c" - "rtc_wdt.c" "sdio_slave_periph.c" "sdmmc_periph.c" "soc_memory_layout.c" @@ -27,8 +20,3 @@ add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") target_include_directories(${COMPONENT_LIB} PUBLIC . include) - -if(NOT CMAKE_BUILD_EARLY_EXPANSION) - set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES - COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") -endif() diff --git a/components/soc/esp32s2/CMakeLists.txt b/components/soc/esp32s2/CMakeLists.txt index 698337c934..c44629d0e6 100644 --- a/components/soc/esp32s2/CMakeLists.txt +++ b/components/soc/esp32s2/CMakeLists.txt @@ -8,16 +8,8 @@ set(srcs "interrupts.c" "ledc_periph.c" "pcnt_periph.c" - "regi2c_ctrl.c" - "rtc_clk.c" - "rtc_clk_init.c" - "rtc_init.c" "rtc_io_periph.c" "rtc_periph.c" - "rtc_pm.c" - "rtc_sleep.c" - "rtc_time.c" - "rtc_wdt.c" "soc_memory_layout.c" "spi_periph.c" "touch_sensor_periph.c" @@ -28,8 +20,3 @@ add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") target_include_directories(${COMPONENT_LIB} PUBLIC . include) - -if(NOT CMAKE_BUILD_EARLY_EXPANSION) - set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES - COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") -endif() diff --git a/components/soc/esp32s2/i2c_apll.h b/components/soc/esp32s2/i2c_apll.h deleted file mode 100644 index 909326f64e..0000000000 --- a/components/soc/esp32s2/i2c_apll.h +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -/** - * @file i2c_apll.h - * @brief Register definitions for audio PLL (APLL) - * - * This file lists register fields of APLL, located on an internal configuration - * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by - * rtc_clk_apll_enable function in rtc_clk.c. - */ - -#define I2C_APLL 0X6D -#define I2C_APLL_HOSTID 1 - -#define I2C_APLL_IR_CAL_DELAY 0 -#define I2C_APLL_IR_CAL_DELAY_MSB 3 -#define I2C_APLL_IR_CAL_DELAY_LSB 0 - -#define I2C_APLL_IR_CAL_RSTB 0 -#define I2C_APLL_IR_CAL_RSTB_MSB 4 -#define I2C_APLL_IR_CAL_RSTB_LSB 4 - -#define I2C_APLL_IR_CAL_START 0 -#define I2C_APLL_IR_CAL_START_MSB 5 -#define I2C_APLL_IR_CAL_START_LSB 5 - -#define I2C_APLL_IR_CAL_UNSTOP 0 -#define I2C_APLL_IR_CAL_UNSTOP_MSB 6 -#define I2C_APLL_IR_CAL_UNSTOP_LSB 6 - -#define I2C_APLL_OC_ENB_FCAL 0 -#define I2C_APLL_OC_ENB_FCAL_MSB 7 -#define I2C_APLL_OC_ENB_FCAL_LSB 7 - -#define I2C_APLL_IR_CAL_EXT_CAP 1 -#define I2C_APLL_IR_CAL_EXT_CAP_MSB 4 -#define I2C_APLL_IR_CAL_EXT_CAP_LSB 0 - -#define I2C_APLL_IR_CAL_ENX_CAP 1 -#define I2C_APLL_IR_CAL_ENX_CAP_MSB 5 -#define I2C_APLL_IR_CAL_ENX_CAP_LSB 5 - -#define I2C_APLL_OC_LBW 1 -#define I2C_APLL_OC_LBW_MSB 6 -#define I2C_APLL_OC_LBW_LSB 6 - -#define I2C_APLL_IR_CAL_CK_DIV 2 -#define I2C_APLL_IR_CAL_CK_DIV_MSB 3 -#define I2C_APLL_IR_CAL_CK_DIV_LSB 0 - -#define I2C_APLL_OC_DCHGP 2 -#define I2C_APLL_OC_DCHGP_MSB 6 -#define I2C_APLL_OC_DCHGP_LSB 4 - -#define I2C_APLL_OC_ENB_VCON 2 -#define I2C_APLL_OC_ENB_VCON_MSB 7 -#define I2C_APLL_OC_ENB_VCON_LSB 7 - -#define I2C_APLL_OR_CAL_CAP 3 -#define I2C_APLL_OR_CAL_CAP_MSB 4 -#define I2C_APLL_OR_CAL_CAP_LSB 0 - -#define I2C_APLL_OR_CAL_UDF 3 -#define I2C_APLL_OR_CAL_UDF_MSB 5 -#define I2C_APLL_OR_CAL_UDF_LSB 5 - -#define I2C_APLL_OR_CAL_OVF 3 -#define I2C_APLL_OR_CAL_OVF_MSB 6 -#define I2C_APLL_OR_CAL_OVF_LSB 6 - -#define I2C_APLL_OR_CAL_END 3 -#define I2C_APLL_OR_CAL_END_MSB 7 -#define I2C_APLL_OR_CAL_END_LSB 7 - -#define I2C_APLL_OR_OUTPUT_DIV 4 -#define I2C_APLL_OR_OUTPUT_DIV_MSB 4 -#define I2C_APLL_OR_OUTPUT_DIV_LSB 0 - -#define I2C_APLL_OC_TSCHGP 4 -#define I2C_APLL_OC_TSCHGP_MSB 6 -#define I2C_APLL_OC_TSCHGP_LSB 6 - -#define I2C_APLL_EN_FAST_CAL 4 -#define I2C_APLL_EN_FAST_CAL_MSB 7 -#define I2C_APLL_EN_FAST_CAL_LSB 7 - -#define I2C_APLL_OC_DHREF_SEL 5 -#define I2C_APLL_OC_DHREF_SEL_MSB 1 -#define I2C_APLL_OC_DHREF_SEL_LSB 0 - -#define I2C_APLL_OC_DLREF_SEL 5 -#define I2C_APLL_OC_DLREF_SEL_MSB 3 -#define I2C_APLL_OC_DLREF_SEL_LSB 2 - -#define I2C_APLL_SDM_DITHER 5 -#define I2C_APLL_SDM_DITHER_MSB 4 -#define I2C_APLL_SDM_DITHER_LSB 4 - -#define I2C_APLL_SDM_STOP 5 -#define I2C_APLL_SDM_STOP_MSB 5 -#define I2C_APLL_SDM_STOP_LSB 5 - -#define I2C_APLL_SDM_RSTB 5 -#define I2C_APLL_SDM_RSTB_MSB 6 -#define I2C_APLL_SDM_RSTB_LSB 6 - -#define I2C_APLL_OC_DVDD 6 -#define I2C_APLL_OC_DVDD_MSB 4 -#define I2C_APLL_OC_DVDD_LSB 0 - -#define I2C_APLL_DSDM2 7 -#define I2C_APLL_DSDM2_MSB 5 -#define I2C_APLL_DSDM2_LSB 0 - -#define I2C_APLL_DSDM1 8 -#define I2C_APLL_DSDM1_MSB 7 -#define I2C_APLL_DSDM1_LSB 0 - -#define I2C_APLL_DSDM0 9 -#define I2C_APLL_DSDM0_MSB 7 -#define I2C_APLL_DSDM0_LSB 0 - diff --git a/components/soc/esp32s2/i2c_bbpll.h b/components/soc/esp32s2/i2c_bbpll.h deleted file mode 100644 index 1f56a5f40d..0000000000 --- a/components/soc/esp32s2/i2c_bbpll.h +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -/** - * @file i2c_apll.h - * @brief Register definitions for digital PLL (BBPLL) - * - * This file lists register fields of BBPLL, located on an internal configuration - * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by - * rtc_clk_cpu_freq_set function in rtc_clk.c. - */ - -#define I2C_BBPLL 0x66 -#define I2C_BBPLL_HOSTID 1 - -#define I2C_BBPLL_IR_CAL_DELAY 0 -#define I2C_BBPLL_IR_CAL_DELAY_MSB 3 -#define I2C_BBPLL_IR_CAL_DELAY_LSB 0 - -#define I2C_BBPLL_IR_CAL_CK_DIV 0 -#define I2C_BBPLL_IR_CAL_CK_DIV_MSB 7 -#define I2C_BBPLL_IR_CAL_CK_DIV_LSB 4 - -#define I2C_BBPLL_IR_CAL_EXT_CAP 1 -#define I2C_BBPLL_IR_CAL_EXT_CAP_MSB 3 -#define I2C_BBPLL_IR_CAL_EXT_CAP_LSB 0 - -#define I2C_BBPLL_IR_CAL_ENX_CAP 1 -#define I2C_BBPLL_IR_CAL_ENX_CAP_MSB 4 -#define I2C_BBPLL_IR_CAL_ENX_CAP_LSB 4 - -#define I2C_BBPLL_IR_CAL_RSTB 1 -#define I2C_BBPLL_IR_CAL_RSTB_MSB 5 -#define I2C_BBPLL_IR_CAL_RSTB_LSB 5 - -#define I2C_BBPLL_IR_CAL_START 1 -#define I2C_BBPLL_IR_CAL_START_MSB 6 -#define I2C_BBPLL_IR_CAL_START_LSB 6 - -#define I2C_BBPLL_IR_CAL_UNSTOP 1 -#define I2C_BBPLL_IR_CAL_UNSTOP_MSB 7 -#define I2C_BBPLL_IR_CAL_UNSTOP_LSB 7 - -#define I2C_BBPLL_OC_REF_DIV 2 -#define I2C_BBPLL_OC_REF_DIV_MSB 3 -#define I2C_BBPLL_OC_REF_DIV_LSB 0 - -#define I2C_BBPLL_OC_DCHGP 2 -#define I2C_BBPLL_OC_DCHGP_MSB 6 -#define I2C_BBPLL_OC_DCHGP_LSB 4 - -#define I2C_BBPLL_OC_ENB_FCAL 2 -#define I2C_BBPLL_OC_ENB_FCAL_MSB 7 -#define I2C_BBPLL_OC_ENB_FCAL_LSB 7 - -#define I2C_BBPLL_OC_DIV_7_0 3 -#define I2C_BBPLL_OC_DIV_7_0_MSB 7 -#define I2C_BBPLL_OC_DIV_7_0_LSB 0 - -#define I2C_BBPLL_RSTB_DIV_ADC 4 -#define I2C_BBPLL_RSTB_DIV_ADC_MSB 0 -#define I2C_BBPLL_RSTB_DIV_ADC_LSB 0 - -#define I2C_BBPLL_MODE_HF 4 -#define I2C_BBPLL_MODE_HF_MSB 1 -#define I2C_BBPLL_MODE_HF_LSB 1 - -#define I2C_BBPLL_DIV_ADC 4 -#define I2C_BBPLL_DIV_ADC_MSB 3 -#define I2C_BBPLL_DIV_ADC_LSB 2 - -#define I2C_BBPLL_DIV_DAC 4 -#define I2C_BBPLL_DIV_DAC_MSB 4 -#define I2C_BBPLL_DIV_DAC_LSB 4 - -#define I2C_BBPLL_DIV_CPU 4 -#define I2C_BBPLL_DIV_CPU_MSB 5 -#define I2C_BBPLL_DIV_CPU_LSB 5 - -#define I2C_BBPLL_OC_ENB_VCON 4 -#define I2C_BBPLL_OC_ENB_VCON_MSB 6 -#define I2C_BBPLL_OC_ENB_VCON_LSB 6 - -#define I2C_BBPLL_OC_TSCHGP 4 -#define I2C_BBPLL_OC_TSCHGP_MSB 7 -#define I2C_BBPLL_OC_TSCHGP_LSB 7 - -#define I2C_BBPLL_OC_DR1 5 -#define I2C_BBPLL_OC_DR1_MSB 2 -#define I2C_BBPLL_OC_DR1_LSB 0 - -#define I2C_BBPLL_OC_DR3 5 -#define I2C_BBPLL_OC_DR3_MSB 6 -#define I2C_BBPLL_OC_DR3_LSB 4 - -#define I2C_BBPLL_EN_USB 5 -#define I2C_BBPLL_EN_USB_MSB 7 -#define I2C_BBPLL_EN_USB_LSB 7 - -#define I2C_BBPLL_OC_DCUR 6 -#define I2C_BBPLL_OC_DCUR_MSB 2 -#define I2C_BBPLL_OC_DCUR_LSB 0 - -#define I2C_BBPLL_INC_CUR 6 -#define I2C_BBPLL_INC_CUR_MSB 3 -#define I2C_BBPLL_INC_CUR_LSB 3 - -#define I2C_BBPLL_OC_DHREF_SEL 6 -#define I2C_BBPLL_OC_DHREF_SEL_MSB 5 -#define I2C_BBPLL_OC_DHREF_SEL_LSB 4 - -#define I2C_BBPLL_OC_DLREF_SEL 6 -#define I2C_BBPLL_OC_DLREF_SEL_MSB 7 -#define I2C_BBPLL_OC_DLREF_SEL_LSB 6 - -#define I2C_BBPLL_OR_CAL_CAP 8 -#define I2C_BBPLL_OR_CAL_CAP_MSB 3 -#define I2C_BBPLL_OR_CAL_CAP_LSB 0 - -#define I2C_BBPLL_OR_CAL_UDF 8 -#define I2C_BBPLL_OR_CAL_UDF_MSB 4 -#define I2C_BBPLL_OR_CAL_UDF_LSB 4 - -#define I2C_BBPLL_OR_CAL_OVF 8 -#define I2C_BBPLL_OR_CAL_OVF_MSB 5 -#define I2C_BBPLL_OR_CAL_OVF_LSB 5 - -#define I2C_BBPLL_OR_CAL_END 8 -#define I2C_BBPLL_OR_CAL_END_MSB 6 -#define I2C_BBPLL_OR_CAL_END_LSB 6 - -#define I2C_BBPLL_OR_LOCK 8 -#define I2C_BBPLL_OR_LOCK_MSB 7 -#define I2C_BBPLL_OR_LOCK_LSB 7 - -#define I2C_BBPLL_BBADC_DELAY1 9 -#define I2C_BBPLL_BBADC_DELAY1_MSB 1 -#define I2C_BBPLL_BBADC_DELAY1_LSB 0 - -#define I2C_BBPLL_BBADC_DELAY2 9 -#define I2C_BBPLL_BBADC_DELAY2_MSB 3 -#define I2C_BBPLL_BBADC_DELAY2_LSB 2 - -#define I2C_BBPLL_BBADC_DVDD 9 -#define I2C_BBPLL_BBADC_DVDD_MSB 5 -#define I2C_BBPLL_BBADC_DVDD_LSB 4 - -#define I2C_BBPLL_BBADC_DREF 9 -#define I2C_BBPLL_BBADC_DREF_MSB 7 -#define I2C_BBPLL_BBADC_DREF_LSB 6 - -#define I2C_BBPLL_BBADC_DCUR 10 -#define I2C_BBPLL_BBADC_DCUR_MSB 1 -#define I2C_BBPLL_BBADC_DCUR_LSB 0 - -#define I2C_BBPLL_BBADC_INPUT_SHORT 10 -#define I2C_BBPLL_BBADC_INPUT_SHORT_MSB 2 -#define I2C_BBPLL_BBADC_INPUT_SHORT_LSB 2 - -#define I2C_BBPLL_ENT_PLL 10 -#define I2C_BBPLL_ENT_PLL_MSB 3 -#define I2C_BBPLL_ENT_PLL_LSB 3 - -#define I2C_BBPLL_DTEST 10 -#define I2C_BBPLL_DTEST_MSB 5 -#define I2C_BBPLL_DTEST_LSB 4 - -#define I2C_BBPLL_ENT_ADC 10 -#define I2C_BBPLL_ENT_ADC_MSB 7 -#define I2C_BBPLL_ENT_ADC_LSB 6 - diff --git a/components/soc/esp32s2/i2c_ulp.h b/components/soc/esp32s2/i2c_ulp.h deleted file mode 100644 index e7f4afa08f..0000000000 --- a/components/soc/esp32s2/i2c_ulp.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -/** - * @file i2c_ulp.h - * @brief Register definitions for analog to calibrate o_code for getting a more precise voltage. - * - * This file lists register fields of ULP, located on an internal configuration - * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by - * rtc_init function in rtc_init.c. - */ - -#define I2C_ULP 0x61 -#define I2C_ULP_HOSTID 1 - -#define I2C_ULP_IR_RESETB 0 -#define I2C_ULP_IR_RESETB_MSB 0 -#define I2C_ULP_IR_RESETB_LSB 0 - -#define I2C_ULP_O_DONE_FLAG 3 -#define I2C_ULP_O_DONE_FLAG_MSB 0 -#define I2C_ULP_O_DONE_FLAG_LSB 0 - -#define I2C_ULP_BG_O_DONE_FLAG 3 -#define I2C_ULP_BG_O_DONE_FLAG_MSB 3 -#define I2C_ULP_BG_O_DONE_FLAG_LSB 3 \ No newline at end of file diff --git a/components/soc/esp32s2/include/soc/i2c_saradc.h b/components/soc/esp32s2/include/soc/i2c_saradc.h deleted file mode 100644 index 5aa6451743..0000000000 --- a/components/soc/esp32s2/include/soc/i2c_saradc.h +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2019-2020 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -/** - * @file i2c_sar.h - * @brief Register definitions for analog to calibrate initial code for getting a more precise voltage of SAR ADC. - * - * This file lists register fields of SAR, located on an internal configuration - * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by - * function in adc_ll.h. - */ - -#define I2C_SAR_ADC 0X69 -#define I2C_SAR_ADC_HOSTID 0 - -#define ADC_ANA_CONFIG2_REG 0x6000E048 - -#define ADC_SAR1_ENCAL_GND_ADDR 0x7 -#define ADC_SAR1_ENCAL_GND_ADDR_MSB 5 -#define ADC_SAR1_ENCAL_GND_ADDR_LSB 5 - -#define ADC_SAR2_ENCAL_GND_ADDR 0x7 -#define ADC_SAR2_ENCAL_GND_ADDR_MSB 7 -#define ADC_SAR2_ENCAL_GND_ADDR_LSB 7 - -#define ADC_SAR1_INITIAL_CODE_HIGH_ADDR 0x1 -#define ADC_SAR1_INITIAL_CODE_HIGH_ADDR_MSB 0x3 -#define ADC_SAR1_INITIAL_CODE_HIGH_ADDR_LSB 0x0 - -#define ADC_SAR1_INITIAL_CODE_LOW_ADDR 0x0 -#define ADC_SAR1_INITIAL_CODE_LOW_ADDR_MSB 0x7 -#define ADC_SAR1_INITIAL_CODE_LOW_ADDR_LSB 0x0 - -#define ADC_SAR2_INITIAL_CODE_HIGH_ADDR 0x4 -#define ADC_SAR2_INITIAL_CODE_HIGH_ADDR_MSB 0x3 -#define ADC_SAR2_INITIAL_CODE_HIGH_ADDR_LSB 0x0 - -#define ADC_SAR2_INITIAL_CODE_LOW_ADDR 0x3 -#define ADC_SAR2_INITIAL_CODE_LOW_ADDR_MSB 0x7 -#define ADC_SAR2_INITIAL_CODE_LOW_ADDR_LSB 0x0 - -#define ADC_SAR1_DREF_ADDR 0x2 -#define ADC_SAR1_DREF_ADDR_MSB 0x6 -#define ADC_SAR1_DREF_ADDR_LSB 0x4 - -#define ADC_SAR2_DREF_ADDR 0x5 -#define ADC_SAR2_DREF_ADDR_MSB 0x6 -#define ADC_SAR2_DREF_ADDR_LSB 0x4 - -#define ADC_SAR1_SAMPLE_CYCLE_ADDR 0x2 -#define ADC_SAR1_SAMPLE_CYCLE_ADDR_MSB 0x2 -#define ADC_SAR1_SAMPLE_CYCLE_ADDR_LSB 0x0 - -#define ADC_SARADC_DTEST_RTC_ADDR 0x7 -#define ADC_SARADC_DTEST_RTC_ADDR_MSB 1 -#define ADC_SARADC_DTEST_RTC_ADDR_LSB 0 - -#define ADC_SARADC_ENT_TSENS_ADDR 0x7 -#define ADC_SARADC_ENT_TSENS_ADDR_MSB 2 -#define ADC_SARADC_ENT_TSENS_ADDR_LSB 2 - -#define ADC_SARADC_ENT_RTC_ADDR 0x7 -#define ADC_SARADC_ENT_RTC_ADDR_MSB 3 -#define ADC_SARADC_ENT_RTC_ADDR_LSB 3 diff --git a/components/soc/esp32s3/CMakeLists.txt b/components/soc/esp32s3/CMakeLists.txt index 5854ba56f4..86e7dc8597 100644 --- a/components/soc/esp32s3/CMakeLists.txt +++ b/components/soc/esp32s3/CMakeLists.txt @@ -8,14 +8,8 @@ set(srcs "interrupts.c" "ledc_periph.c" "pcnt_periph.c" - "rtc_clk.c" - "rtc_clk_init.c" - "rtc_init.c" "rtc_io_periph.c" "rtc_periph.c" - "rtc_pm.c" - "rtc_sleep.c" - "rtc_time.c" "sdio_slave_periph.c" "sdmmc_periph.c" "soc_memory_layout.c" @@ -27,8 +21,3 @@ add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}") target_sources(${COMPONENT_LIB} PRIVATE "${srcs}") target_include_directories(${COMPONENT_LIB} PUBLIC . include) - -if(NOT CMAKE_BUILD_EARLY_EXPANSION) - set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/rtc_clk.c" PROPERTIES - COMPILE_FLAGS "-fno-jump-tables -fno-tree-switch-conversion") -endif() diff --git a/components/soc/esp32s3/i2c_bbpll.h b/components/soc/esp32s3/i2c_bbpll.h deleted file mode 100644 index 73a0a84ccf..0000000000 --- a/components/soc/esp32s3/i2c_bbpll.h +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -/** - * @file i2c_bbpll.h - * @brief Register definitions for digital PLL (BBPLL) - * - * This file lists register fields of BBPLL, located on an internal configuration - * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by - * rtc_clk_cpu_freq_set function in rtc_clk.c. - */ - -#define I2C_BBPLL 0x66 -#define I2C_BBPLL_HOSTID 1 - -#define I2C_BBPLL_IR_CAL_DELAY 0 -#define I2C_BBPLL_IR_CAL_DELAY_MSB 3 -#define I2C_BBPLL_IR_CAL_DELAY_LSB 0 - -#define I2C_BBPLL_IR_CAL_CK_DIV 0 -#define I2C_BBPLL_IR_CAL_CK_DIV_MSB 7 -#define I2C_BBPLL_IR_CAL_CK_DIV_LSB 4 - -#define I2C_BBPLL_IR_CAL_EXT_CAP 1 -#define I2C_BBPLL_IR_CAL_EXT_CAP_MSB 3 -#define I2C_BBPLL_IR_CAL_EXT_CAP_LSB 0 - -#define I2C_BBPLL_IR_CAL_ENX_CAP 1 -#define I2C_BBPLL_IR_CAL_ENX_CAP_MSB 4 -#define I2C_BBPLL_IR_CAL_ENX_CAP_LSB 4 - -#define I2C_BBPLL_IR_CAL_RSTB 1 -#define I2C_BBPLL_IR_CAL_RSTB_MSB 5 -#define I2C_BBPLL_IR_CAL_RSTB_LSB 5 - -#define I2C_BBPLL_IR_CAL_START 1 -#define I2C_BBPLL_IR_CAL_START_MSB 6 -#define I2C_BBPLL_IR_CAL_START_LSB 6 - -#define I2C_BBPLL_IR_CAL_UNSTOP 1 -#define I2C_BBPLL_IR_CAL_UNSTOP_MSB 7 -#define I2C_BBPLL_IR_CAL_UNSTOP_LSB 7 - -#define I2C_BBPLL_OC_REF_DIV 2 -#define I2C_BBPLL_OC_REF_DIV_MSB 3 -#define I2C_BBPLL_OC_REF_DIV_LSB 0 - -#define I2C_BBPLL_OC_DCHGP 2 -#define I2C_BBPLL_OC_DCHGP_MSB 6 -#define I2C_BBPLL_OC_DCHGP_LSB 4 - -#define I2C_BBPLL_OC_ENB_FCAL 2 -#define I2C_BBPLL_OC_ENB_FCAL_MSB 7 -#define I2C_BBPLL_OC_ENB_FCAL_LSB 7 - -#define I2C_BBPLL_OC_DIV_7_0 3 -#define I2C_BBPLL_OC_DIV_7_0_MSB 7 -#define I2C_BBPLL_OC_DIV_7_0_LSB 0 - -#define I2C_BBPLL_RSTB_DIV_ADC 4 -#define I2C_BBPLL_RSTB_DIV_ADC_MSB 0 -#define I2C_BBPLL_RSTB_DIV_ADC_LSB 0 - -#define I2C_BBPLL_MODE_HF 4 -#define I2C_BBPLL_MODE_HF_MSB 1 -#define I2C_BBPLL_MODE_HF_LSB 1 - -#define I2C_BBPLL_DIV_ADC 4 -#define I2C_BBPLL_DIV_ADC_MSB 3 -#define I2C_BBPLL_DIV_ADC_LSB 2 - -#define I2C_BBPLL_DIV_DAC 4 -#define I2C_BBPLL_DIV_DAC_MSB 4 -#define I2C_BBPLL_DIV_DAC_LSB 4 - -#define I2C_BBPLL_DIV_CPU 4 -#define I2C_BBPLL_DIV_CPU_MSB 5 -#define I2C_BBPLL_DIV_CPU_LSB 5 - -#define I2C_BBPLL_OC_ENB_VCON 4 -#define I2C_BBPLL_OC_ENB_VCON_MSB 6 -#define I2C_BBPLL_OC_ENB_VCON_LSB 6 - -#define I2C_BBPLL_OC_TSCHGP 4 -#define I2C_BBPLL_OC_TSCHGP_MSB 7 -#define I2C_BBPLL_OC_TSCHGP_LSB 7 - -#define I2C_BBPLL_OC_DR1 5 -#define I2C_BBPLL_OC_DR1_MSB 2 -#define I2C_BBPLL_OC_DR1_LSB 0 - -#define I2C_BBPLL_OC_DR3 5 -#define I2C_BBPLL_OC_DR3_MSB 6 -#define I2C_BBPLL_OC_DR3_LSB 4 - -#define I2C_BBPLL_EN_USB 5 -#define I2C_BBPLL_EN_USB_MSB 7 -#define I2C_BBPLL_EN_USB_LSB 7 - -#define I2C_BBPLL_OC_DCUR 6 -#define I2C_BBPLL_OC_DCUR_MSB 2 -#define I2C_BBPLL_OC_DCUR_LSB 0 - -#define I2C_BBPLL_INC_CUR 6 -#define I2C_BBPLL_INC_CUR_MSB 3 -#define I2C_BBPLL_INC_CUR_LSB 3 - -#define I2C_BBPLL_OC_DHREF_SEL 6 -#define I2C_BBPLL_OC_DHREF_SEL_MSB 5 -#define I2C_BBPLL_OC_DHREF_SEL_LSB 4 - -#define I2C_BBPLL_OC_DLREF_SEL 6 -#define I2C_BBPLL_OC_DLREF_SEL_MSB 7 -#define I2C_BBPLL_OC_DLREF_SEL_LSB 6 - -#define I2C_BBPLL_OR_CAL_CAP 8 -#define I2C_BBPLL_OR_CAL_CAP_MSB 3 -#define I2C_BBPLL_OR_CAL_CAP_LSB 0 - -#define I2C_BBPLL_OR_CAL_UDF 8 -#define I2C_BBPLL_OR_CAL_UDF_MSB 4 -#define I2C_BBPLL_OR_CAL_UDF_LSB 4 - -#define I2C_BBPLL_OR_CAL_OVF 8 -#define I2C_BBPLL_OR_CAL_OVF_MSB 5 -#define I2C_BBPLL_OR_CAL_OVF_LSB 5 - -#define I2C_BBPLL_OR_CAL_END 8 -#define I2C_BBPLL_OR_CAL_END_MSB 6 -#define I2C_BBPLL_OR_CAL_END_LSB 6 - -#define I2C_BBPLL_OR_LOCK 8 -#define I2C_BBPLL_OR_LOCK_MSB 7 -#define I2C_BBPLL_OR_LOCK_LSB 7 - -#define I2C_BBPLL_OC_VCO_DBIAS 9 -#define I2C_BBPLL_OC_VCO_DBIAS_MSB 1 -#define I2C_BBPLL_OC_VCO_DBIAS_LSB 0 - -#define I2C_BBPLL_BBADC_DELAY2 9 -#define I2C_BBPLL_BBADC_DELAY2_MSB 3 -#define I2C_BBPLL_BBADC_DELAY2_LSB 2 - -#define I2C_BBPLL_BBADC_DVDD 9 -#define I2C_BBPLL_BBADC_DVDD_MSB 5 -#define I2C_BBPLL_BBADC_DVDD_LSB 4 - -#define I2C_BBPLL_BBADC_DREF 9 -#define I2C_BBPLL_BBADC_DREF_MSB 7 -#define I2C_BBPLL_BBADC_DREF_LSB 6 - -#define I2C_BBPLL_BBADC_DCUR 10 -#define I2C_BBPLL_BBADC_DCUR_MSB 1 -#define I2C_BBPLL_BBADC_DCUR_LSB 0 - -#define I2C_BBPLL_BBADC_INPUT_SHORT 10 -#define I2C_BBPLL_BBADC_INPUT_SHORT_MSB 2 -#define I2C_BBPLL_BBADC_INPUT_SHORT_LSB 2 - -#define I2C_BBPLL_ENT_PLL 10 -#define I2C_BBPLL_ENT_PLL_MSB 3 -#define I2C_BBPLL_ENT_PLL_LSB 3 - -#define I2C_BBPLL_DTEST 10 -#define I2C_BBPLL_DTEST_MSB 5 -#define I2C_BBPLL_DTEST_LSB 4 - -#define I2C_BBPLL_ENT_ADC 10 -#define I2C_BBPLL_ENT_ADC_MSB 7 -#define I2C_BBPLL_ENT_ADC_LSB 6 - diff --git a/components/soc/esp32s3/i2c_ulp.h b/components/soc/esp32s3/i2c_ulp.h deleted file mode 100644 index bf60672c9c..0000000000 --- a/components/soc/esp32s3/i2c_ulp.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -/** - * @file i2c_ulp.h - * @brief Register definitions for analog to calibrate o_code for getting a more precise voltage. - * - * This file lists register fields of ULP, located on an internal configuration - * bus. These definitions are used via macros defined in i2c_rtc_clk.h, by - * rtc_init function in rtc_init.c. - */ - -#define I2C_ULP 0x61 -#define I2C_ULP_HOSTID 1 - -#define I2C_ULP_IR_RESETB 0 -#define I2C_ULP_IR_RESETB_MSB 0 -#define I2C_ULP_IR_RESETB_LSB 0 - -#define I2C_ULP_O_DONE_FLAG 3 -#define I2C_ULP_O_DONE_FLAG_MSB 0 -#define I2C_ULP_O_DONE_FLAG_LSB 0 - -#define I2C_ULP_BG_O_DONE_FLAG 3 -#define I2C_ULP_BG_O_DONE_FLAG_MSB 3 -#define I2C_ULP_BG_O_DONE_FLAG_LSB 3 diff --git a/components/soc/linker.lf b/components/soc/linker.lf index 19e55bbd89..592bc196c4 100644 --- a/components/soc/linker.lf +++ b/components/soc/linker.lf @@ -1,12 +1,4 @@ [mapping:soc] archive: libsoc.a entries: - cpu_util (noflash_text) - rtc_clk (noflash) - rtc_init:rtc_vddsdio_set_config (noflash) - rtc_periph (noflash_text) - rtc_pm (noflash_text) - rtc_sleep (noflash_text) - rtc_time (noflash_text) - rtc_wdt (noflash_text) lldesc (noflash) diff --git a/components/soc/test/CMakeLists.txt b/components/soc/test/CMakeLists.txt deleted file mode 100644 index 52491e925a..0000000000 --- a/components/soc/test/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -idf_build_get_property(soc_name IDF_TARGET) - -idf_component_register(SRC_DIRS "." - PRIV_INCLUDE_DIRS "${include_dirs}" - PRIV_REQUIRES cmock test_utils) diff --git a/tools/ci/check_public_headers_exceptions.txt b/tools/ci/check_public_headers_exceptions.txt index a4ad7820bb..bb7e4d8443 100644 --- a/tools/ci/check_public_headers_exceptions.txt +++ b/tools/ci/check_public_headers_exceptions.txt @@ -108,7 +108,7 @@ components/esp_common/include/esp_compiler.h components/lwip/lwip/src/include/lwip/prot/nd6.h components/lwip/port/esp32/include/netif/dhcp_state.h components/soc/src/esp32/rtc_clk_common.h -components/soc/src/esp32/i2c_rtc_clk.h +components/esp_hw_support/port/esp32/regi2c_ctrl.h components/esp_rom/include/esp32/rom/sha.h components/esp_rom/include/esp32/rom/secure_boot.h components/esp_rom/include/esp32s2/rom/spi_flash.h From bea280c94816c8c029476785cb3fa1c9accd73ab Mon Sep 17 00:00:00 2001 From: Renz Bagaporo Date: Wed, 28 Oct 2020 12:15:20 +0800 Subject: [PATCH 4/4] ci: increase s2 test jobs --- tools/ci/config/target-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci/config/target-test.yml b/tools/ci/config/target-test.yml index 9c5dca4b82..af69341b34 100644 --- a/tools/ci/config/target-test.yml +++ b/tools/ci/config/target-test.yml @@ -596,7 +596,7 @@ UT_034: UT_035: extends: .unit_test_s2_template - parallel: 43 + parallel: 44 tags: - ESP32S2_IDF - UT_T1_1