Message ID | 1514377566-28512-23-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 90csp2132092qgn; Wed, 27 Dec 2017 04:43:50 -0800 (PST) X-Google-Smtp-Source: ACJfBouNvlhfxOFQhloOrqq7XIM7tHTlzxbZ8OoKM3Z822QKGn+KBaWzNLgyWRpcNfRxwqXtH+5U X-Received: by 10.80.182.138 with SMTP id d10mr34364360ede.131.1514378630385; Wed, 27 Dec 2017 04:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514378630; cv=none; d=google.com; s=arc-20160816; b=gwaNof99olehlFJOixXJZUPcjILph0s/myuwjw3MGKYc+4RlnZFH2vxdlCYaYAyBFL AlfVzBf4gMYVMEDTe5EuOh4Boc8wKMdl2lkXO1m/kCrcrWXgkeZOuvFU6m68Sx1TRx5f 7nTm8UEkwnI/E9bUxWz9/iXLe6+6hq2EuzUEsV2PkleSxBBWCVQBf+sVZXqpzz3R3XYC h6RomQyFsOA7xzedldn8dFFHrryg71bj8MCMxk8JBi2UhL//TiXpyg/J2z58nmS7JZWE ERyjUgbk16nM+od3RDxdvKtx4s3fb7mNdySZfUMOuaqBB7GI+rha2Pcrj17pjRCWuJ7S e3sQ== 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=8fB6Vpdgb+hpy+BCoRHEMc2Jvw1llb96zu4nuRatAjU=; b=f+2Z3nBUbOf1X9R6WMPowaQKgm71qmPtBKcLwKYn5iyKMB25tt8RCqRe8or1Mel425 q3ypI41UtpRXp6rg8TPh98Eej97ljrMRB+XdsH1Hr5ZKNU0NogidxZCApEDVhy0y9ZEf KqV9b1HRpFA2zHHd5yWnZAlDcmuX5aX4+g47Eqn5opHKvM0LX5yQ7cbQAO7I918BH6xK drt2T5nSTMpxv407aO7MYEVM+A9NTqJT6HbZaCs//VSJtJ25RkTKmhons/0QTA8GHBEW LuilJQPaDZvc03y3JYjBBEIt2Nw7u8gDeMp6xjniDsOlVCKleEImgNzW1SAe3h8Cjq4p 8M4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hSui0XN9; 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 88si281242edy.434.2017.12.27.04.43.50; Wed, 27 Dec 2017 04:43:50 -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=hSui0XN9; 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 078EDC21DB0; Wed, 27 Dec 2017 12:40:00 +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 27BBEC21EAE; Wed, 27 Dec 2017 12:33:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3A16BC21C34; Wed, 27 Dec 2017 12:26:46 +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 C539DC21C4A for <u-boot@lists.denx.de>; Wed, 27 Dec 2017 12:26:45 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id t8so39118812wmc.3 for <u-boot@lists.denx.de>; Wed, 27 Dec 2017 04:26:45 -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=MPvfzS27FFZVhuLu4sR5LipDhttAvAyqqyhrpyYX6iU=; b=hSui0XN9nbJDbMW+mP41OQuw1wzYLz5Q//vtEjgic8F3Yae1U/VN5YUnJbhjZYMB97 iBDcui0KyLavSCIFOxQLzi1ijx/pW1e8P6U5GizJncsGy3VqvubgSAGkbzV1sxp7t04z lsX5pYqAh0itiFxYX3KwT50KLfgN7yNYQA6oU= 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=MPvfzS27FFZVhuLu4sR5LipDhttAvAyqqyhrpyYX6iU=; b=H4gPnuhj0IzgfeZ6FXEhhXNkqtGzrrYL4jKkl1pkQ1Vxw0fUgAoxTLzZA5kIJ1KySA fhtqrskKdAUck0TzGNjRQgYUQ8gxzo++9uhFZdXOEh6Ne+oJgYxS9DhHZGqnYFlbyGOz 0nvhKFbaq2Tbpk21pngrzqjsdgA4dDuP5q5p5cwrXf0X/yR6vRoGgZu0yAPyIgljOCcx +5UAyT8p6dHMQ45Kb513w7J8sF8t237e/A1vrpsK7tWzF717G+7CpvV66mmgysOunx0N 0rR+XBZAUG2rAtLp0g32sTDq2M/E/2IvcRoMfyGTIeInJXwK/5J+8MLdj0ceCU+bwgCq 3s8g== X-Gm-Message-State: AKGB3mKZ8xO7cTU5rndxKTbd02MbWJIuTBo2JO+ZJz8nfkmfuUHw+Fv0 KsrZwdLUoK5I28cwBwCrWb/YuHUgWlY= X-Received: by 10.80.138.199 with SMTP id k7mr34943701edk.229.1514377605224; Wed, 27 Dec 2017 04:26:45 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a5sm28388838edm.47.2017.12.27.04.26.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Dec 2017 04:26:44 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de Date: Wed, 27 Dec 2017 12:26:05 +0000 Message-Id: <1514377566-28512-23-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:59 +0000 Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH 22/23] arm: imx: hab: Implement hab_rvt_failsafe 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 9f344a8..93e11dd 100644 --- a/arch/arm/mach-imx/hab.c +++ b/arch/arm/mach-imx/hab.c @@ -70,6 +70,21 @@ ((hab_rvt_exit_t *)HAB_RVT_EXIT) \ ) +static void hab_rvt_failsafe_new(void) +{ +} + +#define hab_rvt_failsafe_p \ +( \ + (is_mx6dqp()) ? \ + ((hab_rvt_failsafe_t *)hab_rvt_failsafe_new) : \ + (is_mx6dq() && (soc_rev() >= CHIP_REV_1_5)) ? \ + ((hab_rvt_failsafe_t *)hab_rvt_failsafe_new) : \ + (is_mx6sdl() && (soc_rev() >= CHIP_REV_1_2)) ? \ + ((hab_rvt_failsafe_t *)hab_rvt_failsafe_new) : \ + ((hab_rvt_failsafe_t *)HAB_RVT_FAILSAFE) \ +) + static enum hab_status hab_rvt_check_target_new(enum hab_target target, const void *start, size_t bytes)
This patch implements the basic callback hooks for hab_rvt_check_failsafe for BootROM code using the older BootROM address layout - in my test case the i.MX7. Code based on new BootROM callbacks will just do nothing and there's definitely a TODO to implement that extra functionality on the alternative BootROM API. 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 | 15 +++++++++++++++ 1 file changed, 15 insertions(+)