9d9a320fbbc57234004969b61f2b92bd8ddc064d
[fw/openocd] / tcl / board / x300t.cfg
1 # This is for the T-Home X300T / X301T IPTV box,
2 # which are based on IPTV reference designs from Kiss/Cisco KMM-3***
3 #
4 # It has Sigma Designs SMP8634 chip.
5 source [find target/smp8634.cfg]
6
7 $_TARGETNAME configure -event reset-init { x300t_init }
8
9 # 1MB CFI capable flash
10 # flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
11 set _FLASHNAME $_CHIPNAME.flash
12 flash bank $_FLASHNAME cfi 0xac000000 0x100000 2 2 $_TARGETNAME
13
14 proc x300t_init { } {
15         # Setup SDRAM config and flash mapping
16         # initialize ram
17         mww 0xa003fffc 3
18         mww 0xa003fffc 2
19         mww 0xa0030000 0xE34111BA
20         mww 0xa003fffc 0xa4444
21         mww 0xa003fffc 0
22
23         # remap boot vector in CPU local RAM
24         mww 0xa006f000 0x60000
25
26         # map flash to CPU address space REG_BASE_cpu_block+CPU_remap4
27         mww 0x0006f010 0x48000000
28
29         # map flash addr to REG_BASE_cpu_block + LR_XENV_LOCATION (normally done by XOS)
30         mww 0x00061ff0 0x48000000
31 }