summaryrefslogtreecommitdiff
path: root/board/hatch_fp
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-07-15 17:01:31 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-07-23 20:18:09 -0700
commit2ad39013e188b32640486b662005d29a199937b9 (patch)
treee399aa4da2dc7dbc274db26caa623ab91acda9b3 /board/hatch_fp
parent6f994b8e3ac868ffb1fba35473c753e65dcd1b5e (diff)
downloadchrome-ec-2ad39013e188b32640486b662005d29a199937b9.tar.gz
util: Unify separate flash_fp_mcu scripts into single common one
For fingerprint firmware we are moving towards a model where the "board" (in EC terminology) is a specific MCU+FP_SENSOR combination and not tied to the main system board that it's connected to (e.g., "hatch", "nocturne", etc.). This change decouples flash_fp_mcu from the EC "board". BRANCH=none BUG=b:136678758,b:137108509 TEST=make buildall -j hatch: flash_fp_mcu /opt/google/biod/fw/hatch_fp_v2.0.1359-6f54be08d.bin nocturne: flash_fp_mcu /opt/google/biod/fw/nocturne_fp_v2.0.1765+87bb17a39.bin nami: flash_fp_mcu /opt/google/biod/fw/nami_fp_v2.2.144-7a08e07eb.bin Cq-Depend:chromium:1705055 Change-Id: Idfe298f59ab9df8657a570cc47e956b4e94ee1a1 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1704808 Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'board/hatch_fp')
-rw-r--r--board/hatch_fp/flash_fp_mcu32
1 files changed, 0 insertions, 32 deletions
diff --git a/board/hatch_fp/flash_fp_mcu b/board/hatch_fp/flash_fp_mcu
deleted file mode 100644
index 2a3c11564f..0000000000
--- a/board/hatch_fp/flash_fp_mcu
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-# Copyright 2019 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.
-
-. "$(dirname "$(readlink -f "$0")")"/../share/flash_fp_mcu/flash_fp_mcu_common.sh
-
-# Kabylake PCH GPIOs
-readonly KBL_GPIOCHIP="gpiochip200"
-
-if [[ -e "/sys/class/gpio/${KBL_GPIOCHIP}" ]]; then
- # Hatch configuration
- echo "NOTE: For use with updating FP MCU on HATCH boards only"
- readonly SPIDEV="/dev/spidev1.1"
- # FPMCU RST_ODL is on GPP_A12 = 200 + 12 = 212
- readonly GPIO_NRST=212
- # FPMCU BOOT0 is on GPP_A22 = 200 + 22 = 222
- readonly GPIO_BOOT0=222
- # No PWREN GPIO on Hatch, FPMCU is always on
- readonly GPIO_PWREN=""
-else
- echo "Cannot find a known GPIO chip."
- exit 1
-fi
-
-flash_fp_mcu_stm32 \
- "${SPIDEV}" \
- "${GPIO_NRST}" \
- "${GPIO_BOOT0}" \
- "${GPIO_PWREN}" \
- "${1}"
-