From patchwork Thu Dec 28 18:49:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 122863 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3807621qgn; Thu, 28 Dec 2017 11:02:21 -0800 (PST) X-Google-Smtp-Source: ACJfBosdvGSIm3DS4WBNOimg5SR2hDjq46P9Trg6mJ6/k4R5c62DpNZEpR0lz/I+EyG+7mfbBkDv X-Received: by 10.80.194.194 with SMTP id u2mr40875260edf.260.1514487741643; Thu, 28 Dec 2017 11:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514487741; cv=none; d=google.com; s=arc-20160816; b=xaVsgo02bZLlNoYS2Wq67LqTnssyw6LMATNME9VZ82azhccu/ViITJ7f1BIFakNH6s ZOwQ+56Ncx9474zVqu/m2Sj7I/Kp1UyXXjKwQCRKhZjdxbAk11VjHC6GzWzHiv+AHH24 xmkbtPUBuCsc624a1WgiOWGj6a1sEoh0YZoce4EG35+UNSulcUr9D0EM/Af1SmDKTyXb YazYjedU9KallLZTeez/KX6DWv7Uvcxpymsqn9zkZBZCp3EpWLQMPfbjNAC/tr1laBM8 jMspjtzFOmdrLs3QBQZtZT3Ihk69JSTF2Lwb+jXT1C9P0VzqusNNAQlS2pm41ezzgJCN t93A== 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=cYVDHugWZAd2EMkR2ffqWJvo7mHhnAIZfQbDEgpCywUFlqjEqPceV1cTrgOk1Q09rd jJ6TVWaODHGH3A9G1vfAgm0agBeQQ+pswv0P+HtRxoIHdE36CAtaVgBsgbV+vrVCfdC/ XLrhjW5coO4lx32byHJKISR5C2RAqdQalgw7zfcTCxu8muWsa6Tdnioe1HAwx2CvU770 zZc/kRgwgNqXygHZiZRjwh4IKOyHnzT0aPSXVjy41fwzaQ4rf510ds5w+sGYsFHw7n+U bt3s8ITDxhH1eEKsBxCxxyaLQPUkMJ/PqQcRzDO13cxL/UtAuq1TNe8Y5lF4v+grT1Z9 UGUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=epoiJghL; 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 z34si9257681edz.7.2017.12.28.11.02.21; Thu, 28 Dec 2017 11:02:21 -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=epoiJghL; 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 2958AC21DE5; Thu, 28 Dec 2017 18:52:21 +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 29B52C21D5D; Thu, 28 Dec 2017 18:50:17 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BDF48C21DBA; Thu, 28 Dec 2017 18:49:54 +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 675C8C21DBB for ; Thu, 28 Dec 2017 18:49:50 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id g130so2859993wme.0 for ; Thu, 28 Dec 2017 10:49:50 -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=epoiJghLteF3zePVJPShanaXNSwJx/quMhfcKU6oD3rpI2K/wv4AJEIRdrfB2VNOPM 3KbsqFmqfCHcdJ0oZE02AlyTP3tcZTgyX7W8MF7ap2HrQDCzE4BMeMWSyEGGamDZtWRB h6K45OBw7vgVFHmVlM9LMqZ+biIFxPIHf0qWc= 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=p3sg+mnpWN+Nxi1Lc8KtT7eDC/fMxefBP9+2GmReeLOVriEK1ezbeh5GMKACQJM/NN zFGUePS6VlqyJa9cHmw+jHUAJh/o2++ryAJxxdmVPxSeIiiN/nyoX1DhNyzywSPO+lvO yNiDepvMgztS2x02uDRdzkwYpv4PphAvYO86IzSs58cyLR9p3TlpwiTFON+eo5f6pliv DryvqbhTqPaaHGWwifSEcrJIRbDq8k7nMc0CkSyiE5sX0xXW239rkWHfA8zdHxnx8dg9 QL3oJS/BGpti36mL/9KofYRNwesmyYGui9p4zevTlCRT9Xu3w8adWpl6eaw3dqmDKEVa vS1A== X-Gm-Message-State: AKGB3mJdcyDCx4OFdNhOCzeT4ov7VvRnhHpnm1H5zJmGwXOecD2DXC1q ltvEJ1eDIwxZuOuhF/C2efwZ/M46ZIM= X-Received: by 10.80.142.88 with SMTP id 24mr42121678edx.153.1514486989836; Thu, 28 Dec 2017 10:49:49 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x28sm35246579edd.0.2017.12.28.10.49.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Dec 2017 10:49:49 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Thu, 28 Dec 2017 18:49:24 +0000 Message-Id: <1514486982-19059-6-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514486982-19059-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514486982-19059-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam Subject: [U-Boot] [PATCH v2 05/23] 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