From patchwork Fri May 13 02:32:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maniyam, Dinesh" X-Patchwork-Id: 1630475 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=RZ4Rjw7f; 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)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KztLp3TKKz9sG3 for ; Fri, 13 May 2022 12:46:10 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3845883DEF; Fri, 13 May 2022 04: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="RZ4Rjw7f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7370083CF3; Fri, 13 May 2022 04:32:23 +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 47CD983AC9 for ; Fri, 13 May 2022 04:32:20 +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=1652409140; x=1683945140; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=883YLt3IAio2dGiJSQrTwg9lQ414rTQU2hrzg3w3fms=; b=RZ4Rjw7f9aRVmFxsQwugsOm/fYUb9n2DGid4NVhG3EJ6Q3+40YiFQQ0m wsE8Q+S32vSBYgwOXxYIRPjvJLVJKXm9qI7OgCBks5fcSY1VAyORiOhvh JC9wbuOgUDho8MbA6ZZip+ykxrIXbsTwGFkw5hO7EW6N1XYrw31p3Yjl3 JkJJ+1RLJ6V5hZidrsHQ9UQUa5JC5yqLKexGAQl30eXQO32fwIP3uqXXr LjHNxpvGjWJmJ8pSuP4WZlu5RPoMV8mE/FyfZhHPhNaLFkDa9drEyGiSu FCIQtH8XQ3aGHXyAZihfKLKd4/cTeE5/E57/qOipdZ8eAUn+AiIgMm+lV w==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="257739660" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="257739660" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 19:32:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="671128012" Received: from pglc1230.png.intel.com ([10.221.139.25]) by fmsmga002.fm.intel.com with ESMTP; 12 May 2022 19:32:15 -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] arm: socfpga: spl: To notify SDM when SPL pass control to U-Boot Date: Fri, 13 May 2022 10:32:12 +0800 Message-Id: <20220513023212.13714-1-dinesh.maniyam@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 13 May 2022 04:45:52 +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 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: Dinesh Maniyam --- arch/arm/mach-socfpga/spl_s10.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.26.2 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); +}