From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6FBB7ECAAD1 for ; Wed, 31 Aug 2022 06:46:05 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1BCFE849E3; Wed, 31 Aug 2022 08:45:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="nhR87YpY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 36D11849C0; Wed, 31 Aug 2022 08:45:53 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2F206849E3 for ; Wed, 31 Aug 2022 08:45:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=jitloonl@ecsmtp.png.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661928349; x=1693464349; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=F6Bp98AHrh1yHhgyn+ay7idKRDsfhPo4L7/AMPdgdqc=; b=nhR87YpYKRZs7GcYEwUg7wnxHMvzbizEKlmSkxqws581dV/MVKjTYuQr jNrBLvM+tydR1M2vOyvkQcCSbWp7ue4WPGoUm4Td6gysYgF1tZ53MLDj2 aFKsb7l0RHz+eoNkB2ZgpHYuZPlFiDt4zrCD4PNMsIFrvzcUHEvAT2cD8 d/0UXF4nwkMRQ1xJFWBMPbGTTjDu+ufbGo5Xp3RveHOKpjBg9pGmFoygd AkXW73R+hax00LB3JSIhQ5I1V+MXa5/48gj/K998sokpDYpa8y9w85vu5 c06GrtiHmRnjjEBd4xbJTwWYY43UEMbKUu/uM5jW1BkB71WxLK3m40X8w A==; X-IronPort-AV: E=McAfee;i="6500,9779,10455"; a="275788069" X-IronPort-AV: E=Sophos;i="5.93,277,1654585200"; d="scan'208";a="275788069" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 23:45:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,277,1654585200"; d="scan'208";a="940335922" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga005.fm.intel.com with ESMTP; 30 Aug 2022 23:45:43 -0700 Received: from localhost (pgli0117.png.intel.com [10.221.240.80]) by pglmail07.png.intel.com (Postfix) with ESMTP id 91A7B4842; Wed, 31 Aug 2022 14:45:42 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id 8F9843D4F; Wed, 31 Aug 2022 14:45:42 +0800 (+08) From: Jit Loon Lim To: u-boot@lists.denx.de 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 Subject: [PATCH] arch: arm: mach-socfpga: To notify SDM when U-Boot pass control to Linux Date: Wed, 31 Aug 2022 14:45:40 +0800 Message-Id: <20220831064540.28640-1-jit.loon.lim@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Chin Liang See 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 Signed-off-by: Jit Loon Lim --- 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