jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / tcl / board / imx31pdk.cfg
index 4dfa4db60145d2f8e3a9284bbc3e21e8f96cb0be..65fa520e45ba9e7c1b5c4b6af4ed22ac06b72b39 100644 (file)
@@ -1,8 +1,27 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
 # The IMX31PDK eval board has a single IMX31 chip
 source [find target/imx31.cfg]
 source [find target/imx.cfg]
 $_TARGETNAME configure -event reset-init { imx31pdk_init }
 
+proc self_test {} {
+       echo "Running 100 iterations of test."
+       dump_image /ram/test 0x80000000 0x40000
+       for {set i 0} {$i < 100} {set i [expr {$i+1}]} {
+               echo "Iteration $i"
+               reset init
+               mww 0x80000000 0x12345678 0x10000
+               load_image /ram/test 0x80000000 bin
+               verify_image /ram/test 0x80000000 bin
+       }
+}
+
+
+# Slow fallback frequency
+# measure_clk indicates ca. 3-4MHz.
+jtag_rclk 1000
+
 proc imx31pdk_init { } {
 
        imx3x_reset
@@ -11,36 +30,36 @@ proc imx31pdk_init { } {
 
        mww 0x53FC0000 0x040
        mww 0x53F80000 0x074B0B7D
-       
+
        # 399MHz - 26MHz input, PD=1,MFI=7, MFN=27, MFD=40
        #mww 0x53F80004 0xFF871D50
        #mww 0x53F80010 0x00271C1B
-       
+
        # Start 16 bit NorFlash Initialization on CS0
        mww 0xb8002000 0x0000CC03
        mww 0xb8002004 0xa0330D01
        mww 0xb8002008 0x00220800
-       
+
        # Configure CPLD on CS4
        mww 0xb8002040 0x0000DCF6
        mww 0xb8002044 0x444A4541
        mww 0xb8002048 0x44443302
-       
+
        # SDCLK
        mww 0x43FAC26C 0
-       
+
        # CAS
        mww 0x43FAC270 0
-       
+
        # RAS
        mww 0x43FAC274 0
-       
+
        # CS2 (CSD0)
        mww 0x43FAC27C 0x1000
-       
+
        # DQM3
        mww 0x43FAC284 0
-       
+
        # DQM2, DQM1, DQM0, SD31-SD0, A25-A0, MA10 (0x288..0x2DC)
        mww 0x43FAC288 0
        mww 0x43FAC28C 0
@@ -64,7 +83,7 @@ proc imx31pdk_init { } {
        mww 0x43FAC2D4 0
        mww 0x43FAC2D8 0
        mww 0x43FAC2DC 0
-       
+
        # Initialization script for 32 bit DDR on MX31 ADS
        mww 0xB8001010 0x00000004
        mww 0xB8001004 0x006ac73a

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)