1 source [find target/alphascale_asm9260t.cfg]
3 reset_config trst_and_srst
5 $_TARGETNAME configure -event reset-init {
13 # Make sysre syspll is enabled
19 # Set PLL freq to 480MHz
21 # normally we shoul waiting here until we get 0x1 (0x80040104)&0x1)==0x0)
24 # select PLL as main source
26 # disable and enble main clk to update changes?
30 echo "Configure memory"
34 # configure memory controller for internal SRAM
36 # change default emi clk delay
37 mww 0x8004034C 0xA0503
38 # make sure chip_select_register2_low has correct value (why?)
39 mww 0x8070001c 0x20000000
40 # set type to sdram and size to 32MB
42 # configure internal SDRAM timing
43 mww 0x80700004 0x024996d9
44 # configure Static Memory timing
45 mww 0x80700094 0x00542b4f
47 echo "Configure uart4"
49 mww 0x80040024 0x2000000
50 # mux GPIO3_0 and GPIO3_1 to UART4
53 # configure UART4CLKDIV
57 # clear softrst and clkgate on uart4
58 mww 0x80010008 0xC0000000
59 # set bandrate 115200 12M
60 mww 0x80010030 0x00062070
67 $_TARGETNAME configure -work-area-phys 0x21ffe000 -work-area-virt 0xc1ffe000 -work-area-size 0x1000
68 $_TARGETNAME arm7_9 fast_memory_access enable
69 $_TARGETNAME arm7_9 dcc_downloads enable