#
# $Id: sa1100,v 1.1 2003/05/29 09:18:52 telka Exp $
#
# JTAG declarations for SA-1100
# Copyright (C) 2003 ETC s.r.o.
#
# 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 Marcel Telka <marcel@telka.sk>, 2003.
#


signal NANDIO(0)
signal NANDIO(1)
signal NANDIO(2)
signal NANDIO(3)
signal NANDIO(4)
signal NANDIO(5)
signal NANDIO(6)
signal NANDIO(7)
signal NANDIO(8)
signal NANDIO(9)
signal NANDIO(10)
signal NANDIO(11)
signal NANDIO(12)
signal NANDIO(13)
signal NANDIO(14)
signal NANDIO(15)
signal NANDnCE
signal NANDCLE
signal NANDALE
signal NANDnRE
signal NANDnWE
signal NANDfnWP
signal NANDRnB
signal LEDGREEN
signal LEDAMBER
signal LEDBLUE
signal LEDFOO
signal LEDFOO2

register	BSR	619	# Boundary Scan Register
register	UNK1	410	#
register	UNK2	245	#
register	UNK3	36	#
register	UNK4	213	#
register	UNK5	4	#
register	UNK6	210	#
register	BR	1	# Bypass Register
register	UNK7	242	#
register	UNK8	7	#
register	UNK9	432	#
register	UNK10	223	#
register	UNK11	241	#
register	DIR	32	# Device Identification Register
register	UNK12	210	#

instruction length 6

instruction SAMPLE/PRELOAD	000000	BSR
instruction UNK1		000001	UNK1
instruction EXTEST		000010	BSR
instruction UNK1a		000011	UNK1
instruction UNK2		000100	UNK2
instruction UNK3		000101	UNK3
instruction UNK4		000110	UNK4
instruction UNK5		000111	UNK5
instruction UNK6		001000	UNK6
instruction CLAMP		001001	BR	# Could be HIGHZ
instruction UNK7		001110	UNK7
instruction HIGHZ		010001	BR	# Could be CLAMP
instruction ALTBYPASS		010101	BR	# Unknown, could be HIGHZ or CLAMP
instruction IDCODE		111101	DIR	# The only one we know for sure...
instruction BYPASS		111111	BR

bit 68 C ? LEDENABLE
bit 35 O ? LEDGREEN 69 0 Z
bit 37 O ? LEDAMBER 69 0 Z
bit 32 O ? LEDBLUE 69 0 Z
