summaryrefslogtreecommitdiff
path: root/util/flash_fp_mcu
diff options
context:
space:
mode:
Diffstat (limited to 'util/flash_fp_mcu')
-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