Implement reset in U-Boot without PSCI - #118
Open
sumitsinghdhami-qc wants to merge 3 commits into
Open
Conversation
Configure the PMIC PON PBS reset type before deasserting MPM PS_HOLD. The PON PBS reset sequence requires PS_HOLD_RESET_CTL2 to be cleared, the requested reset type to be written to PS_HOLD_SW_CTL, and PS_HOLD_RESET_CTL2 to be enabled again before deasserting MPM_PS_HOLD. Signed-off-by: Sumit Singh Dhami <sumit.dhami@oss.qualcomm.com>
Add the Qualcomm PS_HOLD sysreset node for the Lemans EVK. Link the reset driver to the PMIC PON peripheral and provide the PBS PS_HOLD control register offsets required to configure warm and hard resets before deasserting MPM_PS_HOLD. Signed-off-by: Sumit Singh Dhami <sumit.dhami@oss.qualcomm.com>
CMD_POWEROFF requires do_poweroff(), normally provided by psci.c, but PSCI_RESET is disabled in snagboot mode, causing a link failure. Poweroff isn't needed for snagboot recovery, so disable it. Signed-off-by: Sumit Singh Dhami <sumit.dhami@oss.qualcomm.com>
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.
Implements system reset without relying on PSCI by using the
qcom-pshold sysreset driver. Configures the PMIC PON PBS
reset type before deasserting MPM_PS_HOLD, adds the corresponding
device-tree properties for the Lemans EVK, and disables
CONFIG_CMD_POWEROFF in the snagboot config.