Message ID | 1515433001-13857-24-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 90csp3016783qgn; Mon, 8 Jan 2018 09:48:05 -0800 (PST) X-Google-Smtp-Source: ACJfBosStZa716HxX9nshdt272Ra5U7ssEuuq2DtPVMDQeYZFW4dbgegT3g9E/x8kSvmLm4c/ODt X-Received: by 10.80.206.67 with SMTP id k3mr17834106edj.153.1515433685500; Mon, 08 Jan 2018 09:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515433685; cv=none; d=google.com; s=arc-20160816; b=rFDH1efV0T+CWtQSeNxXXNXBiHnQHRoGHfPQxc2l++Fp5PBapbpt4ezWTzKMltwgFJ QCSDqiWdCY3Li07INSwnakm9BdqLEkLt78EfvXU9AOfraLKtbEbpeqvi0DsV/1FP+Mj/ q6UX7WjtcscwxKVWM5HSgRPpGrIAG8Qk2LkgXXCAeEtyBKafsOo2tV0VJW7/21ww59Pg I/343EZRrlbK5s9CHQHGQM3+i28va2zR14L4HCKPn0O8zLD1OIdbREssRjvjQAJSPiwC UTviP4nZYujjHoNlA37DEnJqaqG366Zy0DEXFWf/Lnx6oscwOdd0Nm7BNXYCRjoJxvjc jicA== 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=eXf0F++sFkX9bibDnkJMGNjK/ieleo7zAYXOYOoof3s=; b=i1OkHKVobei5lPFXzq3BK6a299nXXCjZCwyx95l3j7jFVtysn9SxCIctinTRX4IHi1 Ir+Ph8K4/E8wSXT2AgvMpZWiZHYOiCb5BtQjJGPaQuS/GZsH7rhbRjCE2JH6fMMBU44z ahtZQJKUnjcBlWBbynhGaoMXFUZk//O2MjcFKbxm7ODWuuwAlm22+PWGZKOs+n/XNfSc uFBCZM2URGhv7aMBWfQKhZ4q2uezec+wpb3YY0gb3zJXw5di1EBe8Y2+RgqPa3Hpfvqp /HRPRgJbUJgdmWorG7i6e6wosgTrkc560iM6hOwTDmjEaK7uaAq/9eDYQNGhPXDGBpzq iWUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ijd0a1np; 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 v24si8821759edb.215.2018.01.08.09.48.05; Mon, 08 Jan 2018 09:48:05 -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=Ijd0a1np; 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 F2A8FC21FD5; Mon, 8 Jan 2018 17:42:33 +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 4F96FC21F1D; Mon, 8 Jan 2018 17:38:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D90B4C21FCF; Mon, 8 Jan 2018 17:37:17 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id D384CC21F68 for <u-boot@lists.denx.de>; Mon, 8 Jan 2018 17:37:13 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id y82so16766557wmg.1 for <u-boot@lists.denx.de>; Mon, 08 Jan 2018 09:37:13 -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=ZDXvNopNZ3MxjDFrb4STkYo1ABudP+GjI7TZyqjNaD0=; b=Ijd0a1npwEDMPrkZg0HRKxachy81uWftgSq43rMDSDT4tx+1X92ze7GU/CqEZBSDnG 2CC3b4oluCj4foCVTkkJxsEJk2UBTdZPAShvOp4k7VxW4cssUIxxA3Jkkq1/Ya6quvuD X6UCnI5SodxXHMs36vaPd7nc5gmNcBgopdgSk= 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=ZDXvNopNZ3MxjDFrb4STkYo1ABudP+GjI7TZyqjNaD0=; b=Rjy4TZfVkfVabv0ShRun/+DC7rwVmUzU3PCUROL4kj+N4fizuM201YbfaczhCf7vGe G1NR2sUOYgl42ucwvWEkAb/YYIP9ZaencBXtKIvt11fkLZQam7Ygytj7Df47LRHXx/kL /Q7koYpVrUQdREhpnsclVP1ybHwA9oMX5VYf+D3I8z7P00PhFDdQDEQ5KDwIK5AB+BVU MiWbxgWatOjvg6XqYhcUJg0SC6QUvN20MsS/GCCFwh/BIfCIM/zsUBfpWulXVnt4ri/3 8Noz88OWL+NQ6Bg8Fqypkllq1sdRh/cw4OBregi7dLTZ7uiL1WM6mj0hzQWy/FbPS/ju fgdg== X-Gm-Message-State: AKGB3mI/y7npOKI6vSTuWrzQuexgZJodoZB4jeofAaKaIYte0yNiPSFS ggayJQlz1hue5Ifl7EjtNXsu9id72fU= X-Received: by 10.80.222.66 with SMTP id a2mr16939742edl.236.1515433033220; Mon, 08 Jan 2018 09:37:13 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a38sm7160033edf.3.2018.01.08.09.37.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jan 2018 09:37:12 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Mon, 8 Jan 2018 17:36:40 +0000 Message-Id: <1515433001-13857-24-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515433001-13857-1-git-send-email-bryan.odonoghue@linaro.org> References: <1515433001-13857-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v5 23/24] 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 86b4018..f39b320 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 inline 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 inline 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> Cc: Breno Matheus Lima <brenomatheus@gmail.com> --- arch/arm/mach-imx/hab.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)