flash_fp_mcu: Add config for guybrush
BRANCH=none
TEST=None.
@@ -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
