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 30F05C433FE for ; Mon, 21 Nov 2022 15:36:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A4068530A; Mon, 21 Nov 2022 16:36:35 +0100 (CET) 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="mmUbkvZt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BA4F85316; Mon, 21 Nov 2022 16:36:33 +0100 (CET) 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 24822852F8 for ; Mon, 21 Nov 2022 16:36:27 +0100 (CET) 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=1669044988; x=1700580988; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0y8s+E4yG0F/gKQCl6/EP3j4bldLCg3WaNLzaUlClp4=; b=mmUbkvZtRt5ESt+aGZSvEyrwZwOE8OLPdjpR+8LhB9WhAp7qQGXiVcN8 w4Lp0B84Jw/gWCkqU4mQejlWv4TmjRZFAjRbE45l6g5k8lRKeSfUHQiYZ P7ZdEli2L0d8HZVgDAPf+O00sxuJYCm4oFb0pc0hGZUYXXaGPNlWTJ3fB qP2LvQbSg5IQ/8YpdnKYq9v4eb4l8tJ+7f+JjineZG6weX3LNxPHlg8gw hIY5VzaYBoi7dncH3u/+KqoPu2UUNE/5tzLm9jl783B7XisO4Wd4e+5A5 2vEr4f7MsSjy+/J0C/TMJS86CFC3LOPXFmiE6NICORWLO5frfpavtDEPe Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="312288979" X-IronPort-AV: E=Sophos;i="5.96,181,1665471600"; d="scan'208";a="312288979" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2022 07:36:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10538"; a="635216184" X-IronPort-AV: E=Sophos;i="5.96,181,1665471600"; d="scan'208";a="635216184" Received: from pglmail07.png.intel.com ([10.221.193.207]) by orsmga007.jf.intel.com with ESMTP; 21 Nov 2022 07:36:21 -0800 Received: from localhost (pgli0028.png.intel.com [10.221.84.177]) by pglmail07.png.intel.com (Postfix) with ESMTP id 30AB94823; Mon, 21 Nov 2022 23:36:21 +0800 (+08) Received: by localhost (Postfix, from userid 12048045) id 2DE23E0095F; Mon, 21 Nov 2022 23:36:21 +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 , Jit Loon Lim , Sieu Mun Tang Subject: [PATCH] configs: socfpga: Wrapping up function ID for SMC register access Date: Mon, 21 Nov 2022 23:36:19 +0800 Message-Id: <20221121153619.17668-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: Tien Fong Chee Wrapping up function ID for SMC register access, so that all details such as write / read / update function ID can be wrapped up. User can direct running SMC command with wrapped function ID into environment variables without bothering respective register access function ID. Signed-off-by: Tien Fong Chee Signed-off-by: Jit Loon Lim --- include/configs/socfpga_soc64_common.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/configs/socfpga_soc64_common.h b/include/configs/socfpga_soc64_common.h index 7edffc3975..170b647826 100644 --- a/include/configs/socfpga_soc64_common.h +++ b/include/configs/socfpga_soc64_common.h @@ -99,7 +99,12 @@ " root=${nandroot} rw rootwait rootfstype=jffs2; " \ "bootm ${loadaddr}\0" \ "nandfitload=nand read ${loadaddr} kernel\0" \ - "socfpga_legacy_reset_compat=1\0" + "socfpga_legacy_reset_compat=1\0" \ + "rsu_status=rsu dtb; rsu display_dcmf_version; "\ + "rsu display_dcmf_status; rsu display_max_retry\0" \ + "smc_fid_rd=0xC2000007\0" \ + "smc_fid_wr=0xC2000008\0" \ + "smc_fid_upd=0xC2000009\0 " \ /* * External memory configurations -- 2.26.2