aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2015-10-31 15:15:58 +0100
committerFreddie Chopin <freddie.chopin@gmail.com>2015-11-03 21:45:28 +0000
commit951061c972a58215403b86b36dbbdb9de7f3dfad (patch)
treec7c352dbd75ea67ba13f69840812302896333ef1 /tcl
parentc1c4a6dd7f5f08cd801a323f1473d1a92543e336 (diff)
downloadriscv-openocd-951061c972a58215403b86b36dbbdb9de7f3dfad.zip
riscv-openocd-951061c972a58215403b86b36dbbdb9de7f3dfad.tar.gz
riscv-openocd-951061c972a58215403b86b36dbbdb9de7f3dfad.tar.bz2
lpc8xx: Allow CHIPNAME override
Default to lpc8xx as before, but allow setting the actual CHIPNAME. Change-Id: I5a48fa75c640440a0d4c3f2858653e94bed846d2 Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/3084 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/lpc8xx.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/tcl/target/lpc8xx.cfg b/tcl/target/lpc8xx.cfg
index 5654150..e0e210b 100644
--- a/tcl/target/lpc8xx.cfg
+++ b/tcl/target/lpc8xx.cfg
@@ -1,5 +1,7 @@
# NXP LPC8xx Cortex-M0+ with at least 1kB SRAM
-set CHIPNAME lpc8xx
+if { ![info exists CHIPNAME] } {
+ set CHIPNAME lpc8xx
+}
set CHIPSERIES lpc800
if { ![info exists WORKAREASIZE] } {
set WORKAREASIZE 0x400