Message ID | 1516740120-948-4-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1995157ljf; Tue, 23 Jan 2018 12:46:43 -0800 (PST) X-Google-Smtp-Source: AH8x224fLuVM8If3nv5a/eYNTyFiwGh2mjsQfDXZOvXBfaebcXQxEOM/V2U3Vdyov5yKaeErIbfg X-Received: by 10.80.231.129 with SMTP id b1mr20824516edn.219.1516740403885; Tue, 23 Jan 2018 12:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516740403; cv=none; d=google.com; s=arc-20160816; b=JFvUNtiJw7dzxmoNtuE65u9I/Tyc888wmuMM+qHxm7LTWrjxy5mW3H2trvv2qgHBDP siNzL3XtZGPV0YM77Af08XoAG7ivVtF5RpiCb0GKgFhWBz5PFO6/o/FLmn2UOMLAfSMC 2w6Mq6GW7yBeEZkeGbR2jejhm5TWxssDDxVrUDEkZOopDJrfpKeLD5b8ka2AzWfwihFa PeFf9oc5qn1cUmGhiED6vsTCV6hepMMpUgmkfejhTriOEH5G0q/TCwPqfMEp6zU8ALku AUFSPrvuBkVvK8xCaNzSVklapYwdCq5wi8aJVCBXl/8XwYQGYxXpvYP6wsmKfUzfRakl XRTg== 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=+HwRYbf7MEs4fz7hMvmA4r5CtLSPj12HQ/fxGwTvpQ8=; b=tWVi83e1RtD2VmeEl7/rQ3InyWGxwlaQQspJfLAlNbDZsVw3zGtPWa+0GZ9Zf0LWjP lyfD/R1hjvJRrzU2cYhxdRef6FGUjCgjlWqicWMoKDnkueabKvVW4YKk3HKJPjPH8ajJ 8g1AQ1j8FmeQeagbuyQ6D3HfXR3PXyCtnDINvamFct6VtFqqdQODnOnsY6aStjM5QC2V P794rfSTrBoOTok5OIkyxo6rojALeX7EUGnFDDA3SnPUfpvKft3CBpzC8AFSaEx4Ne6d M6l8H7c+luS4KcW0raXMRbaTLfNfZ8FmT728iOXCNKumQf+H1o6Oxlz4WOc4qnUa3N83 mhQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=SFFqcCow; 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 n1si7248260edf.548.2018.01.23.12.46.43; Tue, 23 Jan 2018 12:46:43 -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=SFFqcCow; 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 40E1EC21E76; Tue, 23 Jan 2018 20:46:42 +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 A5820C2215F; Tue, 23 Jan 2018 20:42:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2B218C21EBD; Tue, 23 Jan 2018 20:42:09 +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 144D8C21F10 for <u-boot@lists.denx.de>; Tue, 23 Jan 2018 20:42:06 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id v71so4470898wmv.2 for <u-boot@lists.denx.de>; Tue, 23 Jan 2018 12:42:06 -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=D3sScOBXVrDfJK8H51bDHqCJRdkVs9+Z4uICV0VXhv0=; b=SFFqcCowd21OSm9Q2Z7cw/ki70lj5CPOvsf6hpqI0FKU0tYLk0SmGvDPjMZS/7b0dy SRLsNAvLsNvkrqMZSLbvTSERPWkNRtj9C+5Dxy5f77cdiHUvvcofKEGahtvOfozAFaKA Wq3BcAzeO0OhJx1cMQBSGiEJQrO7dGHpl7CUM= 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=D3sScOBXVrDfJK8H51bDHqCJRdkVs9+Z4uICV0VXhv0=; b=HUMcvFYw8MOb/5QMWKQTojs5PGXLu+miTDc5cHXHS6IbWJbg3zVXObFBzkepaQlD/i b2dIfYPwRBZXLlYgHGdnOjuTe8FMSHxaPJpI6cUlfOyGpjXUiatvX+Poov7XighaF1qj Ol1FRE0eSxNP2nvmFWINI5fOeGidBiLeuie+NjDYGll8/VUaAvqRpVcfJ+k68FYTxRUe kkMpeevGtR5U5/tgCleS97DzGzqWX+rwSPKUQI8lINGqT7Xf8dkYE55iz01ZvKwOwMoH PrrRRQ5YfPFHK+P4hKXeWHaJUnd4GVmg+KNaTORtOiVTf7W25j4xLy/QF9WfoNg/oocX rajA== X-Gm-Message-State: AKwxytfbwjvesRUQEj23aJ8k+qKvicuZpuJazC918R6BZ+4wqewLQpTX 1PKfH4R9mUlVvF12nKzEswpF+yqc4bo= X-Received: by 10.80.170.69 with SMTP id p5mr21541590edc.10.1516740125444; Tue, 23 Jan 2018 12:42:05 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id k12sm12400896edl.86.2018.01.23.12.42.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jan 2018 12:42:04 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, trini@konsulko.com Date: Tue, 23 Jan 2018 20:41:54 +0000 Message-Id: <1516740120-948-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516740120-948-1-git-send-email-bryan.odonoghue@linaro.org> References: <1516740120-948-1-git-send-email-bryan.odonoghue@linaro.org> Cc: harinarayan@ti.com Subject: [U-Boot] [PATCH v3 3/9] optee: Add CONFIG_OPTEE_TZDRAM_BASE 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 |
Add new OPTEE bootm support to u-boot
|
expand
|
diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 41c0ab7..a3b7332 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -14,3 +14,11 @@ config OPTEE_TZDRAM_SIZE help The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE runtime. + +config OPTEE_TZDRAM_BASE + hex "Base address of Trust-Zone RAM for the OPTEE image" + depends on OPTEE + default 0x9d000000 + help + The base address of pre-allocated Trust Zone DRAM for + the OPTEE runtime.
OPTEE is currently linked to a specific area of memory called the TrustZone DRAM. This patch adds a CONFIG entry for the default address of TrustZone DRAM that a board-port can over-ride. The region that U-Boot sets aside for the OPTEE run-time should be verified before attempting to hand off to the OPTEE run-time. Each board-port should carefully ensure that the TZDRAM address specified in the OPTEE build and the TZDRAM address specified in U-Boot match-up. Further patches will use TZDRAM address with other defines and variables to carry out a degree of automated verification in U-Boot prior to trying to boot an OPTEE image. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: Harinarayan Bhatta <harinarayan@ti.com> Cc: Andrew F. Davis <afd@ti.com> Cc: Tom Rini <trini@konsulko.com> Cc: Kever Yang <kever.yang@rock-chips.com> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Peng Fan <peng.fan@nxp.com> --- lib/optee/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+)