tcl/interface: add linuxgpiod cfg for Aspeed AST2600
[fw/openocd] / src / target / espressif / esp32s2.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   ESP32-S2 target for OpenOCD                                           *
5  *   Copyright (C) 2019 Espressif Systems Ltd.                             *
6  ***************************************************************************/
7
8 #ifndef OPENOCD_TARGET_ESP32S2_H
9 #define OPENOCD_TARGET_ESP32S2_H
10
11 #include <target/xtensa/xtensa_regs.h>
12
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
17
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
21
22 enum esp32s2_reg_id {
23         /* chip specific registers that extend ISA go after ISA-defined ones */
24         ESP32_S2_REG_IDX_GPIOOUT = XT_USR_REG_START,
25         ESP32_S2_NUM_REGS,
26 };
27
28 #endif  /* OPENOCD_TARGET_ESP32S2_H */