diff options
author | David Barksdale <david.barksdale@exodusintel.com> | 2020-09-13 11:10:37 -0500 |
---|---|---|
committer | David Barksdale <david.barksdale@exodusintel.com> | 2020-09-13 11:10:37 -0500 |
commit | c19c1f6ecd088ad095dfcd38811e45def655b11c (patch) | |
tree | bf1e3744dbfd8f224ef3149f22d64ae712f2d1ea /src/target/qorivva.h | |
parent | dca1c6ca1f78a6a89e4274e409ff822d655add6b (diff) |
Initial work on a qorivva target.qorivva
Diffstat (limited to 'src/target/qorivva.h')
-rw-r--r-- | src/target/qorivva.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/target/qorivva.h b/src/target/qorivva.h new file mode 100644 index 00000000..3a0a974d --- /dev/null +++ b/src/target/qorivva.h @@ -0,0 +1,68 @@ +/*************************************************************************** + * Copyright (C) 2008 by Spencer Oliver * + * spen@spen-soft.co.uk * + * * + * Copyright (C) 2008 by David T.L. Wong * + * * + * Copyright (C) 2011 by Drasko DRASKOVIC * + * drasko.draskovic@gmail.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, see <http://www.gnu.org/licenses/>. * + ***************************************************************************/ + +#ifndef OPENOCD_TARGET_QORIVVA_H +#define OPENOCD_TARGET_QORIVVA_H + +#include <jtag/jtag.h> +#include "target.h" +#include "target_type.h" + +#define QORIVVA_COMMON_MAGIC 0x55AA50AF + +/* tap instructions */ +#define QORIVVA_INST_IDCODE 0x01 +#define QORIVVA_INST_SAMPLE_PRELOAD 0x02 +#define QORIVVA_INST_SAMPLE 0x03 +#define QORIVVA_INST_EXTEST 0x04 +#define QORIVVA_INST_ENABLE_JTAG_PASSWORD 0x07 +#define QORIVVA_INST_HIGHZ 0x09 +#define QORIVVA_INST_CLAMP 0x0C +#define QORIVVA_INST_ENABLE_CONTROL1 0x0E +#define QORIVVA_INST_AUX_TAP_NPC_0 0x21 +#define QORIVVA_INST_AUX_TAP_NPC_1 0x22 +#define QORIVVA_INST_AUX_TAP_MBIST 0x24 +#define QORIVVA_INST_AUX_TAP_JDC 0x26 +#define QORIVVA_INST_AUX_TAP_HSM 0x27 +#define QORIVVA_INST_AUX_TAP_Z4A 0x28 +#define QORIVVA_INST_AUX_TAP_Z4B 0x29 +#define QORIVVA_INST_AUX_TAP_Z2 0x2A +#define QORIVVA_INST_AUX_TAP_NXMC 0x34 +#define QORIVVA_INST_AUX_TAP_PARALLEL 0x3C +#define QORIVVA_INST_BYPASS 0xFF + +struct qorivva_common { + uint32_t common_magic; + struct jtag_tap *tap; + uint32_t idcode; +}; + +static inline struct qorivva_common * +target_to_qorivva(struct target *target) +{ + return target->arch_info; +} + +//extern const struct command_registration qorivva_command_handlers[]; + +#endif /* OPENOCD_TARGET_QORIVVA_H */ |