Skip to content

Commit

Permalink
Use W_DISABLE as a fastboot trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Biktorgj committed Sep 16, 2020
1 parent fa05ced commit 1f2b018
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/aboot/aboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -3648,10 +3648,10 @@ void aboot_init(const struct app_descriptor *app)
(keys_get_state(KEY_BACK) || keys_get_state(KEY_VOLUMEDOWN)))
boot_into_fastboot = true;
}
#if NO_KEYPAD_DRIVER

if (fastboot_trigger())
boot_into_fastboot = true;
#endif


#if USE_PON_REBOOT_REG
reboot_mode = check_hard_reboot_mode();
Expand Down
6 changes: 5 additions & 1 deletion target/mdm9607/keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
/* GPIO that controls the button
* for FASTBOOT.
*/
#define FASTBOOT_KEY_GPIO_ID 37
/*
Use GPIO_11 (W_DISABLE) as source for fastboot
Pinephone GPIO Pin is #232. Set as 0 and reset to enter fastboot, 1 for normal boot
*/
#define FASTBOOT_KEY_GPIO_ID 11 //37

/*
* Returns fastboot button state.
Expand Down

0 comments on commit 1f2b018

Please sign in to comment.