TCL/SPEAr: move DDR activation in common code
authorAntonio Borneo <borneo.antonio@gmail.com>
Mon, 21 Nov 2011 03:46:59 +0000 (11:46 +0800)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 21 Nov 2011 22:07:50 +0000 (22:07 +0000)
DDR controller activation should not be in DDR chip
specific code, but in generic DDR controller part.

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

index 14b5dfe05f15b3a6ab229254ab4db09d64406bfb..9021cf7d13ee2756a3075b32c69b2cf8bfba113f 100644 (file)
@@ -18,6 +18,9 @@ proc sp3xx_ddr_init {ddr_type} {
                error "sp3xx_ddr_init: unrecognized DDR type "$ddr_type
        }
 
+       # MPMC START
+       mww 0xfc60001c 0x01000100
+
        # Check for single/double memory chip
        # DDR starts at address 0x00000000
        mww $ddr_size 0x87654321
@@ -115,6 +118,4 @@ proc ddr_spr3xx_mt47h64m16_3_333_cl5_async {} {
        mww 0xfc6001a8 0x00000000       ;# MEMCTL_LWPWR_REG
        mww 0xfc6001ac 0x00860000       ;# MEMCTL_GP_15
        mww 0xfc6001b0 0x00000002       ;# MEMCTL_TPDEX
-       # MPMC START
-       mww 0xfc60001c 0x01000100
 }

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)