Message ID | 1514377566-28512-16-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2135240qgn; Wed, 27 Dec 2017 04:47:12 -0800 (PST) X-Google-Smtp-Source: ACJfBotxxvjU9cGpAPa0Mc6fwBdhlobyvNG0dSZNf+/+YwDUhkZHd7ZcrSzcWLqWX+PVBuSv5Uep X-Received: by 10.80.141.141 with SMTP id r13mr35102932edh.122.1514378832819; Wed, 27 Dec 2017 04:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514378832; cv=none; d=google.com; s=arc-20160816; b=aDcH/8C9vgJEXBLxJHOgO6JxqH5nXmKftRtHOncIFS6is3yLKJo26TY0oz3RGhFqbe bwwdQQdBa5WrGoyePCleZbmsQ9IPwqEYGqmlX6lbKMr9NHGmPWqA2siT31MywQPa15DS bdnmeKpfg+tFt37SgEMZCNzKuRVqT2R50xtHymREmHVCeKgXauSM6WaNlWxff6yJWjqA hVJV9HgWWpJZi7vORwMLLHAWXLe9LQboRf46nPak2L40/Q/Tg3ygvD0avzkCx5DXGjAT 9KYbB3TmNL9vrThimRddzeyDWBR8w/gWvbsYPwPB4W4411LjCSHc+I4oxQHcT8F1Uk7A OYUA== 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=AW3z5/Ttx+lvsHGirfs/kOqufesHz1OH4hK4H0ZgBfU=; b=DPAu2kqDgv7BZDqLfUWR7cmjDRJNKjR1r1EOMX5w0BWPpIERSaWkwU/bdAazd17YH8 3c9DmoDAxUIsau7ctXoRm/NobpYhDUkC2P+r9qRHCiNx2qiBScsHIyIm2zAEDy9CgByb ChZX91GWSqtbYSQmz8/1RTIu7Bt+cCojlBq3+yQUP5k7HsCTRVRv8qu5TTWvSSL5+SaK VebIqb6NmAn0/K/6iOZUnzFLq/sAjHNOn21EwA4km1tQYXU23agV/U+uYxJVcfiEC0L+ 6gwlwfSIkjIr9Z4O2j1bWkgUiU0Dy7DqqRi4JTARq5MtcyK1ez0jPsRcMUfeMpIwMDnz oVeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PVJzSH+g; 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: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x47si3050261edd.77.2017.12.27.04.47.12; Wed, 27 Dec 2017 04:47:12 -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=PVJzSH+g; 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 6F54DC21E6F; Wed, 27 Dec 2017 12:37:49 +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 72B66C21ED6; Wed, 27 Dec 2017 12:33:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1F883C21C34; Wed, 27 Dec 2017 12:26:38 +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 C6911C21C8F for <u-boot@lists.denx.de>; Wed, 27 Dec 2017 12:26:37 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id i11so39007702wmf.4 for <u-boot@lists.denx.de>; Wed, 27 Dec 2017 04:26:37 -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=zsWSEqP48SnN5NSx2S5muXlPKQdZc822xiuFGaoE0NQ=; b=PVJzSH+g0BjGM1Q1aTJ17/FnjZjzeW7+/CiS+iT3fLUKpee5EYz6MPaMT8wq7YZuPG 2/Mgh8o/gJv685m3JG9FBy8z91LGkt8C767XCHBrgNHRZw/pXc234WNq5kx/1J+K5MrX W9/lYwEX6MWIyOBKDY3FFUsiiwca7wH0nxmkU= 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=zsWSEqP48SnN5NSx2S5muXlPKQdZc822xiuFGaoE0NQ=; b=drpKYm2JUhJW15xkWOoeBFiDseZuU/TGRAYD4NsPGsJX6JxTzXMsqyWwBXdxT2k8MB lPQCYRFslufDQgHurJFSNigUO8t1eFBn1r+6TXyWqOrr8rKJEC32GJem5Wsdf6jeTXEd AF9w0fvrF+p3r9QWVChWXh2Ro7g686hL3N/FToEWReQg/CZmP+3JKl6XvnkL2AFtdaTJ vXqLgC1dMpTeblTIAe/u5i6cbM3sH5rHuGSihghx4W22YMR3EH7UOfqrzb7D+sdvueMm jkYbJmAmvT1jt1An0dcagVCrnCvWP7d0eu4/NE3Z640s005EYHEHDzFCjz05AWKRsToJ Gurg== X-Gm-Message-State: AKGB3mIuEeKHywCo/sRSmLqW1iCwVm5fnkhbbRJeXJ+lAUYkPtEbo9a/ ftbqizOvfk9cNPtO3ANXZ2M2ooal5Bg= X-Received: by 10.80.209.193 with SMTP id i1mr34630187edg.107.1514377597243; Wed, 27 Dec 2017 04:26:37 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a5sm28388838edm.47.2017.12.27.04.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Dec 2017 04:26:36 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de Date: Wed, 27 Dec 2017 12:25:58 +0000 Message-Id: <1514377566-28512-16-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 <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH 15/23] arm: imx: hab: Implement hab_rvt_check_target X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
Fix and extend i.MX HAB layer
|
expand
|
diff --git a/arch/arm/mach-imx/hab.c b/arch/arm/mach-imx/hab.c index fe91687..8d0e3e1 100644 --- a/arch/arm/mach-imx/hab.c +++ b/arch/arm/mach-imx/hab.c @@ -70,6 +70,24 @@ ((hab_rvt_exit_t *)HAB_RVT_EXIT) \ ) +static enum hab_status hab_rvt_check_target_new(enum hab_target target, + const void *start, + size_t bytes) +{ + return HAB_SUCCESS; +} + +#define hab_rvt_check_target_p \ +( \ + (is_mx6dqp()) ? \ + ((hab_rvt_check_target_t *)hab_rvt_check_target_new) : \ + (is_mx6dq() && (soc_rev() >= CHIP_REV_1_5)) ? \ + ((hab_rvt_check_target_t *)hab_rvt_check_target_new) : \ + (is_mx6sdl() && (soc_rev() >= CHIP_REV_1_2)) ? \ + ((hab_rvt_check_target_t *)hab_rvt_check_target_new) : \ + ((hab_rvt_check_target_t *)HAB_RVT_CHECK_TARGET) \ +) + #define ALIGN_SIZE 0x1000 #define MX6DQ_PU_IROM_MMU_EN_VAR 0x009024a8 #define MX6DLS_PU_IROM_MMU_EN_VAR 0x00901dd0
This patch implements the basic callback hooks for hab_rvt_check_target() for BootROM code using the older BootROM address layout - in my test case the i.MX7. Code based on new BootROM callbacks will just have HAB_SUCCESS as a result code. Adding support for the new BootROM callbacks is a TODO. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Sven Ebenfeld <sven.ebenfeld@gmail.com> Cc: George McCollister <george.mccollister@gmail.com> --- arch/arm/mach-imx/hab.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)