55source [find target/esp_common.cfg]
66
77# Target specific global variables
8- set _CHIPNAME " riscv "
8+ set _CHIPNAME " esp32h2 "
99set _CPUTAPID 0x00010c25
1010set _ESP_ARCH " riscv"
1111set _ONLYCPU 1
@@ -14,7 +14,7 @@ set _ESP_SMP_BREAK 0
1414set _ESP_EFUSE_MAC_ADDR_REG 0x600B0844
1515
1616# Target specific functions should be implemented for each riscv chips.
17- proc riscv_wdt_disable { } {
17+ proc esp32h2_wdt_disable { } {
1818 # Halt event can occur during config phase (before "init" is done).
1919 # Ignore it since mww commands don't work at that time.
2020 if { [string compare [command mode] config] == 0 } {
@@ -34,7 +34,7 @@ proc riscv_wdt_disable { } {
3434 # mww 0x600b1c1c 0x84B00000
3535}
3636
37- proc riscv_soc_reset { } {
37+ proc esp32h2_soc_reset { } {
3838 global _RISCV_DMCONTROL _RISCV_SB_CS _RISCV_SB_ADDR0 _RISCV_SB_DATA0
3939
4040 riscv dmi_write $_RISCV_DMCONTROL 0x80000001
@@ -59,7 +59,7 @@ proc riscv_soc_reset { } {
5959 # Here debugger reads dmstatus as 0x3a2
6060
6161 # Disable the watchdogs again
62- riscv_wdt_disable
62+ esp32h2_wdt_disable
6363
6464 # Here debugger reads anyhalted and allhalted bits as set (0x3a2)
6565 # We will clean allhalted state by resuming the core.
@@ -69,7 +69,7 @@ proc riscv_soc_reset { } {
6969 riscv dmi_write $_RISCV_DMCONTROL 0x80000003
7070}
7171
72- proc riscv_memprot_is_enabled { } {
72+ proc esp32h2_memprot_is_enabled { } {
7373 global _RISCV_ABS_CMD _RISCV_ABS_DATA0
7474 # If IRAM/DRAM split is enabled, PMPADDR 5-6 will cover valid IRAM region and PMPADDR 7 will cover valid DRAM region
7575 # Only TOR mode is used for IRAM and DRAM protections.
0 commit comments