From 4e79b48e2c7e535ef21178a69788c15b571c72ff Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Thu, 8 Aug 2013 23:45:47 +0200 Subject: Add new target type: OpenRISC Add support for OpenRISC target. This implementation supports the adv_debug_sys debug unit core. The mohor dbg_if is not supported. Support for mohor TAP core and Altera Virtual JTAG core are also provided. Change-Id: I3b1cfab1bbb28e497c4fca6ed1bd3a4362609b72 Signed-off-by: Franck Jullien Reviewed-on: http://openocd.zylin.com/1547 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- src/target/openrisc/or1k_tap.h | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/target/openrisc/or1k_tap.h (limited to 'src/target/openrisc/or1k_tap.h') diff --git a/src/target/openrisc/or1k_tap.h b/src/target/openrisc/or1k_tap.h new file mode 100644 index 00000000..64bdef23 --- /dev/null +++ b/src/target/openrisc/or1k_tap.h @@ -0,0 +1,43 @@ +/*************************************************************************** + * Copyright (C) 2012 by Franck Jullien * + * elec4fun@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, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#ifndef _OR1K_TAP_H_ +#define _OR1K_TAP_H_ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +#include "or1k.h" + +int or1k_tap_vjtag_register(void); +int or1k_tap_mohor_register(void); + +/* Linear list over all available or1k taps */ +extern struct list_head tap_list; + +struct or1k_tap_ip { + struct list_head list; + int (*init)(struct or1k_jtag *jtag_info); + const char *name; +}; + +#endif -- cgit v1.2.3-18-g5258