summaryrefslogtreecommitdiff
path: root/util/flash_ec
diff options
context:
space:
mode:
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-xutil/flash_ec32
1 files changed, 0 insertions, 32 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 486e4801d1..a75c0bf637 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -44,14 +44,10 @@ die() {
exit 1
}
-# Note: Link is a special case and is not included here.
BOARDS_LM4=(
auron
- falco
- peppy
rambi
samus
- squawks
)
BOARDS_LM4_USB=(
@@ -62,16 +58,11 @@ BOARDS_STM32=(
big
blaze
discovery
- firefly
- fruitpie
glados_pd
honeybuns
- jerry
kitty
llama
- mighty
minimuffin
- nyan
oak
oak_pd
pinky
@@ -81,9 +72,6 @@ BOARDS_STM32=(
ryu_p4p5
ryu_sh
samus_pd
- snow
- speedy
- spring
zinger
)
BOARDS_STM32_PROG_EN=(
@@ -404,24 +392,6 @@ function flash_stm32_dfu() {
sudo $DFU_UTIL -a 0 -s ${ADDR}:${SIZE} -D "${IMG}"
}
-function flash_link() {
- OCD_PATH="${EC_DIR}/chip/lm4/openocd"
- setup_openocd
-
- OCD_CMDS="init; flash_lm4 ${IMG} ${FLAGS_offset};"
- if [ "${FLAGS_unprotect}" = ${FLAGS_TRUE} ] ; then
- info "Clearing write protect flag."
- OCD_CMDS="${OCD_CMDS} unprotect_link;"
- fi
- OCD_CMDS="${OCD_CMDS} shutdown;"
-
- dut_control jtag_buf_on_flex_en:on
- dut_control jtag_buf_en:on
-
- sudo openocd -s "${OCD_PATH}" -f "${OCD_CFG}" -c "${OCD_CMDS}" || \
- die "Failed to program ${IMG}"
-}
-
function flash_lm4() {
OCD_PATH="${EC_DIR}/chip/lm4/openocd"
setup_openocd
@@ -533,8 +503,6 @@ elif $(in_array "${BOARDS_STM32[@]}" "${BOARD}"); then
flash_stm32
elif $(in_array "${BOARDS_STM32_DFU[@]}" "${BOARD}"); then
flash_stm32_dfu
-elif [ "${BOARD}" == "link" ]; then
- flash_link
elif $(in_array "${BOARDS_NPCX[@]}" "${BOARD}"); then
flash_npcx
elif $(in_array "${BOARDS_MEC1322[@]}" "${BOARD}"); then