From patchwork Tue Jan 2 16:43:51 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: 123169 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp9177719qgn; Tue, 2 Jan 2018 08:54:20 -0800 (PST) X-Google-Smtp-Source: ACJfBosE+Y+Q9Oo4X6CNoYg2JMlZr3nhvaSOKhI+JT2hlTgKR9Hdg3xACXVoQgmLfC62v/xMTPGW X-Received: by 10.80.151.24 with SMTP id c24mr64932455edb.47.1514912060078; Tue, 02 Jan 2018 08:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514912060; cv=none; d=google.com; s=arc-20160816; b=sOW7D57Yh33Hz+U30r0ZzDsxwvX0/GDugvlRBc1EYQcrCqmIvca+PtOUazfFxYEFUN kA2SwEQhgDnbBxxhhowNQn/b1ER4HkCpJbrMUXmNSeJ2H04hGMVAfQU1hh4fxBbPS0yY sC6bGu0M8tFvTAJceN7rlbkXpok3fRj/cKc35UEsUJJg5yU37BLavznlHpwE7hKAAJA7 8JBCZdzFw6bNLVPMoRMypkWX7/ahnyumYEtUffSFapDpOwGRgg0Gq5xxtrAW3nIvM+K4 cRCFHQS1Fn8JSwY66XuOfRqtS/m02kac62LHTRpVZdHAm0wCFnY0dxfmIFX3dXs2rv0c W/XA== 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=e+4Kmu2RcNPIl8f6TCGGUETNowCy8O8PVJQYYD14KP9dwkdsswMMeRP8rhn9SEqU3Y BASurO9CDUAuxAI506lJESt+BrVhjXKsyQ2LCINfXWqQV96tw5K9vRJgbJBTVOG3/po9 sh9KjsokxRIRx7sJozyzd7kmze7Xa4BawbZsjVqtoGuBMAVv+7wCOb527oJPkCzJP5NM lNZqohLh+lwtxBeD6CgHqY7WXQuaSQmEk6ItCYNX+vo2YdUZkxNLyx+SAtaZrUlOfPT2 V7vQP9yWr+tf9z4kh4LSQ1a1x8YlwxwO81FEacXMYRcJbehJrxMg86vd7Jv41ERElBeP bhxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EwCwptA7; 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 a39si2506843eda.495.2018.01.02.08.54.19; Tue, 02 Jan 2018 08:54:20 -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=EwCwptA7; 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 AFBFBC21C34; Tue, 2 Jan 2018 16:46:14 +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_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 5F88CC21DE7; Tue, 2 Jan 2018 16:44:53 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BEE0BC21E0A; Tue, 2 Jan 2018 16:44:33 +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 D8420C21DDB for ; Tue, 2 Jan 2018 16:44:29 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id t8so62060623wmc.3 for ; Tue, 02 Jan 2018 08:44:29 -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=EwCwptA7pl5nK5PUln4p6T1wF96vBApHDqoTbRIn6t+KWUc8UTOlddaYyjjkyKZL8e C2wCjdomlWzGp91/JGWtWBM7SgWzSvnUG1qqb+N8s0KgjLu43C4w2OgofLVch6stHdp3 ldvv9kTKYR8rdxuov644sE3a/ol0qCMBzRq90= 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=kSXhnME74mYbmxD/nbiLes+DK3HbJJdWMCIpLGZ20K697VEXx3In9yECKEezXnDfvr IsFXi4x1A1J06fg9xfsVexhTI7i53qnsqxUOMD2Zl4Csu3PAh1irbf1XR694USDZVe1H 4mgdsEitZ6GFSUCtkOEoUyHe7PyoXNQXBSo477ZTs1Eir37aIGDjkcGSqhd/4mfx4yc+ oMRLkdIHgJbPeUPEzoWZa+D+EngRZuNq5ObG+QVq1+sa1AvurG3knY5JEQUK3Dmcr0iN g801VPJHcohcED1aOVvfSBSbZb+hbquJ9IoEQTkiFm6nWzKGX2iv11qoRG2p5/fOPc89 kxnw== X-Gm-Message-State: AKGB3mJ1y1rQ0Jwod9JUOYgcOrsdH8uBWQlVe550x1O1F8u41nHZR8lZ oYdrRuQ3TThnu9CN9p9ETzHkBiO5CDU= X-Received: by 10.80.213.90 with SMTP id f26mr19682162edj.225.1514911469199; Tue, 02 Jan 2018 08:44:29 -0800 (PST) Received: from localhost.localdomain (D4CCACC7.cm-2.dynamic.ziggo.nl. [212.204.172.199]) by smtp.gmail.com with ESMTPSA id z5sm29850584edh.76.2018.01.02.08.44.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Jan 2018 08:44:28 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Tue, 2 Jan 2018 16:43:51 +0000 Message-Id: <1514911451-4520-6-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514911451-4520-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514911451-4520-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam Subject: [U-Boot] [PATCH v4 05/25] 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