contrib: Add udev rules for TI xds100v2 debugger
[openocd/dsp568013.git] / tcl / board / tx27_stk5.cfg
blob962788cbdefecb71a03af80b2128955b30f9a88c
1 # KaRo TX27 CPU Module on a StarterkitV base board
3 # http://www.karo-electronics.com/tx27.html
5 source [find target/imx27.cfg]
7 $_TARGETNAME configure -event gdb-attach { reset init }
8 $_TARGETNAME configure -event reset-init { tx27_init }
10 proc tx27_init { } {
11         # This setup puts RAM at 0xA0000000
12         # init_aipi (AIPI1.PSR0, AIPI2.PSR0, AIPI1.PSR1 and AIPI2.PSR1)
13         mww 0x10000000 0x20040304
14         mww 0x10020000 0x00000000
15         mww 0x10000004 0xDFFBFCFB
16         mww 0x10020004 0xFFFFFFFF
18         sleep 100
20         #init_max ( PORT0.MPR, #PORT0.AMPR, #PORT1.MPR, #PORT1.AMPR, #PORT2.MPR, #PORT2.AMPR)
21         mww 0x1003F000 0x00302145
22         mww 0x1003F004 0x00302145
23         mww 0x1003F100 0x00302145
24         mww 0x1003F104 0x00302145
25         mww 0x1003F200 0x00302145
26         mww 0x1003F204 0x00302145
28         #init_drive_strength (#DSCR3, #DSCR5, #DSCR6, #DSCR7, #DSCR8 )
29         mww 0x10027828 0x55555555
30         mww 0x10027830 0x55555555
31         mww 0x10027834 0x55555555
32         mww 0x10027838 0x00005005
33         mww 0x1002783C 0x15555555
35         #init_sdram_speed
36         #mww 0xD8001010 0x00000004
37         mww 0xD8001010 0x00000024
39         mww 0xD8001004 0x00395729
41         mww 0xD8001000 0x92120000
42         mww 0xA0000400 0x0
44         mww 0xD8001000 0xA2120000
45         mww 0xA0000000 0x0
46         mww 0xA0000000 0x0
48         mww 0xD8001000 0xB2120000
49         mdb 0xA0000000
50         mdb 0xA0000033
52         mww 0xD8001000 0x82126485
54         # =============================================
55         # Sync mode (AHB Clk = 133MHz ; BCLK = 44.3MHz)
56         # =============================================
57         mww 0xD8002000 0x23524E80
58         mww 0xD8002004 0x10000D03
59         mww 0xD8002008 0x00720900
61         nand probe 0
64 nand device tx27.nand imx27 $_TARGETNAME hwecc