tcl/interface: add linuxgpiod cfg for Aspeed AST2600
[fw/openocd] / src / target / avr32_jtag.h
index 00f8330e423d38603b4888622804e3160e2595ba..382b245ba84af36ea4503e06d7cbc30e1a02155a 100644 (file)
@@ -1,23 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
 /***************************************************************************
  *   Copyright (C) 2010 by Oleksandr Tymoshenko <gonzo@bluezbox.com>       *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
  ***************************************************************************/
-#ifndef AVR32_JTAG
-#define AVR32_JTAG
+
+#ifndef OPENOCD_TARGET_AVR32_JTAG_H
+#define OPENOCD_TARGET_AVR32_JTAG_H
 
 #define        AVR32NUMCOREREGS        17
 
@@ -81,8 +69,7 @@
 #define        MTSR(sysreg, reg)               (0xe3b00002 | ((reg) << 16) | sysreg)
 #define        MFSR(reg, sysreg)               (0xe1b00002 | ((reg) << 16) | sysreg)
 
-struct avr32_jtag
-{
+struct avr32_jtag {
        struct jtag_tap *tap;
        uint32_t dpc; /* Debug PC value */
 };
@@ -97,11 +84,9 @@ int avr32_jtag_mwa_read(struct avr32_jtag *jtag_info, int slave,
 int avr32_jtag_mwa_write(struct avr32_jtag *jtag_info, int slave,
                uint32_t addr, uint32_t value);
 
-
 int avr32_ocd_setbits(struct avr32_jtag *jtag, int reg, uint32_t bits);
 int avr32_ocd_clearbits(struct avr32_jtag *jtag, int reg, uint32_t bits);
 
 int avr32_jtag_exec(struct avr32_jtag *jtag_info, uint32_t inst);
 
-#endif /* AVR32_JTAG */
-
+#endif /* OPENOCD_TARGET_AVR32_JTAG_H */