summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhanu Prakash Maiya <bhanumaiya@chromium.org>2021-02-05 13:03:03 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-06 01:42:48 +0000
commit943520d37cac1c7f6faa0a1777673873cc5e9564 (patch)
tree2356fcf3ef51299b62db3d0671985e7baa45b07e
parent025f8592fbc8fa728dbb5535d9fa74427391e398 (diff)
downloadchrome-ec-943520d37cac1c7f6faa0a1777673873cc5e9564.tar.gz
flash_fp_mcu: Add config for guybrush
BRANCH=none BUG=b:176826659 TEST=None. Signed-off-by: Bhanu Prakash Maiya <bhanumaiya@google.com> Change-Id: Ia5139265f3f8af6aec7d0c41685f3d3bfa861d1c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2679782 Reviewed-by: Craig Hesling <hesling@chromium.org>
-rw-r--r--util/flash_fp_mcu16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/flash_fp_mcu b/util/flash_fp_mcu
index cb65b20544..b992a5d5b4 100644
--- a/util/flash_fp_mcu
+++ b/util/flash_fp_mcu
@@ -384,6 +384,22 @@ config_zork() {
readonly GPIO_PWREN=-1
}
+config_guybrush() {
+ check_gpio_chip_exists "gpiochip320"
+
+ readonly TRANSPORT="UART"
+
+ readonly DEVICE="/dev/ttyS1"
+
+ # FPMCU RST_ODL is on AGPIO 11 = 320 + 11 = 331
+ readonly GPIO_NRST=331
+ # FPMCU BOOT0 is on AGPIO 144 = 320 + 144 = 464
+ readonly GPIO_BOOT0=464
+ # FPMCU PWR_EN is on AGPIO 32 = 320 + 32 = 352, but should not be
+ # necessary for flashing. Set invalid value.
+ readonly GPIO_PWREN=-1
+}
+
# The "platform name" corresponds to the underlying board (reference design)
# that we're running on (not the FPMCU or sensor). At the moment all of the
# reference designs use the same GPIOs. If for some reason a design differs in