From patchwork Wed Sep 13 19:29:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 813597 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com 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=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xssGB42Clz9sNw for ; Thu, 14 Sep 2017 05:30:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 29533C22107; Wed, 13 Sep 2017 19:30:28 +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 77938C21F16; Wed, 13 Sep 2017 19:30:09 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1D30EC21E28; Wed, 13 Sep 2017 19:30:07 +0000 (UTC) Received: from mail.theobroma-systems.com (vegas.theobroma-systems.com [144.76.126.164]) by lists.denx.de (Postfix) with ESMTPS id D413DC21E2F for ; Wed, 13 Sep 2017 19:30:06 +0000 (UTC) Received: from [86.59.122.178] (port=60339 helo=android.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1dsDMJ-000385-U7; Wed, 13 Sep 2017 21:30:04 +0200 From: Philipp Tomsich To: u-boot@lists.denx.de Date: Wed, 13 Sep 2017 21:29:30 +0200 Message-Id: <1505330989-25602-3-git-send-email-philipp.tomsich@theobroma-systems.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1505330989-25602-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1505330989-25602-1-git-send-email-philipp.tomsich@theobroma-systems.com> Cc: Klaus Goger Subject: [U-Boot] [PATCH 02/15] spl: add a fdt_addr field to spl_image_info 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When loading a full U-Boot with detached device-tree using the SPL FIT backend, we should store the address of the FDT loaded as part of the SPL image info: this allows us to fixup the FDT with additional info we may want to propagate onward. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- include/spl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spl.h b/include/spl.h index ce4cf0a..acbc47a 100644 --- a/include/spl.h +++ b/include/spl.h @@ -25,6 +25,9 @@ struct spl_image_info { u8 os; ulong load_addr; ulong entry_point; +#if CONFIG_IS_ENABLED(LOAD_FIT) + void *fdt_addr; +#endif u32 size; u32 flags; void *arg;