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