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 2EDBBECAAA1 for ; Tue, 30 Aug 2022 18:18:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D1BBD8488D; Tue, 30 Aug 2022 20:18:23 +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="nwh0EvZm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5D36A849A1; Tue, 30 Aug 2022 20:18:22 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 A721C84880 for ; Tue, 30 Aug 2022 20:18:19 +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=1661883499; x=1693419499; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8GNKhGngvlilAqv9bvrZ8XcZ33z2mcSLsHrTPe9hxu4=; b=nwh0EvZmrH26efggUYaFU/LxDBsiQXXcwj/z9dBO7u0cWdf02/fYmhMv M64jzbq9jaCuCL+i9OHI+JI5kbyEobDs0F6WCqZr2/q9PgZ2W9Sv/vv19 j+tJCDWQSNKrtqSctkg+tdk+J/zdap8quJWtj9+byI9ZYknJwW6dwSpcS SbkIUsnwz3dYNHnULlz/E/zrFupUeWUZySDLdgAezQpUWXealeXpz0pYY w8Qcj2fZQhCepy2YvtcDLvz9pbdi2pfatPFXuSNKTh4Q3aSSIFXvhzbZC SjJmSkE2+ZbYKJ1l/eNlLu7CRCpg2bEfsUdzL2iuxehikIzpqmggAOk/J g==; X-IronPort-AV: E=McAfee;i="6500,9779,10455"; a="294008546" X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="294008546" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 11:18:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,275,1654585200"; d="scan'208";a="680144010" Received: from pglmail07.png.intel.com ([10.221.193.207]) by fmsmga004.fm.intel.com with ESMTP; 30 Aug 2022 11:18:14 -0700 Received: from localhost (pgli0078.png.intel.com [10.221.240.41]) by pglmail07.png.intel.com (Postfix) with ESMTP id 537992B21; Wed, 31 Aug 2022 02:18:13 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id 7B9A729AE; Tue, 30 Aug 2022 23:52:30 +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 SPL pass control to U-Boot Date: Tue, 30 Aug 2022 23:52:17 +0800 Message-Id: <20220830155217.17886-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 SPL pass control to U-Boot, SPL will send a mailbox command "HPS_STAGE_NOTIFY" to notify Secure Device Manager (SDM) on HPS SW transition. The purpose is for debug as user can query SDM on HPS error details when HPS enters a warm reset due to error such as watchdog. Signed-off-by: Jit Loon Lim --- arch/arm/mach-socfpga/spl_s10.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-socfpga/spl_s10.c b/arch/arm/mach-socfpga/spl_s10.c index c20e87cdbe..9bfd1a0f6a 100644 --- a/arch/arm/mach-socfpga/spl_s10.c +++ b/arch/arm/mach-socfpga/spl_s10.c @@ -92,3 +92,9 @@ void board_init_f(ulong dummy) mbox_qspi_open(); #endif } + +/* board specific function prior loading SSBL / U-Boot */ +void spl_board_prepare_for_boot(void) +{ + mbox_hps_stage_notify(HPS_EXECUTION_STATE_SSBL); +} -- 2.26.2