From patchwork Mon Feb 26 12:35:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 877824 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="E2pCyrjm"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zqhGx2jSzz9s1s for ; Mon, 26 Feb 2018 23:39:37 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id D8F45C2209B; Mon, 26 Feb 2018 12:37:19 +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 6FD22C22108; Mon, 26 Feb 2018 12:36:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 856DCC22100; Mon, 26 Feb 2018 12:36:18 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id A9931C220D8 for ; Mon, 26 Feb 2018 12:36:12 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id w128so11160945wmw.0 for ; Mon, 26 Feb 2018 04:36:12 -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=/pD+xsWkk1mzR0w8Yj15R0YvITOa33DACjzsp+TtxP0=; b=E2pCyrjmF+EiBGuQ1J6HhKZTy9svmDWoMaRcSPWj7HsoLp2F8KCCb7rqA6TNpk4TVu /QJLSezRbXNS7118hy/Pe/K85V/f2vbMCeUqTLdKjcX5mcuABVSLS5Ig1j+w9WyMeRRF aep+31FEAERgHfd1pQ+dA2K+Brl4eYphk0Qrg= 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=/pD+xsWkk1mzR0w8Yj15R0YvITOa33DACjzsp+TtxP0=; b=aoCEbzOmmc/a5qub4V2IinzOk1XD92oNg+FlBnSk2ofe+fP4HAWftQZU/veh7AMzkQ 8y1OVG7vyFTe7Ho3xyglfa7ayUTDtSShfmzU9+IEk0jeX9O/wNBYdbQ6LtCQtS6rYDBY FTH5xKsePSv27nF9ggDETvF5S2ZvnlTJTGLBb0ANhKAsB336Sqi6fxd4UMqwTflwkzI5 GSK0xaE+WSwDVnJYWHdO+rXwGl37RUjhMjWxJjsKfEH31K18g1wN5GPt873v20+dnFOb hrm+nD9a8XDBFcW7t61dfY6RZFAMITmb6i9518GlZpdr8mAsFgUZd2IkFAviF5zvjvI6 LpUg== X-Gm-Message-State: APf1xPDLgQFwYdC9ekG6FioVCfyngvxpdi2ZjHcvUr6A9FSBuK0oFlgv iUX9TxRp9dYCus0XfZyO0dabzQOTkMs= X-Google-Smtp-Source: AH8x2272GMg+gkVQcq8RCXpxuTWRfVZv3k7/Q4eBhT04wyz10osEKfUMNWbaQoCXKheoNQOvGFDcfA== X-Received: by 10.80.146.206 with SMTP id l14mr14064156eda.54.1519648572101; Mon, 26 Feb 2018 04:36:12 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id f6sm2493967edn.45.2018.02.26.04.36.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 04:36:11 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, trini@konsulko.com, harinarayan@ti.com, afd@ti.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, peng.fan@nxp.com Date: Mon, 26 Feb 2018 12:35:57 +0000 Message-Id: <1519648566-12061-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519648566-12061-1-git-send-email-bryan.odonoghue@linaro.org> References: <1519648566-12061-1-git-send-email-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 03/12] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 Cc: Harinarayan Bhatta Cc: Andrew F. Davis Cc: Tom Rini Cc: Kever Yang Cc: Philipp Tomsich Cc: Peng Fan --- lib/optee/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 2ca7be7..9e9ef39 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -13,3 +13,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.