From patchwork Fri Apr 13 15:31:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 898000 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=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="fThyW1UA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40N2BK3vG8z9s16 for ; Sat, 14 Apr 2018 01:43:53 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 46462C21C38; Fri, 13 Apr 2018 15:35:34 +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=RCVD_IN_DNSWL_BLOCKED, T_DKIM_INVALID 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 2B7E1C21E16; Fri, 13 Apr 2018 15:32:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1A2B0C21DF9; Fri, 13 Apr 2018 15:31:39 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id 2742FC21DD3 for ; Fri, 13 Apr 2018 15:31:35 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id v60so5264017wrc.7 for ; Fri, 13 Apr 2018 08:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jEJ2K86Wbbdpj7z+Xd0250Q+apqTUT7spA9kXplFwfQ=; b=fThyW1UAAI00Fh+QNZQ/xJUIu4DVDl6hQPtuGJmbZBORG4vDZWF3f70t1GSeDnfxEC SOnSILfFHgesramGYAW4XNVJDZEUDRx1EJvszu+N3YjQ64hgjwjjCfXknIRICXDrWGOm T5d8NhfckgNXKkqg38Uyz8fPLWrqGLpoj2a1I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jEJ2K86Wbbdpj7z+Xd0250Q+apqTUT7spA9kXplFwfQ=; b=ub0M5ToLrolSIGD/FD3TIXEUVcUp/qccKLj0+Rd2Gla6Xi0rM/5rvjtJbOrgGhFTGo 2SVdCDBpVSXWs/bMTPC2FpBx3wZoj6W6amA3OtxHLv5wszQzOxR2w8YyUXqQs9TkWdpO L1xT0l2rSGNMwkroxqqB40VsN0gECcLYlD7p96QYYNFEnlNaMLF+uwMdr70QyIb4y015 LLe5qhS9lLViw4Qjx3qp/XJWVmcq3sw0YspgRT8ZAs2vFOlmuiXI0YJMAHv6Sjhe73W1 YbT5phUy8Y05Ilcywac7mefnubbC0k5LOwEjra1xGmO2EwgOQUfyAqUWUbKCYT4RHbUA iEDw== X-Gm-Message-State: ALQs6tDTk+lLEk1RrdRonB4kpO7g2s5eub3ZNS+f2VlZCo1HwDSWrUKW OAJ6P/Cz4+8hoo8m6G1/GQVtCTAHvbs= X-Google-Smtp-Source: AIpwx49zFKI6wuHiWb98l3VpaX6NnDqExErBuiMkhr0kyVa3HZlce+QyV3cNTyVT8gv/1WWfkDVRzg== X-Received: by 10.80.222.9 with SMTP id z9mr21020298edk.245.1523633494583; Fri, 13 Apr 2018 08:31:34 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:34 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Fri, 13 Apr 2018 16:31:14 +0100 Message-Id: <1523633481-20914-11-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> References: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH v3 10/17] warp7: Make CONFIG_SYS_FDT_ADDR a define 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" In order to sign images with the IMX code-signing-tool (CST) we need to know the load address of a given image. The best way to derive this load address is to make it into a define - so that u-boot.cfg contains the address - which we can then parse when generating the IMX CST headers. Signed-off-by: Bryan O'Donoghue Reviewed-by: Ryan Harkin --- board/warp7/Kconfig | 6 ++++++ include/configs/warp7.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/board/warp7/Kconfig b/board/warp7/Kconfig index 61c33fb..00df19d 100644 --- a/board/warp7/Kconfig +++ b/board/warp7/Kconfig @@ -6,4 +6,10 @@ config SYS_BOARD config SYS_CONFIG_NAME default "warp7" +config SYS_FDT_ADDR + hex "FDT load address" + default 0x83000000 + help + The address the FDT file should be loaded to. + endif diff --git a/include/configs/warp7.h b/include/configs/warp7.h index e12b90b..344042c 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -39,7 +39,7 @@ "fdt_high=0xffffffff\0" \ "initrd_high=0xffffffff\0" \ "fdt_file=imx7s-warp.dtb\0" \ - "fdt_addr=0x83000000\0" \ + "fdt_addr=" __stringify(CONFIG_SYS_FDT_ADDR)"\0" \ "optee_addr=" __stringify(CONFIG_OPTEE_LOAD_ADDR)"\0" \ "boot_fdt=try\0" \ "ip_dyn=yes\0" \