#
# $Id$
#
# JTAG declarations for Broadcom BCM4712
# Copyright (C) 2004 Alan Wallace <aww@adelphia.net>
#
# 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.
#
# Written by Alan Wallace <aww@adelphia.net>, 2004.
#

# mandatory data registers
register	BSR	594
register	BR	1

# EJTAG registers
register        EJIMPCODE       32
register        EJADDRESS       32
register        EJDATA          32
register        EJCONTROL       32
register        EJALL           96
register        EJFASTDATA      33

# optional data registers
register	DIR	32

instruction length 8
# mandatory instructions
instruction EXTEST		00000000	BSR
instruction SAMPLE/PRELOAD	00000010	BSR
instruction BYPASS		11111111	BR

# EJTAG instructions
instruction     EJTAG_IMPCODE   00000011   EJIMPCODE
instruction     EJTAG_ADDRESS   00001000   EJADDRESS
instruction     EJTAG_DATA      00001001   EJDATA
instruction     EJTAG_CONTROL   00001010   EJCONTROL
instruction     EJTAG_ALL       00001011   EJALL
instruction     EJTAGBOOT       00001100   BR
instruction     NORMALBOOT      00001101   BR
instruction     EJTAG_FASTDATA  00001110   EJFASTDATA

# optional instructions
instruction IDCODE		00000001	DIR
