public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux
@ 2022-08-31  6:45 Jit Loon Lim
  2022-12-08  6:57 ` Chee, Tien Fong
  0 siblings, 1 reply; 2+ messages in thread
From: Jit Loon Lim @ 2022-08-31  6:45 UTC (permalink / raw)
  To: u-boot
  Cc: Jagan Teki, Vignesh R, Marek, Simon, Tien Fong, Kok Kiang,
	Siew Chin, Sin Hui, Raaj, Dinesh, Boon Khai, Alif, Teik Heng,
	Hazim, Sieu Mun Tang, Jit Loon Lim, Chin Liang See

From: Chin Liang See <chin.liang.see@intel.com>

Prior U-Boot pass control to Linux, U-Boot will send a mailbox command
"HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW
transition.

Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
 arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm/mach-socfpga/misc_soc64.c b/arch/arm/mach-socfpga/misc_soc64.c
index 2acdfad07b..00852d27d9 100644
--- a/arch/arm/mach-socfpga/misc_soc64.c
+++ b/arch/arm/mach-socfpga/misc_soc64.c
@@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
 
 	socfpga_bridges_reset(enable);
 }
+
+void arch_preboot_os(void)
+{
+	mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS);
+}
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux
  2022-08-31  6:45 [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux Jit Loon Lim
@ 2022-12-08  6:57 ` Chee, Tien Fong
  0 siblings, 0 replies; 2+ messages in thread
From: Chee, Tien Fong @ 2022-12-08  6:57 UTC (permalink / raw)
  To: Lim, Jit Loon, u-boot@lists.denx.de
  Cc: Jagan Teki, Vignesh R, Vasut, Marek, Simon, Hea, Kok Kiang,
	Lim, Elly Siew Chin, Kho, Sin Hui, Lokanathan, Raaj,
	Maniyam, Dinesh, Ng, Boon Khai, Yuslaimi, Alif Zakuan,
	Chong, Teik Heng, Zamri, Muhammad Hazim Izzat, Tang, Sieu Mun,
	Chin Liang See

Hi,

> -----Original Message-----
> From: Lim, Jit Loon <jit.loon.lim@intel.com>
> Sent: Wednesday, 31 August, 2022 2:46 PM
> To: u-boot@lists.denx.de
> Cc: Jagan Teki <jagan@amarulasolutions.com>; Vignesh R
> <vigneshr@ti.com>; Vasut, Marek <marex@denx.de>; Simon
> <simon.k.r.goldschmidt@gmail.com>; Chee, Tien Fong
> <tien.fong.chee@intel.com>; Hea, Kok Kiang <kok.kiang.hea@intel.com>;
> Lim, Elly Siew Chin <elly.siew.chin.lim@intel.com>; Kho, Sin Hui
> <sin.hui.kho@intel.com>; Lokanathan, Raaj <raaj.lokanathan@intel.com>;
> Maniyam, Dinesh <dinesh.maniyam@intel.com>; Ng, Boon Khai
> <boon.khai.ng@intel.com>; Yuslaimi, Alif Zakuan
> <alif.zakuan.yuslaimi@intel.com>; Chong, Teik Heng
> <teik.heng.chong@intel.com>; Zamri, Muhammad Hazim Izzat
> <muhammad.hazim.izzat.zamri@intel.com>; Tang, Sieu Mun
> <sieu.mun.tang@intel.com>; Lim, Jit Loon <jit.loon.lim@intel.com>; Chin
> Liang See <chin.liang.see@intel.com>
> Subject: [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass
> control to Linux
> 
> From: Chin Liang See <chin.liang.see@intel.com>
> 
> Prior U-Boot pass control to Linux, U-Boot will send a mailbox command
> "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW
> transition.
> 
> Signed-off-by: Chin Liang See <chin.liang.see@intel.com>
> Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
> ---
>  arch/arm/mach-socfpga/misc_soc64.c | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/arm/mach-socfpga/misc_soc64.c b/arch/arm/mach-
> socfpga/misc_soc64.c
> index 2acdfad07b..00852d27d9 100644
> --- a/arch/arm/mach-socfpga/misc_soc64.c
> +++ b/arch/arm/mach-socfpga/misc_soc64.c
> @@ -89,3 +89,8 @@ void do_bridge_reset(int enable, unsigned int mask)
> 
>  	socfpga_bridges_reset(enable);
>  }
> +
> +void arch_preboot_os(void)
> +{
> +	mbox_hps_stage_notify(HPS_EXECUTION_STATE_OS);

I don't see this function in https://source.denx.de/u-boot/u-boot, you need to submit the patch for this function first.

> +}
> --
> 2.26.2

Best regards,
TF.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-08  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-31  6:45 [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux Jit Loon Lim
2022-12-08  6:57 ` Chee, Tien Fong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox