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: 133399 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp856281ljb; Fri, 13 Apr 2018 08:42:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx48gJ/khoahc/o7wzSG1heOGZHaZLiLfHXp/y5djgMJgfauNttwW+LgzSqG9nT8nEsJVCCb4 X-Received: by 10.80.195.6 with SMTP id a6mr21350119edb.178.1523634132280; Fri, 13 Apr 2018 08:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523634132; cv=none; d=google.com; s=arc-20160816; b=ITa473O37d6/KlySsnvsW643tCA8GV+/SS1O2HBvB56CRiSKkvzHS84w9S8mmVMAvb vN90OFEJNX8vADDRUl7izEdvw3SQyTHU5oyknZ2ofrSNiTzMeCGBOtZx0TPNHG4qQAFb LKS+Zu4NUGVRAl1M5nolw4IXjj0G5r1XXSXmbml0cnEu5fknEffaiR3GdkH5mylbylmD LldN01z4rMrJIyG5+rvEKn41NAWQtYPqpkxgnTowmGU42YkukpXwqgYZU+jJVLut4rJY 857qC5CF4q/833eY5V2hmBVhYjiMTr9p1qecvLYjJ9UKxl/NRHWNx6rvC/Ohsj9alqp1 ULJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=RmAxXXQbGBxOnk1Z8DYlAjK8h8J46hMi1PHrnfftetE=; b=WA7cPtRAe3tFC80/h7ljq+6w9uoHn/z9AHXmAgZpCxOeb8fAKYPFqD4RA84+EwDEWn 2vJ4lVncxHmxHksPtajgs67oMfinRfnj4Yu8ZAfmt4oEIl3XktRTq463RN0PXATPuxQL Ab1sWM1bjRh7K5b9nI2lVfgtsoY0c2uhroEQOjFEcAeT6gPMMy9nq7u9RIce2IUxtb7S KqR/SbmXfmauUKdq7axSrO8DWrlvEiYRRgmvyEAOq/luDDyGwKpzvJfL1Q4PSDxo4TVY tNL8BgY9PTTKEKmsBqegr17WMxWCiGTJzyetEz+SkEwSpBzgjvjnZqfEmbMReeWgnfyc ZBdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fThyW1UA; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id f8si4572934edm.303.2018.04.13.08.42.12; Fri, 13 Apr 2018 08:42:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fThyW1UA; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id CF920C21DA6; 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-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" \