summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-01 23:06:17 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-01 23:06:17 +0000
commit7da3c2cda246f010462ac25776651bc5b6163b51 (patch)
tree979d517d173559e27b7c414049ee26bbe96cad7c /tcl
parenta88871bc6ad13561d9e60fbd9152b8f0c05329b1 (diff)
downloadopenocd+libswd-7da3c2cda246f010462ac25776651bc5b6163b51.tar.gz
openocd+libswd-7da3c2cda246f010462ac25776651bc5b6163b51.tar.bz2
openocd+libswd-7da3c2cda246f010462ac25776651bc5b6163b51.tar.xz
openocd+libswd-7da3c2cda246f010462ac25776651bc5b6163b51.zip
David Brownell <david-b@pacbell.net>:
This is the missing half of the r1974 patch: OSK5912 board support, which was split out from the omap5912 target config. git-svn-id: svn://svn.berlios.de/openocd/trunk@1985 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/osk5912.cfg28
1 files changed, 28 insertions, 0 deletions
diff --git a/tcl/board/osk5912.cfg b/tcl/board/osk5912.cfg
new file mode 100644
index 00000000..e189d076
--- /dev/null
+++ b/tcl/board/osk5912.cfg
@@ -0,0 +1,28 @@
+# http://omap.spectrumdigital.com/osk5912/
+
+source [find target/omap5912.cfg]
+
+# NOTE: this assumes you're using the ARM 20-pin ("Multi-ICE")
+# JTAG connector, and accordingly have J1 connecting pins 1 & 2.
+# The TI-14 pin needs "trst_only", and J1 connecting 2 & 3.
+reset_config trst_and_srst separate
+
+# NOTE: an expansion board could add a trace connector ... if
+# it does, change this appropriately. And reset_config too,
+# assuming JTAG_DIS reroutes JTAG to that connector.
+etm config $_TARGETNAME 8 demultiplexed full dummy
+etm_dummy config $_TARGETNAME
+
+# standard boards populate two 16 MB chips, but manufacturing
+# options or an expansion board could change this config.
+flash bank cfi 0x00000000 0x01000000 2 2 $_TARGETNAME
+flash bank cfi 0x01000000 0x01000000 2 2 $_TARGETNAME
+
+proc osk5912_init {} {
+ omap5912_reset
+
+ # detect flash
+ flash probe 0
+ flash probe 1
+}
+$_TARGETNAME configure -event reset-init { osk5912_init }