[PATCH v2 6/8] mach-snapdragon: use SYSRESET_PSCI

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue May 28 10:28:59 CEST 2024


On Mon, 27 May 2024 at 20:17, Caleb Connolly <caleb.connolly at linaro.org> wrote:
>
> Capsule updates depend on SYSRESET, which we currently don't select but
> instead use a custom reset_cpu() implementation which just calls
> psci_reset().
>
> Clean this up, drop our custom function and require PSCI reset.
>
> There are some Qualcomm platforms that either can or do run without PSCI
> support, but we didn't handle these properly before anyway.
>
> Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
> ---
>  arch/arm/Kconfig                 | 2 ++
>  arch/arm/mach-snapdragon/board.c | 5 -----
>  2 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 39ad03acd2e4..0d5161358e33 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1084,8 +1084,10 @@ config ARCH_SNAPDRAGON
>         select OF_CONTROL
>         select OF_SEPARATE
>         select SMEM
>         select SPMI
> +       select SYSRESET
> +       select SYSRESET_PSCI
>         select BOARD_LATE_INIT
>         select OF_BOARD
>         select SAVE_PREV_BL_FDT_ADDR
>         select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK
> diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
> index c4a3394706e6..b0d9a65bb8f5 100644
> --- a/arch/arm/mach-snapdragon/board.c
> +++ b/arch/arm/mach-snapdragon/board.c
> @@ -106,13 +106,8 @@ void *board_fdt_blob_setup(int *err)
>
>         return (void *)fdt;
>  }
>
> -void reset_cpu(void)
> -{
> -       psci_system_reset();
> -}
> -
>  /*
>   * Some Qualcomm boards require GPIO configuration when switching USB modes.
>   * Support setting this configuration via pinctrl state.
>   */
>
> --
> 2.45.0
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list