Message ID | 1514596142-22050-17-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 90csp5321590qgn; Fri, 29 Dec 2017 17:20:25 -0800 (PST) X-Google-Smtp-Source: ACJfBov7BzNmWS514NoiMKNPv6zGVl8NA9ZUS61cyu+U2+Ln5UfsADiw/2PCtj4HB/4jicCVNGyN X-Received: by 10.80.226.198 with SMTP id q6mr47293653edl.290.1514596825164; Fri, 29 Dec 2017 17:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514596825; cv=none; d=google.com; s=arc-20160816; b=lONDhwAKqef9A42U5zC62JClbB9rqtZTL9CTXTVajZ1uSYlsEfLAmSrOsKSj9W9XYS cs4/Yxj9SYCoXDpH6VyrTP1dTcDpG1E6Hg32cQcB5mH7Cw3w08KdzO5wQ57mG0AUnTBX nOxIMbWmZUE64+LWV/rRnPTgLzdyZP5FFes5erHlcu/DdzqgPwYkZ1bJOcv/hY7Uha9Y AUeDIUemxXmb/VmzYSRZAwAPp9wKMC1Dv+k96BrGbtHvr4gtxn7h8nEog96ck/FzZ677 lnbEkHHqE2l8Uw2fj5/gGK3f4a2E1rgdfZ/K91O68Pf5rjw9iGoJfAnD7k0qI1Hsf1ZB I10A== 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=mzuxfnTJjNtsJCHiP9xNDxxxKVy+wTtJHVVYWBFjUVY=; b=PakkqofUu1Merj+mrucJnuJF5Dzvq6kLmbAWJY+1zS6sxrnDzNwucADt26xXPcBcNP jF6xwh/8RnZL6Rel5Z6O4OeuIREuzcu8XhDUm43QmHWMEa8xgxCo1Fo2b3JvMCmJYTvx uj643/W0drEquM5qbPy2mfIVHcR8BCQXAIw1xCb0SSbAmZZ+2hyS3hM4QX9RgblueK4O c0LD7mjmSlur7JjEl0Pn1OHZq05Tfo0mQ6EcNWpetN8BoO7WlQyzVxzxnav58S53vJ/E iETF4lL2177PrqzO0bQK+3v/xtoFPFKJHRNYN4v+2c+ESDXpCZrkBbqU0eAUgiCtGwmF o/aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=BxuLn56D; 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 f14si965741edb.205.2017.12.29.17.20.24; Fri, 29 Dec 2017 17:20:25 -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=BxuLn56D; 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 C8AEBC21E41; Sat, 30 Dec 2017 01:14:29 +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 EEC3BC21DF3; Sat, 30 Dec 2017 01:10:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4BC97C21DBA; Sat, 30 Dec 2017 01:09:26 +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 08781C21DA6 for <u-boot@lists.denx.de>; Sat, 30 Dec 2017 01:09:23 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id b141so3827215wme.1 for <u-boot@lists.denx.de>; Fri, 29 Dec 2017 17:09:23 -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=bRa4wGLzLk7I8vWO5pXf2rFEnTfCcGvQeNd+XkL9i1s=; b=BxuLn56D48e9dukchFRCUPKxEV1H9i1DgHWaQn/zC6iqlWfCZm2G81jyzfyIT6ooH9 cZwcn/YMKKwFx+HiCfXuihczQrdiu+NXMw0oc8GBZ1M9Mzwag5rmQq6DZhaRP9JAzHjv x+2eqQF7ODhssEr/wsI0BIQEDdsMqyHS5/EDk= 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=bRa4wGLzLk7I8vWO5pXf2rFEnTfCcGvQeNd+XkL9i1s=; b=uBDe8yMS4VwPD9V87RagvUzF7lVIxQbE2Xnb3bk3SVLYA8xfdOyhy3+iiXOSXevHQh b2pP51HQBKv9x9tfH65c+FcCP2MdexVg6LChCwP1IblW0Pc6dzhqWwYn7ISQS2xA4hnR VrFkRLKFwEpUkEjAq91VsInz5nPQ3qhIZkTNqrIXAZHQP8ed8EKz9iWCsP5+95S+eXCV V04b9uzH2T+amFPx3OmVowiuDqIMxQhkKTeZNAiuwWImuTlysay4aMlHhNEMtCIoOEQO 4vjCmy7Q/Efdf8AAh0Tx+aa0HXSDWJAZaSjJNyO4RtrymzjiQXOx1rfJTDAsSz/nLNDm Wx1g== X-Gm-Message-State: AKGB3mKFt12Ojg38fafIibto2ohQnp8du9DVZUwT0NO+73vSqq6bG0s1 /i0dypsfAMZSYW1Klsc7wTSU5COhMMc= X-Received: by 10.80.144.168 with SMTP id c37mr47485051eda.182.1514596162458; Fri, 29 Dec 2017 17:09:22 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id f9sm26484148edm.83.2017.12.29.17.09.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Dec 2017 17:09:21 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, brenomatheus@gmail.com Date: Sat, 30 Dec 2017 01:08:45 +0000 Message-Id: <1514596142-22050-17-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514596142-22050-1-git-send-email-bryan.odonoghue@linaro.org> References: <1514596142-22050-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Fabio Estevam <fabio.estevam@nxp.com> Subject: [U-Boot] [PATCH v3 16/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 7c3a621..858f2a7 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(+)