From patchwork Wed Dec 27 12:25:50 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: 122785 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2126313qgn; Wed, 27 Dec 2017 04:37:52 -0800 (PST) X-Google-Smtp-Source: ACJfBotfgzPSYpx2JEgUVcaOyKcdckLe1oVxBv4vlrtdmdek3NaJyriyYmLodxn874CnUMUnYo95 X-Received: by 10.80.152.24 with SMTP id g24mr36776096edb.173.1514378272090; Wed, 27 Dec 2017 04:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514378272; cv=none; d=google.com; s=arc-20160816; b=X8jFFTp4dNPtzBSsMVWWVU9nzVV60EI+KtMX2D1JR4YfQYnFc2roXcPfyA23KWgCH2 aWQMXWNtP9rGjS7Wb5s4j3p9jyqYoGMW0h3BJcWHAtEG8aSgRRNdudw6n1L+ft/1YbxN WiF1v4Fh/mmuUS5wqTejx9AtgHPHvG4mZcfT8NRoIomHMmoK36LZQ3G0Iy3fdl34/wac STn+UlDQKbuvyYVtlNqJG0hCu0Bpc0JuLnwj2cgdbCryJT++ARtJlxmB2Q2pH67R+RyS pv2x/ZgBEauvkQbUF30fhmpKs1SofxdHI4fS2ZydzDiQplFApr+bJ6P/Vfqe5ZmV7uf9 HNGA== 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=KmgA4E4xGraf3xMgNPnQpGBVEI1cimHPorDqp7YQoNo=; b=FgXqFC17ZLSlXc/pn2KuRjm0GHKlZzvn61pNU2JlAGKgiJOS02G+jwrR/J36CSUHhQ vu6Dl0Huz04HFZmLrSU6KjD1WwyUFDFYSSUX/T9jxseF0x3yH95wvikjyqTCRD85zO7X ltuEydPxNwRJ0b7XaN8pIqnVIjydPUR1l9aOuAADDcGC/6QMiDjmTGE8M0Z5nbT9Dw9d dX3RrUEaocZDqVvMlGqr7NtOCGZvt8hRu4cmcQiwG+xPcT45FubKa1r3DSDkM/wWwRnz UibD7PTcieszBLcKu5nPnXTcddh76RY2Li4kyKGaGpHRJICzsd5k+blSPEGuyG/sswbV fonA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JLxKj3FV; 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 g3si921922edi.167.2017.12.27.04.37.51; Wed, 27 Dec 2017 04:37:52 -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=JLxKj3FV; 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 A39D8C21C8F; Wed, 27 Dec 2017 12:35:30 +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 0D069C21C8F; Wed, 27 Dec 2017 12:33:06 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9395CC21C8F; Wed, 27 Dec 2017 12:26:27 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 50A2BC21C34 for ; Wed, 27 Dec 2017 12:26:27 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id i11so39006979wmf.4 for ; Wed, 27 Dec 2017 04:26:27 -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=nKnswaZEZv1vkdvE0VcBdnR+TN01OhlaI7vFSdjYfVk=; b=JLxKj3FVG/fjtga/4Y/opNhsCXzoojr3znbL6QoTSN89DM9CeyGSK4ITZKX6xmk7lp lmzeTLdXS8LvlY+HAUUoiYjLhSeqgT7XYutoGWbg/7mvDqpBiFQgKKwHCGSCY4/8iLGK qcs5cjynWK+fBpRukHl9cMPe04h7z68xONgTA= 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=nKnswaZEZv1vkdvE0VcBdnR+TN01OhlaI7vFSdjYfVk=; b=aKe/woYHn8cJLArRq4UHn/X9OCZGVHomrJcw4bMgcwkkKooitZ07Z19tSwNCdyUFF3 TQwlPN3s2ykBgBeckn6oNcpSJnBaw66Xpwf5R6oRxUo0oHyMJVRmP2NQAkR9YaRyae98 e+jAZvGu88MU3znfpXEZ0lxqLbmiJaxKft5brbTN+L+kKStY/WRlJptw35dzhLAde6oI gYXJ52meDmHTxlGr3P2sGP5EkRzq1JA5RbwSSEiaPxA/YuCw96F5mxf8ysPSPDmIJTJh iDY1fhl2Ibyu6etXiVg6QCoTrvK5vyBu+yz++M5engwtFgyR6VG2Ss9a4uVov3n0I4or HQUA== X-Gm-Message-State: AKGB3mKkb/gtEZ6tux+tTsL/q7OfYpnqWo23vQqmhxsV8U7iDWxra0vX 1uNE3c9inlxZOozSI3pDSsxiHLrHZdo= X-Received: by 10.80.180.205 with SMTP id x13mr35786100edd.205.1514377586733; Wed, 27 Dec 2017 04:26:26 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a5sm28388838edm.47.2017.12.27.04.26.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Dec 2017 04:26:26 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Wed, 27 Dec 2017 12:25:50 +0000 Message-Id: <1514377566-28512-8-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514377566-28512-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514377566-28512-1-git-send-email-bryan.odonoghue@linaro.org> X-Mailman-Approved-At: Wed, 27 Dec 2017 12:32:58 +0000 Cc: Fabio Estevam Subject: [U-Boot] [PATCH 07/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 --- 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 515c4da..924018e 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 52dff01..0d2d240 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