From patchwork Fri May 13 07:29:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maniyam, Dinesh" X-Patchwork-Id: 1630675 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VeYmcqKd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L06xc1HHjz9sFs for ; Fri, 13 May 2022 22:13:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 65F8A8210C; Fri, 13 May 2022 14:13:18 +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="VeYmcqKd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4E11A8210C; Fri, 13 May 2022 09:29:51 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 12E5A820F6 for ; Fri, 13 May 2022 09:29:47 +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=1652426988; x=1683962988; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ABgAMaO3G4mTgH9ePHdWfymjoPQX687Ied8ulJdwYpI=; b=VeYmcqKdpMROftGc2Ei/UneDvfnrEW2QvHj4VeKJInXh/lP0kCDo0GB3 FsPTOvx22tm1KHLiihaD+b3LwJzl00HPZpSZeexaDkckuHnxS752lqOsx +/G89Of2wtrJg8VGVc6L85MrmoM0H+Dok+uEM3fMUKfUlAmZShvDySKRq 4skAr8JOOz0739TLW/sYk27+dA9MDBWQR168ziQbA/w1xixzUUSW+XYaq GwQLuVmfPoCpQ0EZYVZ1DxoAbRVjF3S7GdfQoWqF/Ng0wYV0sHSus1jFy n33eYNwQKkmj5rVA0aWzfSw88KEqub2z4AgtjHC797fGOv1/epYEiHiZK g==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="257786976" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="257786976" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 00:29:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="624764513" Received: from pglc1230.png.intel.com ([10.221.139.25]) by fmsmga008.fm.intel.com with ESMTP; 13 May 2022 00:29:43 -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 Subject: [PATCH v2] arm: socfpga: soc64: To notify SDM when U-Boot pass control to Linux Date: Fri, 13 May 2022 15:29:39 +0800 Message-Id: <20220513072939.16814-1-dinesh.maniyam@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20220510072057.17644-1-dinesh.maniyam@intel.com> References: <20220510072057.17644-1-dinesh.maniyam@intel.com> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 13 May 2022 14:13:10 +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: Dinesh Maniyam --- v1->v2 Add space in title --- arch/arm/mach-socfpga/misc_soc64.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.26.2 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