summaryrefslogtreecommitdiff
path: root/board/nocturne_fp/flash_fp_mcu
diff options
context:
space:
mode:
Diffstat (limited to 'board/nocturne_fp/flash_fp_mcu')
-rwxr-xr-xboard/nocturne_fp/flash_fp_mcu32
1 files changed, 0 insertions, 32 deletions
diff --git a/board/nocturne_fp/flash_fp_mcu b/board/nocturne_fp/flash_fp_mcu
deleted file mode 100755
index b82083b518..0000000000
--- a/board/nocturne_fp/flash_fp_mcu
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-# Copyright 2018 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="gpiochip360"
-
-if [[ -e "/sys/class/gpio/${KBL_GPIOCHIP}" ]]; then
- # Nocturne configuration
-
- readonly SPIDEV="/dev/spidev32765.0"
- # FPMCU RST_ODL is on GPP_C10 = 360 + 58 = 418
- readonly GPIO_NRST=418
- # FPMCU BOOT0 is on GPP_C8 = 360 + 56 = 416
- readonly GPIO_BOOT0=416
- # FP_PWR_EN is on GPP_A11 = 360 + 11 = 371
- readonly GPIO_PWREN=371
-else
- echo "Cannot find a known GPIO chip."
- exit 1
-fi
-
-flash_fp_mcu_stm32 \
- "${SPIDEV}" \
- "${GPIO_NRST}" \
- "${GPIO_BOOT0}" \
- "${GPIO_PWREN}" \
- "${1}"
-