tcl/board: add SPDX tag
[fw/openocd] / tcl / board / x300t.cfg
index 985f44edf60db3d62ab69a61e31bf1f14dc9c7ff..c57c9d9e42db4e1bacdfd92800d55299c76fd4bc 100644 (file)
@@ -1,3 +1,5 @@
+# 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***
 #
@@ -7,8 +9,9 @@ source [find target/smp8634.cfg]
 $_TARGETNAME configure -event reset-init { x300t_init }
 
 # 1MB CFI capable flash
-# flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash bank cfi 0xac000000 0x100000 2 2 0
+# 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
@@ -18,13 +21,13 @@ proc x300t_init { } {
        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
 }