1 # The IMX31PDK eval board has a single IMX31 chip
2 source [find target/imx31.cfg]
3 source [find target/imx.cfg]
4 $_TARGETNAME configure -event reset-init { imx31pdk_init }
7 echo "Running 100 iterations of test."
8 dump_image /ram/test 0x80000000 0x40000
9 for {set i 0} {$i < 100} {set i [expr $i+1]} {
12 mww 0x80000000 0x12345678 0x10000
13 load_image /ram/test 0x80000000 bin
14 verify_image /ram/test 0x80000000 bin
19 # Slow fallback frequency
20 # measure_clk indicates ca. 3-4MHz.
23 proc imx31pdk_init { } {
27 # This setup puts RAM at 0x80000000
30 mww 0x53F80000 0x074B0B7D
32 # 399MHz - 26MHz input, PD=1,MFI=7, MFN=27, MFD=40
33 #mww 0x53F80004 0xFF871D50
34 #mww 0x53F80010 0x00271C1B
36 # Start 16 bit NorFlash Initialization on CS0
37 mww 0xb8002000 0x0000CC03
38 mww 0xb8002004 0xa0330D01
39 mww 0xb8002008 0x00220800
41 # Configure CPLD on CS4
42 mww 0xb8002040 0x0000DCF6
43 mww 0xb8002044 0x444A4541
44 mww 0xb8002048 0x44443302
61 # DQM2, DQM1, DQM0, SD31-SD0, A25-A0, MA10 (0x288..0x2DC)
85 # Initialization script for 32 bit DDR on MX31 ADS
86 mww 0xB8001010 0x00000004
87 mww 0xB8001004 0x006ac73a
88 mww 0xB8001000 0x92100000
89 mww 0x80000f00 0x12344321
90 mww 0xB8001000 0xa2100000
91 mww 0x80000000 0x12344321
92 mww 0x80000000 0x12344321
93 mww 0xB8001000 0xb2100000
96 mww 0xB8001000 0x82226080
97 mww 0x80000000 0xDEADBEEF
98 mww 0xB8001010 0x0000000c