TCL/SPEAr: move device generic code
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 21 Jan 2011 06:49:47 +0000 (14:49 +0800)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 21 Nov 2011 22:05:39 +0000 (22:05 +0000)
The initialization of RAS enable and clock is required by
all SPEAr3xx devices

Change-Id: Iea4cd0902e4da219475d7f35b4c25fc87ec6b902
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/226
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
tcl/chip/st/spear/spear310.tcl
tcl/chip/st/spear/spear3xx.tcl

index 3aaa10d4982edbef4390a76261b939b6c529a194..8956bdba5ab2e61308eb619c5f06327549f638d3 100644 (file)
@@ -6,8 +6,6 @@
 
 
 proc sp310_init {} {
-       mww 0xfca80034 0x0000ffff       ;# enable all RAS clocks
-       mww 0xfca80040 0x00000000       ;# remove all RAS resets
        mww 0xb4000008 0x00002ff4       ;# RAS function enable
 
        mww 0xfca80050 0x00000001       ;# Enable clk mem port 1
index 4c6f43612867f0ec9033e36e5c5d2a36e124d7c2..f807c25a5892934113bc8296af9049540878bd0c 100644 (file)
@@ -57,6 +57,9 @@ proc sp3xx_common_init {} {
        mww 0xfca8002c 0xfffffff8       ;# enable clock of all peripherals
        mww 0xfca80038 0x00000000       ;# remove reset of all peripherals
 
+       mww 0xfca80034 0x0000ffff       ;# enable all RAS clocks
+       mww 0xfca80040 0x00000000       ;# remove all RAS resets
+
        mww 0xfca800e4 0x78000008       ;# COMP1V8_REG
        mww 0xfca800ec 0x78000008       ;# COMP3V3_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)