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 91B86C433F5 for ; Tue, 10 May 2022 11:31:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 70CC4842A8; Tue, 10 May 2022 13:31:13 +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="KNr4SN0L"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95B7D83EE8; Tue, 10 May 2022 09:21:16 +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 73DE683EAE for ; Tue, 10 May 2022 09:21:13 +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=dinesh.maniyam@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652167273; x=1683703273; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wlu1uvAQPdbxnf9VML/hm6P0DBEvwQNeJICSGICcckM=; b=KNr4SN0LsgPQAgL2ZIBrmkhoMQ0kbyTTFNlSNHQX+XqcZsmPPqE0x4uD DQUTSpCx6B9v0Lbg89q9qsHv+efZI9weCmaSAF/3K255TwJjtlMszXWe2 O97X6MITl0Bm5o1bhvPQMMMWt3JNQvWtsAspOw/mWBZVucsEEVegJYJKK 6i/7dFykYdjFnsMTLMMHu3SQPbO32jI837ynkpbK5H0GXMOhCFzdlRt10 w5y+h1G4Bo7eJp9yM5qqOcrKaHhqQ12fET93s9RUXIXF7JC2iSjyHszk1 KYYOk5zxuEl4KPGVPd0P3H/D6wnC4J8SF6OWtcPbV8DKpCkFHBhOq12Ib A==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="249820962" X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="249820962" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 00:21:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="570547915" Received: from pglc1230.png.intel.com ([10.221.139.25]) by fmsmga007.fm.intel.com with ESMTP; 10 May 2022 00:21:00 -0700 From: dinesh.maniyam@intel.com To: u-boot@lists.denx.de Cc: Marek Vasut , Simon Goldschmidt , Tien Fong Chee , Kok Kiang , Yau Wai , Sin Hui , Raaj , Dinesh Maniyam , Chin Liang See Subject: [PATCH] arm:socfpga:soc64: To notify SDM when U-Boot pass control to Linux Date: Tue, 10 May 2022 15:20:57 +0800 Message-Id: <20220510072057.17644-1-dinesh.maniyam@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 10 May 2022 13:31:06 +0200 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.5 at phobos.denx.de X-Virus-Status: Clean From: Dinesh Maniyam 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: Dinesh Maniyam --- 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..3148eb46a5 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); +} \ No newline at end of file -- 2.26.2