Message ID | 1515760819-15116-16-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Accepted |
Commit | c0a55b7344d4ed0b003e3f9696663539f50aaacb |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2021946qgn; Fri, 12 Jan 2018 04:50:29 -0800 (PST) X-Google-Smtp-Source: ACJfBov/kzGKmFgdRvk8XBbfsWGDNliSuE7Ogjd+EuDbXuUQ3BcTeJJNvhmLuEzIVKhZnhf1RQnA X-Received: by 10.80.177.178 with SMTP id m47mr10937037edd.45.1515761429246; Fri, 12 Jan 2018 04:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515761429; cv=none; d=google.com; s=arc-20160816; b=vXl3TGWyX+TSYSV5wh6gH+9mJ4KCs3OYGyvyuEJ1LffU4GupdV/fDiiixX4biP5lht jBux7iI/nhzmD5SLT5NS6mHLF4YOoeJ3x1MPRHxNfeZa2mcBpzJf/Tgq1Dgj17gLsVMX PPov4bcpVwc9VkbFpmC1VUrAS6nLynl4BHz0FAkhSG5ePtsMdQ50f81mTY5TtWynAQe+ moSAbG+EVYvo+jyxfy1ABhB1ImHlesn/SoLm/ALEykNbrui+iXUiW74wxj2CrgziLDar b37B+8r/puUY5Ycy0NUWc334Tj/Fn//FmW5bhWdDC/GeiZr1oUTfkX/SR4fTRWkceM44 OWkA== 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=2UGQwrSRZY+bR4BKYI/G8ULT6ER3tL+8W8Cf9jGDAxQ=; b=czn8vgPlMOf63b4kEdA0kYkXSKF6lEBa9VDSn5ea3Ta+qnyqN1vEVDZjEOmJvjpjbd UNwwKklCmVZMcH/HJjonMxB8kGsBswiM7XGQcbDUNUr067jW4nica7aAE7PVkp+iQlMn Wb7VdzcuzaFx2ALCQWVilkCeZ5SApfsYkjoWamFYbwNC1cd7J/mW3l4uPZ9LcYTn234U c9v3MXhH88kZrNq5kqn/YI4E71Br7pn8BatBT3UX9qexyjotwXGPx1ReK8b1WEgU5oeY I3skS786epfLloz6dJwxMy5LJzVD2Uufh8FH6VjRYY7amzF4+LuzY8TxgSMEfamWF1uw /cFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UDQ+tuhj; 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 f2si391284edc.549.2018.01.12.04.50.29; Fri, 12 Jan 2018 04:50:29 -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=UDQ+tuhj; 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 CEE4BC220AD; Fri, 12 Jan 2018 12:48:25 +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 8E84CC221D6; Fri, 12 Jan 2018 12:42:35 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3934BC22235; Fri, 12 Jan 2018 12:40:46 +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 0A2CFC221BB for <u-boot@lists.denx.de>; Fri, 12 Jan 2018 12:40:42 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id g1so11799173wmg.2 for <u-boot@lists.denx.de>; Fri, 12 Jan 2018 04:40:42 -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=joF2Ln6QSsowM2ZHzolpQ1A6bZ4GBWxrB4oUz4SoftY=; b=UDQ+tuhjZ8v7RXuJmpRX+8yLo/egMmvXICEttzSuHOBsIU74JGSUH69iOu3CKIsKBE dsI+uHHCodb4N7sDgRrMdw9exRyE/tA5OipmfrBlep9m4mWHCsc/jdW9Vp+L7qPqGMYX Vx1978ZuiYvVyYLi7fW/v2XzDdM6zZUGMRYF8= 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=joF2Ln6QSsowM2ZHzolpQ1A6bZ4GBWxrB4oUz4SoftY=; b=VhZzvILPiBHTZ2QZe+JBUWmgMyXcAgyMeriV76UjxqTa4DuOtqRR7xDe20/cHSbJ/9 AG5WJBtd58ZCrhjl1dCIOx7AuGEDJ0r8fQnUI3PPqDbjd5usXuDhTILgDoe611/FaXl3 4f+U9NTTkc/+8Gl8Gcndwey/ZkJH3b+Lj+9HqxnB5JrKKD2ntBiVM9+8nK4Wbvv/fzZ0 8MWjzmbA9qYm+Wa2LmiziTj8gc2Y/hICMqiKGdIedLnT5579XPjD8IzavkMWpkZq17Yb oYDTXh2S4UC+fU0pxheje82WGUQ4hBck2j2JtW/LQiP2taxNRWvlIJB3+UG8ATKerua2 Yxkw== X-Gm-Message-State: AKwxytd9MvhAPGMSdiJyS5b+dmA0oVhcetolwvM7TF7Kdk15+FE/1FqN 4w1J1oMQK8i/pB5KK0fthGrm28sUTjw= X-Received: by 10.80.153.45 with SMTP id k42mr11796550edb.21.1515760841514; Fri, 12 Jan 2018 04:40:41 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id w2sm13893585edb.4.2018.01.12.04.40.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jan 2018 04:40:40 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Fri, 12 Jan 2018 12:40:09 +0000 Message-Id: <1515760819-15116-16-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515760819-15116-1-git-send-email-bryan.odonoghue@linaro.org> References: <1515760819-15116-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v6 15/25] 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 364bd6b..2a18ea2 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