From patchwork Tue Apr 24 17:46:40 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: 903753 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="UHqpV2KF"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40Vrk96Mhyz9s0v for ; Wed, 25 Apr 2018 04:01:37 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 8CE8AC21FA6; Tue, 24 Apr 2018 17:54:09 +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_MSPIKE_H2, 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 E5431C21FB0; Tue, 24 Apr 2018 17:47:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 209C3C21FB2; Tue, 24 Apr 2018 17:47:03 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id 64D59C21F6A for ; Tue, 24 Apr 2018 17:47:03 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id n10so2250951wmc.1 for ; Tue, 24 Apr 2018 10:47:03 -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=VWnbVLkiutYbj3isBgosE392n6vExkaSsbwdiZDYVF8=; b=UHqpV2KFnIagjyIJnZzOKNAhBOYIqvS+oo99CInci17a0qRhengo2j+eXkmE2rKEHX fkgS4EKAuCxE/VsappftF+dG8dtsuFx3F+DtfONs8qib/YDuZ5jamPTaP92qG4QqlouH 1ae8a0F9sRd7MZxr//XGD3ExEPgMvPV+WGO9g= 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=VWnbVLkiutYbj3isBgosE392n6vExkaSsbwdiZDYVF8=; b=tjfmbwh5+Rkgd7VxOK41gZ+rD9x5nWzeHcc8IMoV6KoPSOXkttDTZ4thQX3RfWDoCF tmDudVzBjN0VhPtfSiBH1R7anpHNoE94BxOBCW+V98Q6YIjPjR8OnMmzT4NxsQKqAGLU pGmo5jSdI8v+wswcC/HccAx7stDPa0usXHAOVHIqowtc2FRU+Ji/yjRlRu9/my7uGFXo V0muwIG5kpTtVdWsswsYLHDv/OwTNjLEsgQgRtzbmTnxADyQkJRCZI5ahPakkqppL4L7 X0i4W87PoviU1I11kSBSERhWKG1fi3pHOtIKm31F+SXGxqsXS6yzQqHy3d17RMPb8a+C 2U1Q== X-Gm-Message-State: ALQs6tBhIOcgFDypBf8gszpatQiyylYbQtojDncFPRTCWNoUFv768LCe zEk0tOadNY16c80fhMJp8bnR4Ze7aKA= X-Google-Smtp-Source: AIpwx49O12nru5auxIIOD0oF9WYyYaCFxIq1ZtfF5KVq70gGEIwHm8l6Ku4x2lnEe8AQcuzRrIwtdQ== X-Received: by 10.80.154.34 with SMTP id o31mr34035116edb.161.1524592022886; Tue, 24 Apr 2018 10:47:02 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e6sm6443087eds.20.2018.04.24.10.47.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:47:02 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, sbabic@denx.de, fabio.estevam@nxp.com, breno.lima@nxp.com Date: Tue, 24 Apr 2018 18:46:40 +0100 Message-Id: <20180424174647.11840-12-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424174647.11840-1-bryan.odonoghue@linaro.org> References: <20180424174647.11840-1-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 11/18] 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 Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- 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 61c33fb53e..00df19d47f 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 9ae2ca4a53..a92e6758bf 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" \