Skip to content

Add support for fastboot reboot reason detection#5

Open
aswinm94 wants to merge 1 commit intoqualcomm-linux:qcom-nextfrom
aswinm94:reboot-bootloader
Open

Add support for fastboot reboot reason detection#5
aswinm94 wants to merge 1 commit intoqualcomm-linux:qcom-nextfrom
aswinm94:reboot-bootloader

Conversation

@aswinm94
Copy link

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.

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/

@b49020
Copy link
Member

b49020 commented Feb 11, 2026

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?

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments