cfg: update Luminary config files
[fw/openocd] / tcl / board / imx35pdk.cfg
index 05d83ee593bad11cced8a14da8221663857c6086..73fa6331d0012e654ce91e0f185b091093018169 100644 (file)
@@ -1,38 +1,15 @@
 # The IMX35PDK eval board has a single IMX35 chip
 source [find target/imx35.cfg]
+source [find target/imx.cfg]
 $_TARGETNAME configure -event reset-init { imx35pdk_init }
 
-memwrite burst disable
-#arm11 no_increment enable
-
-
-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] 
-
-       arm11 mcr $TARGETNAME 15 [expr ($regs>>12)&0x7] [expr ($regs>>0)&0xf] [expr ($regs>>4)&0xf] [expr ($regs>>8)&0x7] $value 
-}
+# Stick to *really* low clock rate or reset will fail
+# without RTCK / RCLK
+jtag_rclk 10
 
 proc imx35pdk_init { } {
        
-       # 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
+       imx3x_reset
        
        mww 0x43f00040 0x00000000
        mww 0x43f00044 0x00000000