tcl/board: add SPDX tag
[fw/openocd] / tcl / board / osk5912.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # http://omap.spectrumdigital.com/osk5912/
4
5 source [find target/omap5912.cfg]
6
7 # NOTE: this assumes you're using the ARM 20-pin ("Multi-ICE")
8 # JTAG connector, and accordingly have J1 connecting pins 1 & 2.
9 # The TI-14 pin needs "trst_only", and J1 connecting 2 & 3.
10 reset_config trst_and_srst separate
11
12 # NOTE:  boards with XOMAP parts wire nSRST to nPWRON_RESET.
13 # That resets everything -- including JTAG and EmbeddedICE.
14 # So they must use "reset_config srst_pulls_trst".
15
16 # NOTE:  an expansion board could add a trace connector ... if
17 # it does, change this appropriately.  And reset_config too,
18 # assuming JTAG_DIS reroutes JTAG to that connector.
19 etm config $_TARGETNAME 8 demultiplexed full dummy
20 etm_dummy config $_TARGETNAME
21
22 # standard boards populate two 16 MB chips, but manufacturing
23 # options or an expansion board could change this config.
24 flash bank osk.u1 cfi 0x00000000 0x01000000 2 2 $_TARGETNAME
25 flash bank osk.u2 cfi 0x01000000 0x01000000 2 2 $_TARGETNAME
26
27 proc osk5912_init {} {
28         omap5912_reset
29
30         # detect flash
31         flash probe 0
32         flash probe 1
33 }
34 $_TARGETNAME configure -event reset-init { osk5912_init }
35
36 arm7_9 dcc_downloads enable