Message ID | 1514486982-19059-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 90csp3802805qgn; Thu, 28 Dec 2017 10:57:46 -0800 (PST) X-Google-Smtp-Source: ACJfBouVehTHEwmyKF2a8MUNdeqsl2fqHm641HgTpa4NC7QYiSBiAQfxfc1vQlKIh9TdCTarUHnG X-Received: by 10.80.170.87 with SMTP id p23mr42603525edc.289.1514487466095; Thu, 28 Dec 2017 10:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514487466; cv=none; d=google.com; s=arc-20160816; b=mDYHEtyw2vtRHJKfj7vRplN05N4NQk3LWxXNIfp1JvXSINcR4Lj87VSwAlSyhGawtp 1RgFqFY6+gD3VouaHvkwccUTu86o/rHOIA7vtlfmZ+XOKF9I5BBgxW9dI3U7zNxLQwg9 maQTGmuWBmo082qoBS5x7HfmIVJ9h6LTnUukXINRH8aDbnPwCCY9LiT9eEZfGn48Qp5G tzxzegIPuLoLor0rnS98HPHkWjB4VmmMGRbF1bbvOONF3YZrb0DJVMw/vYwCxRIrbtyl KpvIj6+iNi4duynvwnexKbNmFsDLplSBjGWD0JBz+AmDna7WSOy9LJp54wDTMpVfpC/V DH9w== 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=H565RPPHP3keQ4qC1H52UbVt3eRN/1Dm9UjKqe6HhZA=; b=tkC3Qb+aGnxOW2qYVOZpRLBM/Jjyt1q6+s7mu1HTpA6JqvWxa9abJBefAlI9wgy/tU wwui8idBFTYII+GvCM3P4KvzOaRMx9HfpjytjCLaApYkl1Pvs8oB92dwHoagAfz4vvsG KUOjFk7RFprauyWmISt0OJHwjEpLwrXUU25BfzU4z9YnhehMVQm3dLv31B3wc8wr1mQ+ vkpnEhLFrOkwKeZ1cCfs9gnT/NFIj5CyCXmgcI8ktS4xVstN3W4/BMFFOJ+jizfmQ8yJ zNKUD7bMLbt5apzmiARiWgY/52iYuEPu9+q3q//odeEt8+lgjWR++WpQpDrN9d99ExDy hb+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FxYE+I3W; 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 5si2061020edb.270.2017.12.28.10.57.45; Thu, 28 Dec 2017 10:57:46 -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=FxYE+I3W; 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 A36D4C21DC1; Thu, 28 Dec 2017 18:54:07 +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 9CB35C21E41; Thu, 28 Dec 2017 18:50:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 00BCCC21E45; Thu, 28 Dec 2017 18:50:08 +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 D248EC21D5D for <u-boot@lists.denx.de>; Thu, 28 Dec 2017 18:50:02 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id t8so45227634wmc.3 for <u-boot@lists.denx.de>; Thu, 28 Dec 2017 10:50:02 -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=Lg5/AkBYFxovAmDWiZQJ2tWRRE0vWh+VVPq/Wu7sWLw=; b=FxYE+I3WGG5o3pgmsDT4adQ7LzNkEWtxj735gARcht3P/zwqlkkii++H9Xmwk5Kw98 PCaQRbGo4YA9dHcJLZb+lzrGqVKql/X/Czg1zBxLeJ3cazHjbHBS6JCPYCb6a2PwduA9 Bc9UqSJiKoU45U3NasM6XEVkUM3nP/ectpFYs= 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=Lg5/AkBYFxovAmDWiZQJ2tWRRE0vWh+VVPq/Wu7sWLw=; b=tA+85MRBU/LBMP9OLO7Uf8tyMa3Un+pcrpQviyfnrFZF4lrZHUR4MvhuwEu7jzgrPX dsPJxPdKDLiYEObcOUKf6Lpzykpg2bTCzHB38bmyVY266ooPfDuMixuEtvJwizObqW+/ FOdvCT2iPT5/SzedhXQ/uxK6wr90igumoN6+e4zi5ZO4/OfFAQHQe5pFjcRjWMCwWKWt bTTuwMZ9XF2UEhW7wEPIBg+Q4JagDyOHN/kHRMjhKbBg7nJOtCWB5BuXNAa4kxgOXHq4 1pCyPuD4xbCL2pJ/v9fYZNzv3EC7zdcZ0hgmY9d2PAxL+I43DZ8Z+RYGF1xUlhw5YH7m JnhA== X-Gm-Message-State: AKGB3mKaeHHIlQxugh4xQttn7wT9FA3/TJQuOoIjvcpACemidDMZFQoG iwWbhpoiVDGOzHDf8Yx+3011wWW/0q8= X-Received: by 10.80.173.20 with SMTP id y20mr40736529edc.23.1514487002158; Thu, 28 Dec 2017 10:50:02 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x28sm35246579edd.0.2017.12.28.10.50.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Dec 2017 10:50:01 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Thu, 28 Dec 2017 18:49:34 +0000 Message-Id: <1514486982-19059-16-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514486982-19059-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514486982-19059-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v2 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 6646f81..eb18f76 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 inline 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> Cc: Breno Matheus Lima <brenomatheus@gmail.com> --- arch/arm/mach-imx/hab.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)