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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0C0AC433EF for ; Fri, 22 Oct 2021 06:48:01 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 34D9260EE3 for ; Fri, 22 Oct 2021 06:48:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 34D9260EE3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BBCFC83473; Fri, 22 Oct 2021 08:47:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1634885279; bh=FVpAGnCRbSqeXN6ZyJdAGCiK6Narqmjr7C+VdkPvdOM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=yY0TOhSX539XEyEC2vZEK+WKT9X8XXMdcn2zz6RbXWiCiB9orEydkv+Tv1ZpGKW+A Io3+HPMUXyccG0MBxIfw6ta4RF9YUZKdRkTMrc3DePf0Ox+2lxcCUfMc/ReWpuOoOU kh2o2/oL8XZAsCVKjV6f+9ZwzZCKx3z1sMYpkt2ZmZcUxVj+RJZ0gn7k0JnuoehAZC 5JbzlCNdLsP5fgBbeVvxEpzmeOQGTfxkYpQa6VgAZLhSbhaP9NNO99XF2jYhzNshGW YYu2ha4/vcIDsu0VUJQ5nytPNuA4Rr4sbELJ3OJ1ZJrsIVPULwJcEJX7mztm9Ejl7Z ALfze9mTzuGBQ== Received: by phobos.denx.de (Postfix, from userid 109) id 1D96B834A9; Fri, 22 Oct 2021 08:47:57 +0200 (CEST) Received: from mout-u-107.mailbox.org (mout-u-107.mailbox.org [91.198.250.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0389F83461 for ; Fri, 22 Oct 2021 08:47:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (smtp102.mailbox.org [80.241.60.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4HbFKP6VkMzQjCy; Fri, 22 Oct 2021 08:47:53 +0200 (CEST) Subject: Re: [PATCH 3/4] arm: mvebu: Add documentation for save_boot_params() function To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , u-boot@lists.denx.de References: <20211021144609.9319-1-pali@kernel.org> <20211021144609.9319-4-pali@kernel.org> From: Stefan Roese Message-ID: <66d207a7-009c-edac-a85a-b90ff9b67d4e@denx.de> Date: Fri, 22 Oct 2021 08:47:50 +0200 MIME-Version: 1.0 In-Reply-To: <20211021144609.9319-4-pali@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 050B256A X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 21.10.21 16:46, Pali Rohár wrote: > Important detail is availability of kwbimage BIN header arguments passed > via r0 and r1 registers by BootROM. > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan > --- > arch/arm/mach-mvebu/lowlevel_spl.S | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/mach-mvebu/lowlevel_spl.S b/arch/arm/mach-mvebu/lowlevel_spl.S > index dde77b765214..39d42912c49f 100644 > --- a/arch/arm/mach-mvebu/lowlevel_spl.S > +++ b/arch/arm/mach-mvebu/lowlevel_spl.S > @@ -3,6 +3,15 @@ > #include > #include > > +/* > + * BootROM loads the header part of kwbimage into L2 cache. BIN header usually > + * contains U-Boot SPL, optionally it can also contain additional arguments. > + * The number of these arguments is in r0, pointer to the argument array in r1. > + * BootROM expects executable BIN header code to return to address stored in lr. > + * Other registers (r2 - r12) must be preserved. We save all registers to > + * CONFIG_SPL_BOOTROM_SAVE address. BIN header arguments (passed via r0 and r1) > + * are currently not used by U-Boot SPL binary. > + */ > ENTRY(save_boot_params) > stmfd sp!, {r0 - r12, lr} /* @ save registers on stack */ > ldr r12, =CONFIG_SPL_BOOTROM_SAVE > Viele Grüße, Stefan -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de