init.tst
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Random test init script
// Configure DDR
t 0200 00000000 00000000 00000000 00000000
// Set up the video PLL - this is for NTSC: m=34, n=5, p=2, S=1, VNTPL=1
// NOTE: DAC is not powered up, video encoder is not reset properly
//
t 103 0x04300030 0x00114245 0x00114245 0x0
t 103 0x04300030 0x00114244 0x00114244 0x0
t 014 0E80 0 0 0
// Now take the ai and vi out of reset
t 103 0x04300030 0x02114244 0x02114244 0x0
// Enter the security mode
t 0100 04300014 00000000 00000000 00000000
t 0100 1fc00000 00000000 00000000 00000000
// Let USB in security mode
t 0102 04940010 00000001 00000000 00000000
t 0102 04A40010 00000001 00000000 00000000
// Let AI have proper VCLK
t 0102 04400000 00000000 00000000 00000000
// Configure Ai (DAC rate, bit rate) with DMA enable
t 003 00000086 00000001 00000000 00000000
// Unlock Virage2 - write 0 to control register
t 102 1fcac000 00000000 00000000 00000000
//Set Both UI controller in Device(Target) Mode
t 830 0 0 04980000 04a80000
//Clear all the stat
t 900 0 0 0 0
t 900 1 0 0 0
t 900 2 0 0 0
t 900 3 0 0 0
t 900 4 0 0 0
t 900 5 0 0 0
t 900 6 0 0 0
t 900 7 0 0 0
t 900 8 0 0 0
t 900 9 0 0 0
t 900 a 0 0 0
t 900 20 0 0 0
t 901 0 0 0 0