diff options
author | Myles Watson <mylesgw@chromium.org> | 2015-05-28 12:12:13 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-09 01:17:52 +0000 |
commit | b793546316544eb6cb48362ad91d60c42dbee9e4 (patch) | |
tree | 57eb355248b13a1165333261d3603efe1c4b9c44 /chip/lm4 | |
parent | 4271b631a374549881c44203758fa2179d8b8179 (diff) | |
download | chrome-ec-b793546316544eb6cb48362ad91d60c42dbee9e4.tar.gz |
flash_ec: move openocd configs from chip/ to util/
Avoid duplicating servo configurations for every chip.
BRANCH=none
BUG=chrome-os-partner:22990
TEST=None. This is an intermediate step to make it clear what's happening.
CQ-DEPEND=CL:273950
Change-Id: I448543b6ab9d39423955e8d2589b6035c59e838a
Signed-off-by: Myles Watson <mylesgw@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/273906
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/lm4')
-rw-r--r-- | chip/lm4/openocd/lm4x_cmds.tcl | 67 | ||||
-rw-r--r-- | chip/lm4/openocd/servo_v2.cfg | 13 | ||||
-rw-r--r-- | chip/lm4/openocd/servo_v3.cfg | 13 |
3 files changed, 0 insertions, 93 deletions
diff --git a/chip/lm4/openocd/lm4x_cmds.tcl b/chip/lm4/openocd/lm4x_cmds.tcl deleted file mode 100644 index 601d03e445..0000000000 --- a/chip/lm4/openocd/lm4x_cmds.tcl +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. -# -# Command automation for Blizzard LM4F chip - -# Program internal flash - -proc flash_lm4 {path offset} { - #set firstsect [expr {$offset / 1024}]; - #set lastsect [expr {($offset + $size) / 1024 - 1}]; - reset halt; - flash write_image erase $path $offset; - reset -} - -proc flash_auron { } { - flash_lm4 ../../../build/auron/ec.bin 0 -} - -proc flash_bds { } { - flash_lm4 ../../../build/bds/ec.bin 0 -} - -proc flash_rambi { } { - flash_lm4 ../../../build/rambi/ec.bin 0 -} - -proc flash_samus { } { - flash_lm4 ../../../build/samus/ec.bin 0 -} - -proc flash_samus_ro { } { - flash_lm4 ../../../build/samus/ec.RO.flat 0 -} - -proc flash_samus_rw { } { - flash_lm4 ../../../build/samus/ec.RW.bin 131072 -} - -proc flash_rambi_ro { } { - flash_lm4 ../../../build/rambi/ec.RO.flat 0 -} - -proc flash_rambi_rw { } { - flash_lm4 ../../../build/rambi/ec.RW.bin 131072 -} - -# Auron have pstate following RO -proc unprotect_auron { } { - reset halt - flash erase_sector 0 126 127 - reset -} - -# Boot a software using internal RAM only - -proc ramboot_lm4 {path} { - reset halt - load_image $path 0x20000000 bin - reg 15 0x20000400 - resume -} - -proc ramboot_bds { } { - ramboot_lm4 ../../../build/bds/ec.RO.flat -} diff --git a/chip/lm4/openocd/servo_v2.cfg b/chip/lm4/openocd/servo_v2.cfg deleted file mode 100644 index 7d8fd77f7c..0000000000 --- a/chip/lm4/openocd/servo_v2.cfg +++ /dev/null @@ -1,13 +0,0 @@ -telnet_port 4444 -gdb_port 3333 -gdb_memory_map enable -gdb_flash_program enable - -interface ftdi -ftdi_vid_pid 0x18d1 0x5002 -ftdi_layout_init 0x0c08 0x0f1b -ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 -ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 - -source [find target/stellaris.cfg] -source [find lm4x_cmds.tcl] diff --git a/chip/lm4/openocd/servo_v3.cfg b/chip/lm4/openocd/servo_v3.cfg deleted file mode 100644 index 39fb1bd639..0000000000 --- a/chip/lm4/openocd/servo_v3.cfg +++ /dev/null @@ -1,13 +0,0 @@ -telnet_port 4444 -gdb_port 3333 -gdb_memory_map enable -gdb_flash_program enable - -interface ftdi -ftdi_vid_pid 0x18d1 0x5004 -ftdi_layout_init 0x0c08 0x0f1b -ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400 -ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800 - -source [find target/stellaris.cfg] -source [find lm4x_cmds.tcl] |