From 240bd7b59efabe7f1127500257a7f41a3c44f0d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Wed, 15 Jul 2009 17:54:03 +0000 Subject: [PATCH] [ 2815741 ] Add bcm4702 definitions (Jochen Friedrich) git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1664 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/ChangeLog | 4 +++ urjtag/data/Makefile.am | 2 ++ urjtag/data/broadcom/PARTS | 1 + urjtag/data/broadcom/bcm4702/STEPPINGS | 23 +++++++++++++ urjtag/data/broadcom/bcm4702/bcm4702 | 47 ++++++++++++++++++++++++++ 5 files changed, 77 insertions(+) create mode 100644 urjtag/data/broadcom/bcm4702/STEPPINGS create mode 100644 urjtag/data/broadcom/bcm4702/bcm4702 diff --git a/urjtag/ChangeLog b/urjtag/ChangeLog index 4c7fc6d2..8247dea5 100644 --- a/urjtag/ChangeLog +++ b/urjtag/ChangeLog @@ -1,5 +1,9 @@ 2009-07-15 Arnim Laeuger + * data/broadcom/bcm4702/STEPPINGS, data/broadcom/bcm4702/bcm4702, + data/broadcom/PARTS, data/Makefile.am: + [ 2815741 ] Add bcm4702 definitions (Jochen Friedrich) + * src/bus/readmem.c: [ 2815739 ] Fix fwrite call (Jochen Friedrich) * src/bus/ejtag_dma.c: [ 2815726 ] Fix HALFWORD and BYTE DMA read access diff --git a/urjtag/data/Makefile.am b/urjtag/data/Makefile.am index d3b88a4c..f03aabca 100644 --- a/urjtag/data/Makefile.am +++ b/urjtag/data/Makefile.am @@ -85,6 +85,8 @@ nobase_dist_pkgdata_DATA = \ broadcom/bcm1250/bcm1250 \ broadcom/bcm3310/STEPPINGS \ broadcom/bcm3310/bcm3310 \ + broadcom/bcm4702/STEPPINGS \ + broadcom/bcm4702/bcm4702 \ broadcom/bcm4712/STEPPINGS \ broadcom/bcm4712/bcm4712 \ broadcom/bcm5421s/STEPPINGS \ diff --git a/urjtag/data/broadcom/PARTS b/urjtag/data/broadcom/PARTS index 4b235d82..b22a2cec 100644 --- a/urjtag/data/broadcom/PARTS +++ b/urjtag/data/broadcom/PARTS @@ -25,6 +25,7 @@ 0001001001010000 bcm1250 BCM1250 0011001100010000 bcm3310 BCM3310 0101010000100001 bcm5421s BCM5421S +0100011100010000 bcm4702 BCM4702 0100011100010010 bcm4712 BCM4712 0110001101011000 bcm6358 BCM6358 0110001101001000 bcm6348 BCM6348 diff --git a/urjtag/data/broadcom/bcm4702/STEPPINGS b/urjtag/data/broadcom/bcm4702/STEPPINGS new file mode 100644 index 00000000..49069c7d --- /dev/null +++ b/urjtag/data/broadcom/bcm4702/STEPPINGS @@ -0,0 +1,23 @@ +# +# $Id$ +# +# Copyright (C) 2009 Jochen Friedrich +# +# 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. +# + +# bits 31-28 of the Device Identification Register +0000 bcm4702 Rev 1 diff --git a/urjtag/data/broadcom/bcm4702/bcm4702 b/urjtag/data/broadcom/bcm4702/bcm4702 new file mode 100644 index 00000000..e40cc7a2 --- /dev/null +++ b/urjtag/data/broadcom/bcm4702/bcm4702 @@ -0,0 +1,47 @@ +# +# $Id$ +# +# JTAG declarations for Broadcom BCM4702 +# Copyright (C) 2009 Jochen Friedrich +# Shamelessly copied from bcm6358 +# +# 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. +# + +register BSR 1 +register BR 1 +register DIR 32 +register EJIMPCODE 32 +register EJADDRESS 32 +register EJDATA 32 +register EJCONTROL 32 +register EJALL 96 + +instruction length 5 + +instruction EXTEST 00000 BSR +instruction IDCODE 00001 DIR +instruction SAMPLE/PRELOAD 00010 BSR +instruction EJTAG_IMPCODE 00011 EJIMPCODE +instruction EJTAG_ADDRESS 01000 EJADDRESS +instruction EJTAG_DATA 01001 EJDATA +instruction EJTAG_CONTROL 01010 EJCONTROL +instruction EJTAG_ALL 01011 EJALL +instruction EJTAGBOOT 01100 BR +instruction NORMALBOOT 01101 BR +instruction BYPASS 11111 BR + +initbus ejtag_dma