summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOfer Fried <oferfried@google.com>2022-04-28 14:20:16 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-06 16:55:20 +0000
commit12c473337e3bdcce6d180d266c9e9f8127448f33 (patch)
treea5b6270f2d0cff32d41c18dc81dd7762c47e82eb
parentefe3ff970a396a6c7088b97bd69c73d251f7434a (diff)
downloadchrome-ec-12c473337e3bdcce6d180d266c9e9f8127448f33.tar.gz
zork/guybrush: Add missing FP_PWR_EN configuration
FP_PWR_EN is not required for flashing the FPMCU. It is required for POR after the flash is complete. Add FP_PWR_EN configuration for Zork and Guybrush. BRANCH=None BUG=b:229784281 TEST=Toggle the FPMCU_PWR_EN GPIO and confirm an additional `power-on` log appears in /var/log/cros_fp.log Signed-off-by: Ofer Fried <oferfried@chromium.org> Change-Id: I3375936496b40d6361c198a12643414600b0d080 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3615482 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Ofer Fried <oferfried@google.com> Tested-by: Ofer Fried <oferfried@google.com>
-rw-r--r--util/flash_fp_mcu10
1 files changed, 4 insertions, 6 deletions
diff --git a/util/flash_fp_mcu b/util/flash_fp_mcu
index 9d3eb65cc4..75a989e1f4 100644
--- a/util/flash_fp_mcu
+++ b/util/flash_fp_mcu
@@ -656,9 +656,8 @@ config_zork() {
readonly GPIO_NRST=267
# FPMCU BOOT0 is on AGPIO 69 = 256 + 69 = 325
readonly GPIO_BOOT0=325
- # FPMCU PWR_EN is on AGPIO 32 = 256 + 32 = 288, but should not be
- # necessary for flashing. Set invalid value.
- readonly GPIO_PWREN=-1
+ # FPMCU PWR_EN is on AGPIO 32 = 256 + 32 = 288
+ readonly GPIO_PWREN=288
}
config_guybrush() {
@@ -671,9 +670,8 @@ config_guybrush() {
readonly GPIO_NRST=267
# FPMCU BOOT0 is on AGPIO 144 = 256 + 144 = 400
readonly GPIO_BOOT0=400
- # FPMCU PWR_EN is on AGPIO 32 = 256 + 32 = 288, but should not be
- # necessary for flashing. Set invalid value.
- readonly GPIO_PWREN=-1
+ # FPMCU PWR_EN is on AGPIO 3 = 256 + 3 = 259
+ readonly GPIO_PWREN=259
}
main() {