Add support for fastboot reboot reason detection#5
Open
aswinm94 wants to merge 1 commit intoqualcomm-linux:qcom-nextfrom
Open
Add support for fastboot reboot reason detection#5aswinm94 wants to merge 1 commit intoqualcomm-linux:qcom-nextfrom
aswinm94 wants to merge 1 commit intoqualcomm-linux:qcom-nextfrom
Conversation
Member
|
As per upstream comments, there seems to be a lot of rework needed on the implementation approach. Can we address that feedback and then add v2 to the staging tree? |
9872ba4 to
08ddb75
Compare
Add functionality to detect and handle reboot-to-bootloader requests by reading PMIC PON (Power On) registers. When the device is rebooted with the bootloader flag set, U-Boot will automatically enter fastboot mode. This implementation supports multiple PMIC generations: - Gen 4 PMICs: Uses PON_SOFT_RB_SPARE register (0x88F) - Newer PMICs: Uses SDAM-based PON_REBOOT_REASON register (0x7148) The PMIC model is automatically detected via revision ID registers to determine the correct register addresses. After detecting a fastboot reboot reason, the register is cleared and fastboot mode is entered via the "run fastboot" command. Signed-off-by: Aswin Murugan <aswin.murugan@oss.qualcomm.com>
08ddb75 to
0a93901
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add functionality to detect and handle reboot-to-bootloader requests
by reading PMIC PON (Power On) registers. When the device is rebooted
with the bootloader flag set, U-Boot will automatically enter fastboot
mode.
This implementation supports multiple PMIC generations:
The PMIC model is automatically detected via revision ID registers to
determine the correct register addresses. After detecting a fastboot
reboot reason, the register is cleared and fastboot mode is entered
via the "run fastboot" command.
commits for this PR
mach-snapdragon:: Add support for fastboot reboot reason detection
upstream link: https://lore.kernel.org/all/20260108065533.1143179-1-aswin.murugan@oss.qualcomm.com/