Skip to content

Implement reset in U-Boot without PSCI - #118

Open
sumitsinghdhami-qc wants to merge 3 commits into
qualcomm-linux:qcom-nextfrom
sumitsinghdhami-qc:pshold-system-reset
Open

Implement reset in U-Boot without PSCI#118
sumitsinghdhami-qc wants to merge 3 commits into
qualcomm-linux:qcom-nextfrom
sumitsinghdhami-qc:pshold-system-reset

Conversation

@sumitsinghdhami-qc

Copy link
Copy Markdown

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.

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>
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.

1 participant