From patchwork Mon Jan 8 17:36:22 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: 123768 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3011530qgn; Mon, 8 Jan 2018 09:42:36 -0800 (PST) X-Google-Smtp-Source: ACJfBos4rtZ75f+rDrsotTvP0C2WnZORoiJXZl+XPwURnltkbtTx00NrvURDjQG0zPXDN2vVwb/K X-Received: by 10.80.145.90 with SMTP id f26mr17833820eda.283.1515433355930; Mon, 08 Jan 2018 09:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515433355; cv=none; d=google.com; s=arc-20160816; b=JT0ej2ZBOAYw8VSAw7HrXJIjvZK4PUAseczPiaaYt2kbsrHPLyMvDLAP5F2JmDX8Fo IU8RK1ify0mh3Aj6DgYf77Oer25h92ncSt+fXg3zclSlbDCixW2rW5zRf3vNFXYXn6YC qJwnt1CfBq8jU+JMCLERfL3zt7ScrpviJUV9KlyF22jfaAqCxWwDHlSvNAUuPA9bKB+O IxLrdCyNd/KghcAsbgXkpfHQz/XMqVgwAWZeQ1cA9eOKCi2qeJfQsGWupO1IG1G4bALO LN4R9Ti8kRjSGAXHJWkmOuMxV8bUAYdOmCo6S/KEBjX6OnHM4Od7p6Kqff9pLV+m0Itp S/iQ== 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=ikhStahDui4p/tFfHpF7zYtX8K+0lVPEu6TRgvewZ2w=; b=J8f4AZJwhv09iKwF7IPQHwgUSq1DBR0YLQJRfAxQd7rufMSb2+4sdA3HTxiQdvOPRa CdS+PqzgKeWGJ4jwo6cHsoMkDFMr1k323kSRzM1JxjqCx2sskWznmTvGO9E/lIPISeoW BmpZL64zSB6JtcI1E5occ60Ya0Me7py+jfhZnopcFxaN32u1iACFpV4HUWaizlsMZV1l uuz4OBj4nypD9KbnBewtavOMT7QGRQKjXpHYDoZlONqBi0NbH4oCvaTAhB5Mja55JUN/ 4bCJx2iZLYI63QV7/dQ5vbBaie2Wxmc4UVSNdxBkUCN2n7BN9hGnu7qmg+Xyy6p/GxLz 1RWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=h4kiL1pS; 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 n17si135421eda.409.2018.01.08.09.42.35; Mon, 08 Jan 2018 09:42:35 -0800 (PST) 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=h4kiL1pS; 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 48C13C21FB8; Mon, 8 Jan 2018 17:40:25 +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, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 E2811C21FD4; Mon, 8 Jan 2018 17:37:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1D536C21FB1; Mon, 8 Jan 2018 17:36:55 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 48DE6C21FB4 for ; Mon, 8 Jan 2018 17:36:52 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id t8so15599440wmc.3 for ; Mon, 08 Jan 2018 09:36:52 -0800 (PST) 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=5osmqO6RuGeR5rNp1YmiKz2CDqY4yTY8yMk3hzOQD9k=; b=h4kiL1pS9Ss45FDqeJwn+De0G+4+lr+1nzLP2wUJ9WbORVDHTwzbpDLXn4WSZRGVgZ Xfu06n8L/5ubzxlIqpSlGtYP586ymYddVF27+qhy3KfNFFeDn7aOur5jMY2//IrCskbB FTSjDXCjz7L8vWPoryuQWgsveKY1CCiJtgDbQ= 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=5osmqO6RuGeR5rNp1YmiKz2CDqY4yTY8yMk3hzOQD9k=; b=ECaDXhlsyenXxHwIzhmilCutn1Mi5OezCC8hZXm7KpZKmivrG8+gMIAvKwI2PGH2jf H4r06+PUHb2LVdJQesbbeQbUpCQ00LU5LPIMzaLyfNiyky4Y3FBlrpg2xwKsDvHhkB07 3+PMylQdZEthgftS6g7hxV4TFacRTnDqMtAK+kwIGjK2jucl7JG8HNHK8fA+9p0m4eNw bjyHa8nV9yo7DnKdoXmXkKVMvULJuRbb11r3f+RBHbaSvKTRkE7bsqjS70H6joxXTdgG tuOdea+GbeWsluZd6vtxGTu2NMdp7zCFZtRwJNmKsFsyecVOx8bdmcVtCIMnzxazHPwJ 87fg== X-Gm-Message-State: AKGB3mJyCiq8rlT/fLysIr86KzXe8PxoRhex00w6vOBqs+vvIe2ykWFo xc6JOCmHxKAJQg3+nUBwctTJFsghZVY= X-Received: by 10.80.132.169 with SMTP id 38mr17562029edq.75.1515433011657; Mon, 08 Jan 2018 09:36:51 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a38sm7160033edf.3.2018.01.08.09.36.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jan 2018 09:36:50 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Mon, 8 Jan 2018 17:36:22 +0000 Message-Id: <1515433001-13857-6-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515433001-13857-1-git-send-email-bryan.odonoghue@linaro.org> References: <1515433001-13857-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam Subject: [U-Boot] [PATCH v5 05/24] arm: imx: hab: Move IVT_SIZE to hab.h 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" The size of the IVT header should be defined in hab.h move it there now. Signed-off-by: Bryan O'Donoghue Cc: Stefano Babic Cc: Fabio Estevam Cc: Peng Fan Cc: Albert Aribaud Cc: Sven Ebenfeld Cc: George McCollister Cc: Breno Matheus Lima --- arch/arm/include/asm/mach-imx/hab.h | 2 ++ arch/arm/mach-imx/hab.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/hab.h b/arch/arm/include/asm/mach-imx/hab.h index 1b7a5e4..3c19d2e 100644 --- a/arch/arm/include/asm/mach-imx/hab.h +++ b/arch/arm/include/asm/mach-imx/hab.h @@ -143,6 +143,8 @@ typedef void hapi_clock_init_t(void); #define HAB_CID_ROM 0 /**< ROM Caller ID */ #define HAB_CID_UBOOT 1 /**< UBOOT Caller ID*/ +#define IVT_SIZE 0x20 + /* ----------- end of HAB API updates ------------*/ int authenticate_image(uint32_t ddr_start, uint32_t image_size); diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c index f878b7b..6367562 100644 --- a/arch/arm/mach-imx/hab.c +++ b/arch/arm/mach-imx/hab.c @@ -70,7 +70,6 @@ ((hab_rvt_exit_t *)HAB_RVT_EXIT) \ ) -#define IVT_SIZE 0x20 #define ALIGN_SIZE 0x1000 #define CSF_PAD_SIZE 0x2000 #define MX6DQ_PU_IROM_MMU_EN_VAR 0x009024a8