1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * ESP32-S2 target for OpenOCD *
5 * Copyright (C) 2019 Espressif Systems Ltd. *
6 ***************************************************************************/
8 #ifndef OPENOCD_TARGET_ESP32S2_H
9 #define OPENOCD_TARGET_ESP32S2_H
11 #include <target/xtensa/xtensa_regs.h>
13 #define ESP32_S2_DROM_LOW 0x3f000000
14 #define ESP32_S2_DROM_HIGH 0x3ff80000
15 #define ESP32_S2_IROM_LOW 0x40080000
16 #define ESP32_S2_IROM_HIGH 0x40800000
18 /* Number of registers returned directly by the G command
19 * Corresponds to the amount of regs listed in regformats/reg-xtensa.dat in the gdb source */
20 #define ESP32_S2_NUM_REGS_G_COMMAND 72
23 /* chip specific registers that extend ISA go after ISA-defined ones */
24 ESP32_S2_REG_IDX_GPIOOUT = XT_USR_REG_START,
28 #endif /* OPENOCD_TARGET_ESP32S2_H */