summaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-07-13 14:17:00 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-07-13 14:17:00 +0100
commit1619facb5ebce060c2cb35035e7801a8898a6296 (patch)
tree91934a457a3bfd480e56409a1e82aeee46a28df6 /tcl/target
parentf129ef67dcd96bdd98bf27c13ffbf23b7ca5ee66 (diff)
downloadopenocd_libswd-1619facb5ebce060c2cb35035e7801a8898a6296.tar.gz
openocd_libswd-1619facb5ebce060c2cb35035e7801a8898a6296.tar.bz2
openocd_libswd-1619facb5ebce060c2cb35035e7801a8898a6296.tar.xz
openocd_libswd-1619facb5ebce060c2cb35035e7801a8898a6296.zip
cfg: add Avalue RSC-W910 config
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/nuc910.cfg27
1 files changed, 27 insertions, 0 deletions
diff --git a/tcl/target/nuc910.cfg b/tcl/target/nuc910.cfg
new file mode 100644
index 00000000..7fe91fe9
--- /dev/null
+++ b/tcl/target/nuc910.cfg
@@ -0,0 +1,27 @@
+#
+# Nuvoton nuc910 (previously W90P910) based soc
+#
+
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $CHIPNAME
+} else {
+ set _CHIPNAME nuc910
+}
+
+if { [info exists ENDIAN] } {
+ set _ENDIAN $ENDIAN
+} else {
+ set _ENDIAN little
+}
+
+if { [info exists CPUTAPID ] } {
+ set _CPUTAPID $CPUTAPID
+} else {
+ # set useful default
+ set _CPUTAPID 0x07926f0f
+}
+
+set _TARGETNAME $_CHIPNAME.cpu
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
+
+target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME