From: Antonio Borneo Date: Fri, 21 Jan 2011 04:53:19 +0000 (+0800) Subject: TCL/SPEAr: move device specific code X-Git-Tag: v0.6.0-rc1~408 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=c44293b0f88f7df100f94759bfc95ffa3915b3d3 TCL/SPEAr: move device specific code The initialization of memory port 1 is required by SPEAr310 only Change-Id: I9d655da1026795f02ff2f82aed36441068cf266d Signed-off-by: Antonio Borneo Reviewed-on: http://openocd.zylin.com/225 Tested-by: jenkins Reviewed-by: Spencer Oliver --- diff --git a/tcl/chip/st/spear/spear310.tcl b/tcl/chip/st/spear/spear310.tcl index 95df51d45d..3aaa10d498 100644 --- a/tcl/chip/st/spear/spear310.tcl +++ b/tcl/chip/st/spear/spear310.tcl @@ -10,6 +10,8 @@ proc sp310_init {} { mww 0xfca80040 0x00000000 ;# remove all RAS resets mww 0xb4000008 0x00002ff4 ;# RAS function enable + mww 0xfca80050 0x00000001 ;# Enable clk mem port 1 + mww 0xfca8013c 0x2f7bc210 ;# plgpio_pad_drv mww 0xfca80140 0x017bdef6 } diff --git a/tcl/chip/st/spear/spear3xx.tcl b/tcl/chip/st/spear/spear3xx.tcl index 660dab3bae..4c6f436128 100644 --- a/tcl/chip/st/spear/spear3xx.tcl +++ b/tcl/chip/st/spear/spear3xx.tcl @@ -60,8 +60,6 @@ proc sp3xx_common_init {} { mww 0xfca800e4 0x78000008 ;# COMP1V8_REG mww 0xfca800ec 0x78000008 ;# COMP3V3_REG - mww 0xfca80050 0x00000001 ;# Enable clk mem port 1 - mww 0xfc000000 0x10000f5f ;# init SMI and set HW mode mww 0xfc000000 0x00000f5f