diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-01-29 14:35:17 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-30 13:06:43 -0800 |
commit | 8515c963372d1c015f59c54a4acbc4d3c9bf0b19 (patch) | |
tree | 89131475e2cbe05d6f98760dfc43264752788bbc /board/nami_fp | |
parent | 9ea99fb8004a8f9da2a13cf0371ffbdae1bef46f (diff) | |
download | chrome-ec-8515c963372d1c015f59c54a4acbc4d3c9bf0b19.tar.gz |
flash_fp_mcu: convert tabs to two spaces to match shell style guide
tab2space -unix -t2 board/nocturne_fp/flash_fp_mcu > tmp
mv tmp board/nocturne_fp/flash_fp_mcu
chmod +x board/nocturne_fp/flash_fp_mcu
tab2space -unix -t2 board/nami_fp/flash_fp_mcu > tmp
mv tmp board/nami_fp/flash_fp_mcu
chmod +x board/nami_fp/flash_fp_mcu
BRANCH=nocturne,nami
BUG=none
TEST=flash_fp_mcu /opt/google/biod/fw/nocturne_fp_v2.2.110-b936c0a3c.bin
Change-Id: Ie85aabf3d785a5bb69c4fd36a71dbbd5cc1e966d
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1444096
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'board/nami_fp')
-rwxr-xr-x | board/nami_fp/flash_fp_mcu | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/board/nami_fp/flash_fp_mcu b/board/nami_fp/flash_fp_mcu index 9a81564db8..23af0bcaec 100755 --- a/board/nami_fp/flash_fp_mcu +++ b/board/nami_fp/flash_fp_mcu @@ -7,31 +7,31 @@ KBL_GPIOCHIP="gpiochip360" if [ -e "/sys/class/gpio/${KBL_GPIOCHIP}" ]; then - # Ekko configuration - echo "NOTE: For use with updating FP MCU on NAMI boards only" - SPIDEV="/dev/spidev32765.0" - # GSPI1 ACPI device for FP MCU - SPIID="spi-PRP0001:02" - # FPMCU RST_ODL is on GPP_C9 = 360 + 57 = 417 - GPIO_NRST=417 - # FPMCU BOOT0 is on GPP_D5 = 360 + 77 = 437 - GPIO_BOOT0=437 - # FP_PWR_EN is on GPP_B11 = 360 + 35 = 395 - GPIO_PWREN=395 + # Ekko configuration + echo "NOTE: For use with updating FP MCU on NAMI boards only" + SPIDEV="/dev/spidev32765.0" + # GSPI1 ACPI device for FP MCU + SPIID="spi-PRP0001:02" + # FPMCU RST_ODL is on GPP_C9 = 360 + 57 = 417 + GPIO_NRST=417 + # FPMCU BOOT0 is on GPP_D5 = 360 + 77 = 437 + GPIO_BOOT0=437 + # FP_PWR_EN is on GPP_B11 = 360 + 35 = 395 + GPIO_PWREN=395 else - echo "Cannot find a known GPIO chip." - exit 1 + echo "Cannot find a known GPIO chip." + exit 1 fi if [ ! -f "$1" ]; then - echo "Invalid image file: $1" - echo "Usage: $0 ec.bin" - exit 1 + echo "Invalid image file: $1" + echo "Usage: $0 ec.bin" + exit 1 fi if ectool gpioget EC_WP_L | grep -q '= 0'; then - echo "Please make sure WP is deasserted." - exit 1 + echo "Please make sure WP is deasserted." + exit 1 fi # Ensure the ACPI is not cutting power when unloading cros-ec-spi |