jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / tcl / board / dm6446evm.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # DM6446 EVM board
4 # http://focus.ti.com/docs/toolsw/folders/print/tmdsevm6446.html
5 # http://c6000.spectrumdigital.com/davincievm/
6 # EVM is just the board; buy that at Spectrum.
7 # The "kit" from TI also has: video camera, LCD video monitor, more.
8
9 source [find target/ti_dm6446.cfg]
10
11 # J4 controls what CS2 hooks up to, usually NOR or NAND flash.
12 # S3.1/S3.2 controls boot mode, which may force J4 and S3.3 settings.
13 # S3.3 controls AEMIF bus width.
14
15 if { [info exists J4_OPTION] } {
16 # NOR, NAND, SRAM, ...
17 set CS2_MODE $J4_OPTION
18 } else {
19 set CS2_MODE ""
20 }
21
22 # ARM boot:
23 # S3.1 = 0, S3.2 = 0 ==> ROM/UBL boot via NAND (J4 == NAND)
24 # S3.1 = 1, S3.2 = 0 ==> AEMIF boot (J4 == NOR or SRAM)
25 # S3.1 = 0, S3.2 = 1 ==> ROM/UBL boot via HPI
26 # S3.1 = 1, S3.2 = 1 ==> ROM/UBL boot via UART (J4 == don't care)
27 # AEMIF bus width:
28 # S3.3 = 0 ==> 8 bit bus width
29 # S3.3 = 1 ==> 16 bit bus width
30 # DSP boot:
31 # S3.4 = 0 ==> controlled by ARM
32
33 if { $CS2_MODE == "NOR" } {
34 # 16 Mbytes address space; 16 bit bus width
35 # (older boards used 32MB parts, with upper 16 MB unusable)
36 set _FLASHNAME $_CHIPNAME.flash
37 flash bank $_FLASHNAME cfi 0x02000000 0x01000000 2 2 $_TARGETNAME
38 proc flashprobe {} { flash probe 0 }
39 } elseif { $CS2_MODE == "NAND" } {
40 # 64 Mbyte small page; 8 bit bus width
41 nand device davinci $_TARGETNAME 0x02000000 hwecc1 0x01e00000
42 proc flashprobe {} { nand probe 0 }
43 } elseif { $CS2_MODE == "SRAM" } {
44 # 4 Mbyte address space; 16 bit bus width
45 # loaded via JTAG or HPI
46 proc flashprobe {} {}
47 } else {
48 # maybe it's HPI boot? can't tell...
49 echo "WARNING: CS2/flash configuration not recognized"
50 proc flashprobe {} {}
51 }
52
53 # NOTE: disable or replace this call to dm6446evm_init if you're
54 # debugging new UBL code from SRAM (for NAND boot).
55 $_TARGETNAME configure -event reset-init { dm6446evm_init }
56
57 #
58 # This post-reset init is called when the MMU isn't active, all IRQs
59 # are disabled, etc. It should do most of what a UBL does, except for
60 # loading code (like U-Boot) into DRAM and running it.
61 #
62 proc dm6446evm_init {} {
63
64 echo "Initialize DM6446 EVM board"
65
66 # FIXME initialize everything:
67 # - PLL1
68 # - PLL2
69 # - PINMUX
70 # - PSC
71 # - DDR
72 # - AEMIF
73 # - UART0
74 # - icache
75
76 flashprobe
77 }

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)