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/nocturne_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/nocturne_fp')
-rwxr-xr-x | board/nocturne_fp/flash_fp_mcu | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/board/nocturne_fp/flash_fp_mcu b/board/nocturne_fp/flash_fp_mcu index 7f5a566c13..0fc40b7d12 100755 --- a/board/nocturne_fp/flash_fp_mcu +++ b/board/nocturne_fp/flash_fp_mcu @@ -9,43 +9,43 @@ CNL_GPIOCHIP="gpiochip268" KBL_GPIOCHIP="gpiochip360" if [ -e "/sys/class/gpio/${CNL_GPIOCHIP}" ]; then - # Meowth configuration - - SPIDEV="/dev/spidev1.0" - # GSPI1 ACPI device for FP MCU - SPIID="spi-PRP0001:01" - # FPMCU RST_ODL is on GPP_A23 = 268 + 23 = 291 - GPIO_NRST=291 - # FPMCU BOOT0 is on GPP_A21 = 268 + 21 = 289 - GPIO_BOOT0=289 - # FP_PWR_EN is on GPP_A11 = 268 + 11 = 279 - GPIO_PWREN=279 + # Meowth configuration + + SPIDEV="/dev/spidev1.0" + # GSPI1 ACPI device for FP MCU + SPIID="spi-PRP0001:01" + # FPMCU RST_ODL is on GPP_A23 = 268 + 23 = 291 + GPIO_NRST=291 + # FPMCU BOOT0 is on GPP_A21 = 268 + 21 = 289 + GPIO_BOOT0=289 + # FP_PWR_EN is on GPP_A11 = 268 + 11 = 279 + GPIO_PWREN=279 elif [ -e "/sys/class/gpio/${KBL_GPIOCHIP}" ]; then - # Nocturne configuration - - SPIDEV="/dev/spidev32765.0" - # GSPI1 ACPI device for FP MCU - SPIID="spi-PRP0001:02" - # FPMCU RST_ODL is on GPP_C10 = 360 + 58 = 418 - GPIO_NRST=418 - # FPMCU BOOT0 is on GPP_C8 = 360 + 56 = 416 - GPIO_BOOT0=416 - # FP_PWR_EN is on GPP_A11 = 360 + 11 = 371 - GPIO_PWREN=371 + # Nocturne configuration + + SPIDEV="/dev/spidev32765.0" + # GSPI1 ACPI device for FP MCU + SPIID="spi-PRP0001:02" + # FPMCU RST_ODL is on GPP_C10 = 360 + 58 = 418 + GPIO_NRST=418 + # FPMCU BOOT0 is on GPP_C8 = 360 + 56 = 416 + GPIO_BOOT0=416 + # FP_PWR_EN is on GPP_A11 = 360 + 11 = 371 + GPIO_PWREN=371 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 |