TCL/SPEAr: Join two initialization files.
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 21 Jan 2011 06:57:14 +0000 (14:57 +0800)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 21 Nov 2011 22:07:19 +0000 (22:07 +0000)
The support for SPEAr3xx family members does not require
dedicated files for each member.
Join the initialization scripts in a single file.

Change-Id: I45e9dc64809a6f52c4592e3e0eef5529394887c6
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/227
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/board/spear310evb20.cfg
tcl/chip/st/spear/spear310.tcl [deleted file]
tcl/chip/st/spear/spear3xx.tcl

index 7bf831fef193a1cf33011cdda9a1250f7aab2baf..c45873ca9923ef724988a5cfe8a1ac3091d39052 100644 (file)
@@ -14,7 +14,6 @@
 
 source [find mem_helper.tcl]
 source [find target/spear3xx.cfg]
-source [find chip/st/spear/spear310.tcl]
 source [find chip/st/spear/spear3xx_ddr.tcl]
 source [find chip/st/spear/spear3xx.tcl]
 
diff --git a/tcl/chip/st/spear/spear310.tcl b/tcl/chip/st/spear/spear310.tcl
deleted file mode 100644 (file)
index 8956bdb..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# Specific init scripts for ST SPEAr310 system on chip
-# http://www.st.com/spear
-#
-# Date:      2010-09-23
-# Author:    Antonio Borneo <borneo.antonio@gmail.com>
-
-
-proc sp310_init {} {
-       mww 0xb4000008 0x00002ff4       ;# RAS function enable
-
-       mww 0xfca80050 0x00000001       ;# Enable clk mem port 1
-
-       mww 0xfca8013c 0x2f7bc210       ;# plgpio_pad_drv
-       mww 0xfca80140 0x017bdef6
-}
-
-proc sp310_emi_init {} {
-       # set EMI pad strength
-       mmw 0xfca80134 0x0e000000 0x00000000
-       mmw 0xfca80138 0x0e739ce7 0x00000000
-       mmw 0xfca8013c 0x00039ce7 0x00000000
-
-       # set safe EMI timing as in BootROM
-       #mww 0x4f000000 0x0000000f      ;# tAP_0_reg
-       #mww 0x4f000004 0x00000000      ;# tSDP_0_reg
-       #mww 0x4f000008 0x000000ff      ;# tDPw_0_reg
-       #mww 0x4f00000c 0x00000111      ;# tDPr_0_reg
-       #mww 0x4f000010 0x00000002      ;# tDCS_0_reg
-
-       # set fast EMI timing as in Linux
-       mww 0x4f000000 0x00000010       ;# tAP_0_reg
-       mww 0x4f000004 0x00000005       ;# tSDP_0_reg
-       mww 0x4f000008 0x0000000a       ;# tDPw_0_reg
-       mww 0x4f00000c 0x0000000a       ;# tDPr_0_reg
-       mww 0x4f000010 0x00000005       ;# tDCS_0_re
-
-       # 32bit wide, 8/16/32bit access
-       mww 0x4f000014 0x0000000e       ;# control_0_reg
-       mww 0x4f000094 0x0000003f       ;# ack_reg
-}
index f807c25a5892934113bc8296af9049540878bd0c..17ab228e091eb1506c05ffd9c0e330b7a7d33065 100644 (file)
@@ -78,3 +78,39 @@ proc sp3xx_common_init {} {
        mww 0xfca80098 0x80000007
        mww 0xfca8009c 0x80000007
 }
+
+
+# Specific init scripts for ST SPEAr310 system on chip
+proc sp310_init {} {
+       mww 0xb4000008 0x00002ff4       ;# RAS function enable
+
+       mww 0xfca80050 0x00000001       ;# Enable clk mem port 1
+
+       mww 0xfca8013c 0x2f7bc210       ;# plgpio_pad_drv
+       mww 0xfca80140 0x017bdef6
+}
+
+proc sp310_emi_init {} {
+       # set EMI pad strength
+       mmw 0xfca80134 0x0e000000 0x00000000
+       mmw 0xfca80138 0x0e739ce7 0x00000000
+       mmw 0xfca8013c 0x00039ce7 0x00000000
+
+       # set safe EMI timing as in BootROM
+       #mww 0x4f000000 0x0000000f      ;# tAP_0_reg
+       #mww 0x4f000004 0x00000000      ;# tSDP_0_reg
+       #mww 0x4f000008 0x000000ff      ;# tDPw_0_reg
+       #mww 0x4f00000c 0x00000111      ;# tDPr_0_reg
+       #mww 0x4f000010 0x00000002      ;# tDCS_0_reg
+
+       # set fast EMI timing as in Linux
+       mww 0x4f000000 0x00000010       ;# tAP_0_reg
+       mww 0x4f000004 0x00000005       ;# tSDP_0_reg
+       mww 0x4f000008 0x0000000a       ;# tDPw_0_reg
+       mww 0x4f00000c 0x0000000a       ;# tDPr_0_reg
+       mww 0x4f000010 0x00000005       ;# tDCS_0_re
+
+       # 32bit wide, 8/16/32bit access
+       mww 0x4f000014 0x0000000e       ;# control_0_reg
+       mww 0x4f000094 0x0000003f       ;# ack_reg
+}

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)