From patchwork Tue Oct 15 08:28:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 1176811 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46spXM36cDz9sPJ for ; Tue, 15 Oct 2019 19:30:27 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 2E962C21E1E; Tue, 15 Oct 2019 08:30:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2B8E3C21C57; Tue, 15 Oct 2019 08:29:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C0EDDC21DF3; Tue, 15 Oct 2019 08:29:29 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id E8C5FC21CB1 for ; Tue, 15 Oct 2019 08:29:24 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46spW85Qh8z1rghK; Tue, 15 Oct 2019 10:29:24 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46spW84t7vz1rHcq; Tue, 15 Oct 2019 10:29:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id nFe0eMeQXs3D; Tue, 15 Oct 2019 10:29:23 +0200 (CEST) X-Auth-Info: IQeGmYNcZHhr6MroQWcXvwlO0YZ17UrdJaizwbzImB0= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 15 Oct 2019 10:29:23 +0200 (CEST) From: Lukasz Majewski To: Stefano Babic , u-boot@lists.denx.de, Tom Rini Date: Tue, 15 Oct 2019 10:28:45 +0200 Message-Id: <20191015082847.30865-4-lukma@denx.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191015082847.30865-1-lukma@denx.de> References: <20191015082847.30865-1-lukma@denx.de> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v2 3/5] spl: nor: Provide falcon boot support for NOR memories X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This commit adds falcon boot support (by also copying args necessary for booting) to the SPL NOR memory driver. After this change it is possible to use the falcon boot in the same way as on NAND memories. The necessary configs (i.e. CONFIG_CMD_SPL_NOR_OFS) are now defined in Kconfig. Signed-off-by: Lukasz Majewski Reviewed-by: Tom Rini --- common/spl/spl_nor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/spl/spl_nor.c b/common/spl/spl_nor.c index 7df708de9b0f..b1e79b9ded62 100644 --- a/common/spl/spl_nor.c +++ b/common/spl/spl_nor.c @@ -51,6 +51,11 @@ static int spl_nor_load_image(struct spl_image_info *spl_image, CONFIG_SYS_OS_BASE, (void *)header); +#if defined CONFIG_SYS_SPL_ARGS_ADDR && defined CONFIG_CMD_SPL_NOR_OFS + memcpy((void *)CONFIG_SYS_SPL_ARGS_ADDR, + (void *)CONFIG_CMD_SPL_NOR_OFS, + CONFIG_CMD_SPL_WRITE_SIZE); +#endif return ret; } #endif