mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-25 04:06:24 +00:00
4157732bd8
For historical reasons, no license information was added to the tcl files. This makes trivial adding the SPDX tag through script: fgrep -rL SPDX tcl/board | while read a;do \ sed -i '1{i# SPDX-License-Identifier: GPL-2.0-or-later\n }' $a;done With no specific license information from the author, let's extend the OpenOCD project license GPL-2.0-or-later to the files. Change-Id: Ibcf7da62e842aafd036a78db9ea2b9f11f79af16 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7028 Tested-by: jenkins Reviewed-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
34 lines
943 B
INI
34 lines
943 B
INI
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# This is for the T-Home X300T / X301T IPTV box,
|
|
# which are based on IPTV reference designs from Kiss/Cisco KMM-3***
|
|
#
|
|
# It has Sigma Designs SMP8634 chip.
|
|
source [find target/smp8634.cfg]
|
|
|
|
$_TARGETNAME configure -event reset-init { x300t_init }
|
|
|
|
# 1MB CFI capable flash
|
|
# flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
|
|
set _FLASHNAME $_CHIPNAME.flash
|
|
flash bank $_FLASHNAME cfi 0xac000000 0x100000 2 2 $_TARGETNAME
|
|
|
|
proc x300t_init { } {
|
|
# Setup SDRAM config and flash mapping
|
|
# initialize ram
|
|
mww 0xa003fffc 3
|
|
mww 0xa003fffc 2
|
|
mww 0xa0030000 0xE34111BA
|
|
mww 0xa003fffc 0xa4444
|
|
mww 0xa003fffc 0
|
|
|
|
# remap boot vector in CPU local RAM
|
|
mww 0xa006f000 0x60000
|
|
|
|
# map flash to CPU address space REG_BASE_cpu_block+CPU_remap4
|
|
mww 0x0006f010 0x48000000
|
|
|
|
# map flash addr to REG_BASE_cpu_block + LR_XENV_LOCATION (normally done by XOS)
|
|
mww 0x00061ff0 0x48000000
|
|
}
|