This is an automated email from Gerrit.

Antonio Borneo (borneo.anto...@gmail.com) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/227

-- gerrit

commit cf752e346d67c34abc93f4508ff70e8f93028623
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Fri Jan 21 14:57:14 2011 +0800

    TCL/SPEAr: Join two initialization files.
    
    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.anto...@gmail.com>

diff --git a/tcl/board/spear310evb20.cfg b/tcl/board/spear310evb20.cfg
index 7bf831f..c45873c 100644
--- a/tcl/board/spear310evb20.cfg
+++ b/tcl/board/spear310evb20.cfg
@@ -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
index 8956bdb..0000000
--- a/tcl/chip/st/spear/spear310.tcl
+++ /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.anto...@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
-}
diff --git a/tcl/chip/st/spear/spear3xx.tcl b/tcl/chip/st/spear/spear3xx.tcl
index f807c25..17ab228 100644
--- a/tcl/chip/st/spear/spear3xx.tcl
+++ b/tcl/chip/st/spear/spear3xx.tcl
@@ -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
+}

-- 

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to