U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andre Przywara <andre.przywara@arm.com>
To: Debbie Horsfall <debbie.horsfall@arm.com>
Cc: <u-boot@lists.denx.de>, <trini@konsulko.com>,
	<fenghua@phytium.com.cn>, <linus.walleij@linaro.org>,
	<Peter.Hoyes@arm.com>, <liviu.dudau@foss.arm.com>
Subject: Re: [PATCH 2/2] arm: vexpress64: Enable SYSRESET and SYSRESET_PSCI
Date: Fri, 12 Sep 2025 15:26:41 +0100	[thread overview]
Message-ID: <20250912152641.7d9b9faa@donnerap> (raw)
In-Reply-To: <20250910151342.204255-2-debbie.horsfall@arm.com>

On Wed, 10 Sep 2025 16:13:42 +0100
Debbie Horsfall <debbie.horsfall@arm.com> wrote:

Hi Debbie,

> Select SYSRESET on Vexpress64 to enable system reset to support other
> features, such as capsule-on-disk. Select SYSRESET_PSCI if PSCI is
> inferred from the firmware (via ARM_PSCI_FW).
> Select ARM_SMCCC for Vexpress64 boards which in turn selects
> ARM_PSCI_FW.
> 
> The sysreset uclass unconditionally implements a reset_cpu() function.
> Remove the empty reset_cpu() in vexpress64 board code.

Thanks for the cleanup, looks good. Tested on AEM-RevC FVP and Juno.

> Signed-off-by: Debbie Horsfall <debbie.horsfall@arm.com>

Reviewed-by: Andre Przywara <andre.przywara@arm.com>

Cheers,
Andre

> ---
>  arch/arm/Kconfig                     | 2 ++
>  board/armltd/vexpress64/Kconfig      | 2 ++
>  board/armltd/vexpress64/vexpress64.c | 5 -----
>  3 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 40368abc297..d51a7619cdb 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1417,6 +1417,8 @@ config ARCH_VEXPRESS64
>  	select MTD_NOR_FLASH if MTD
>  	select FLASH_CFI_DRIVER if MTD
>  	select ENV_IS_IN_FLASH if MTD
> +	select SYSRESET
> +	select SYSRESET_PSCI if ARM_PSCI_FW
>  	imply DISTRO_DEFAULTS
>  
>  config TARGET_CORSTONE1000
> diff --git a/board/armltd/vexpress64/Kconfig b/board/armltd/vexpress64/Kconfig
> index f413c51ac43..5b10074e03f 100644
> --- a/board/armltd/vexpress64/Kconfig
> +++ b/board/armltd/vexpress64/Kconfig
> @@ -22,6 +22,7 @@ config VEXPRESS64_BASE_MODEL
>  	select LINUX_KERNEL_IMAGE_HEADER
>  	select POSITION_INDEPENDENT
>  	imply DM_RNG
> +	select ARM_SMCCC
>  
>  choice
>  	prompt "VExpress64 board variant"
> @@ -47,6 +48,7 @@ config TARGET_VEXPRESS64_JUNO
>  	select USB_EHCI_GENERIC if USB
>  	select USB_OHCI_HCD if USB
>  	select USB_OHCI_GENERIC if USB
> +	select ARM_SMCCC
>  	imply OF_HAS_PRIOR_STAGE
>  
>  endchoice
> diff --git a/board/armltd/vexpress64/vexpress64.c b/board/armltd/vexpress64/vexpress64.c
> index 0b75c1358f0..e8f1c2fe9fe 100644
> --- a/board/armltd/vexpress64/vexpress64.c
> +++ b/board/armltd/vexpress64/vexpress64.c
> @@ -206,11 +206,6 @@ int board_fdt_blob_setup(void **fdtp)
>  #endif
>  #endif
>  
> -/* Actual reset is done via PSCI. */
> -void reset_cpu(void)
> -{
> -}
> -
>  /*
>   * Board specific ethernet initialization routine.
>   */


  reply	other threads:[~2025-09-12 14:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-10 15:13 [PATCH 1/2] vexpress64: Set the DM_RNG property Debbie Horsfall
2025-09-10 15:13 ` [PATCH 2/2] arm: vexpress64: Enable SYSRESET and SYSRESET_PSCI Debbie Horsfall
2025-09-12 14:26   ` Andre Przywara [this message]
2025-09-12 14:26 ` [PATCH 1/2] vexpress64: Set the DM_RNG property Andre Przywara

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250912152641.7d9b9faa@donnerap \
    --to=andre.przywara@arm.com \
    --cc=Peter.Hoyes@arm.com \
    --cc=debbie.horsfall@arm.com \
    --cc=fenghua@phytium.com.cn \
    --cc=linus.walleij@linaro.org \
    --cc=liviu.dudau@foss.arm.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox