From patchwork Tue Mar 13 16:50:29 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: 885291 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="ZcnDFSTa"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4011Dc1MCdz9sTG for ; Wed, 14 Mar 2018 03:54:56 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id DA7CEC21E08; Tue, 13 Mar 2018 16:52:11 +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_H2, 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 006F6C21E0B; Tue, 13 Mar 2018 16:50:58 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8A32FC21DFF; Tue, 13 Mar 2018 16:50:51 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by lists.denx.de (Postfix) with ESMTPS id A1EA5C21DFF for ; Tue, 13 Mar 2018 16:50:45 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id k3so769300wrg.6 for ; Tue, 13 Mar 2018 09:50:45 -0700 (PDT) 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=JqMardwNHUiMRBwjh6/JFvFB6M2jc+0V4mjRrdamGCA=; b=ZcnDFSTalB6pde0gAbcRaXyWY3JvsWQdDKM4x456DSJx04Wke+imbwiPbX+Pc9PGTG 7bsI3p+p4urhSXB4palwRgo2HFoQCyxGgCKypj5QgxIjvLKEVVz03/5jsaic9+2J6k/U 7DCFuu0pooT2Tzljv00x7kntAmATIr02JD4BY= 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=JqMardwNHUiMRBwjh6/JFvFB6M2jc+0V4mjRrdamGCA=; b=BirOeRLym34vRm2rJBsUaZ9aNtXEh6uEFl5aKt0AR9RdKwuJTUR0eMOVN+tV+6rhYD 819MGSmAXI8WV3mMbDPWlekzsehnsnQplV+vfRqBBoWYjAVSUKSwR4qF6dcUjqQC2vLh q05YePIifAMA/99vvKt6rGBCN/EUh0SCH1K87WsLWxrpidQtJkLgoImejmJM3pQ+ji8F rv5ScHggCHd2pg6dK4cbql0BiqZGu9Qkj7cckAgVad2gl+U1ESHaoBQZPmz1HRjIjG42 DOrDFiPbDYtJ9adilXLat34EdIWyCaUJSZrCGQ2ilPzbmL2thojQm1gFjuPNtYB/8HRF 2HFQ== X-Gm-Message-State: AElRT7FmY+zapgayrSNjf6knqtVHnX4KT2d4shP5rvnm7QKZs5SYUKZ3 tCN/p8MWrB4SuMxI2sU3BVh5QQCiFGs= X-Google-Smtp-Source: AG47ELspKtUAqBBJcb21F2LrlB1UCJhx6TbxthuGnfxGGEmpSmBKNk2JsXqXeLLTblYvsq+v566xwQ== X-Received: by 10.80.201.76 with SMTP id p12mr1592940edh.199.1520959845116; Tue, 13 Mar 2018 09:50:45 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id 33sm476671edz.37.2018.03.13.09.50.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 09:50:44 -0700 (PDT) From: Bryan O'Donoghue To: U-Boot@lists.denx.de, trini@konsulko.com, afd@ti.com, kever.yang@rock-chips.com, philipp.tomsich@theobroma-systems.com, peng.fan@nxp.com Date: Tue, 13 Mar 2018 16:50:29 +0000 Message-Id: <1520959836-16105-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520959836-16105-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520959836-16105-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Harinarayan Bhatta Subject: [U-Boot] [PATCH v6 03/10] 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 --- lib/optee/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) 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.