debuggers: import openocd-0.7.0
Initial check-in of openocd-0.7.0 as it can be downloaded from http://sourceforge.net/projects/openocd/files/openocd/0.7.0/ Any modifications will follow. Change-Id: I6949beaefd589e046395ea0cb80f4e1ab1654d55
This commit is contained in:
30
debuggers/openocd/tcl/target/imx.cfg
Normal file
30
debuggers/openocd/tcl/target/imx.cfg
Normal file
@ -0,0 +1,30 @@
|
||||
# utility fn's for Freescale i.MX series
|
||||
|
||||
global TARGETNAME
|
||||
set TARGETNAME $_TARGETNAME
|
||||
|
||||
# rewrite commands of the form below to arm11 mcr...
|
||||
# Data.Set c15:0x042f %long 0x40000015
|
||||
proc setc15 {regs value} {
|
||||
global TARGETNAME
|
||||
|
||||
echo [format "set p15 0x%04x, 0x%08x" $regs $value]
|
||||
|
||||
arm mcr 15 [expr ($regs>>12)&0x7] [expr ($regs>>0)&0xf] [expr ($regs>>4)&0xf] [expr ($regs>>8)&0x7] $value
|
||||
}
|
||||
|
||||
|
||||
proc imx3x_reset {} {
|
||||
# this reset script comes from the Freescale PDK
|
||||
#
|
||||
# http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX35PDK
|
||||
|
||||
echo "Target Setup: initialize DRAM controller and peripherals"
|
||||
|
||||
# Data.Set c15:0x01 %long 0x00050078
|
||||
setc15 0x01 0x00050078
|
||||
|
||||
echo "configuring CP15 for enabling the peripheral bus"
|
||||
# Data.Set c15:0x042f %long 0x40000015
|
||||
setc15 0x042f 0x40000015
|
||||
}
|
||||
Reference in New Issue
Block a user