diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-07-05 08:20:42 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-05 07:19:16 -0700 |
commit | e9fdbf8030ecc1123b4dccab0562e9f9c29ed2b5 (patch) | |
tree | 573cdfd56e03479596bcb7ef714e29c26ee2bab2 | |
parent | 626d419bf155f22cb228413c7b201a5c6f899f28 (diff) | |
download | chrome-ec-e9fdbf8030ecc1123b4dccab0562e9f9c29ed2b5.tar.gz |
meowth_fp: Update SPIID for nocturne
On nocturne, the FP controller device name is spi-PRP0001:02.
BRANCH=none
BUG=b:111144409
TEST=flash_fp_mcu ec.bin
Change-Id: Ie356bc824248e8a629a4317d5e40483e5bae4185
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1126582
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rwxr-xr-x | board/meowth_fp/flash_fp_mcu | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/meowth_fp/flash_fp_mcu b/board/meowth_fp/flash_fp_mcu index 0a42252674..740759b762 100755 --- a/board/meowth_fp/flash_fp_mcu +++ b/board/meowth_fp/flash_fp_mcu @@ -3,9 +3,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# GSPI1 ACPI device for FP MCU -SPIID="spi-PRP0001:01" - # Cannonlake PCH GPIOs CNL_GPIOCHIP="gpiochip268" # Kabylake PCH GPIOs @@ -13,7 +10,10 @@ 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 @@ -22,7 +22,10 @@ if [ -e "/sys/class/gpio/${CNL_GPIOCHIP}" ]; then 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 |