0628d4d18d994d6181bacfc7ac21dea0637f4093
[openocd.git] / tcl / chip / atmel / at91 / sam9_smc.cfg
1 # Setup register
2 #
3 # ncs_read_setup
4 # nrd_setup
5 # ncs_write_setup
6 # set nwe_setup
7 #
8 #
9 # Pulse register
10 #
11 # ncs_read_pulse
12 # nrd_pulse
13 # ncs_write_pulse
14 # nwe_pulse
15 #
16 #
17 # Cycle register
18 #
19 # read_cycle 0
20 # write_cycle 0
21 #
22 #
23 # Mode register
24 #
25 # mode
26 # tdf_cycles
27 proc sam9_smc_config { cs smc_config } {
28 ;# Setup Register for CS n
29 set AT91_SMC_SETUP [expr {$::AT91_SMC + 0x00 + $cs * 0x10}]
30 set val [expr {$smc_config(nwe_setup) << 0}]
31 set val [expr {$val | $smc_config(ncs_write_setup) << 8}]
32 set val [expr {$val | $smc_config(nrd_setup)) << 16}]
33 set val [expr {$val | $smc_config(ncs_read_setup) << 24}]
34 mww $AT91_SMC_SETUP $val
35
36 ;# Pulse Register for CS n
37 set AT91_SMC_PULSE [expr {$::AT91_SMC + 0x04 + $cs * 0x10}]
38 set val [expr {$smc_config(nwe_pulse) << 0}]
39 set val [expr {$val | $smc_config(ncs_write_pulse) << 8}]
40 set val [expr {$val | $smc_config(nrd_pulse) << 16}]
41 set val [expr {$val | $smc_config(ncs_read_pulse) << 24}]
42 mww $AT91_SMC_PULSE $val
43
44 ;# Cycle Register for CS n
45 set AT91_SMC_CYCLE [expr {$::AT91_SMC + 0x08 + $cs * 0x10}]
46 set val [expr {$smc_config(write_cycle) << 0}]
47 set val [expr {$val | $smc_config(read_cycle) << 16}]
48 mww $AT91_SMC_CYCLE $val
49
50 ;# Mode Register for CS n
51 set AT91_SMC_MODE [expr {$::AT91_SMC + 0x0c + $cs * 0x10}]
52 set val [expr {$smc_config(mode) << 0}]
53 set val [expr {$val | $smc_config(tdf_cycles) << 16}]
54 mww $AT91_SMC_MODE $val
55 }

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)