arm: mediatek: use phase-aware PSCI reset on MT8188
MT8188 reset_cpu() checks the U-Boot proper PSCI symbol even when the function is built for SPL. A standalone SPL download agent runs before BL31, so fastboot acknowledges a reboot request and then stalls while attempting an unavailable PSCI system reset. Use the phase-aware configuration check so SPL falls back to the watchdog reset provider. U-Boot proper continues to use PSCI as before. Signed-off-by: Carlo Caione <ccaione@baylibre.com> Reviewed-by: Julien Stephan <jstephan@baylibre.com> Link: https://patch.msgid.link/20260724-ccaione-upstream-mt8188-spl-reset-v1-1-08da6554ecd8@baylibre.com Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
committed by
David Lechner
parent
b889cdc267
commit
cdc0564d4f
@@ -33,7 +33,7 @@ void reset_cpu(void)
|
||||
{
|
||||
struct udevice *wdt;
|
||||
|
||||
if (IS_ENABLED(CONFIG_PSCI_RESET)) {
|
||||
if (CONFIG_IS_ENABLED(PSCI_RESET)) {
|
||||
psci_system_reset();
|
||||
} else {
|
||||
uclass_first_device(UCLASS_WDT, &wdt);
|
||||
|
||||
Reference in New Issue
Block a user