From patchwork Fri Mar 9 16:55:24 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: 883787 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="dZAi6V2m"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zyYTM6gxSz9s9h for ; Sat, 10 Mar 2018 03:57:27 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 8C6B7C21D65; Fri, 9 Mar 2018 16:56:45 +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_DNSWL_BLOCKED, 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 5630FC21C6A; Fri, 9 Mar 2018 16:55:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A4B58C21DED; Fri, 9 Mar 2018 16:55:42 +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 42F2FC21DE8 for ; Fri, 9 Mar 2018 16:55:37 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id z9so5036781wmb.3 for ; Fri, 09 Mar 2018 08:55:37 -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=JqMardwNHUiMRBwjh6/JFvFB6M2jc+0V4mjRrdamGCA=; b=dZAi6V2mrQmpbkTzcnmDfGWgV5kBo2NF/ZSNZYlxwknBm+CXpeq80BT0GksfAyxeLh 6GqekesyQxoLCorx4QjydGFUQEbe0YEyJJIbXRdvzBEbHHWbzbgiuaDY5p1DGhwCS+gu Qe8Js4KTtqz8KLmaISQqaFCpNRumKApyPq8Z0= 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=HsXtKTaZkcWi1W543tWyNOSCfCcAO71SdKxMMbvR4AnLP6dlE4Q4BpIElehuQ6B64+ Eksu/YaXT3d6bGbrNJN/VqGMtCLb+wMoczPvgBVxPDxnWZo/gQhUGGy6MG7Uf/9hT9O+ RXQCbiY+FuMPwivC99SPLU6hmK8O2MaMDYcge2XB1AyfSPeIpZA3MyeDZCZ+sfO7+SRK 6Ir81w2xE4lEk+J9DrBxfg7Q9nRCGAN5WsZyEF9o5OXfGXn7+GB1utgKNgyPxCURde/s 4Joncjhq4ElzUHnRmKctdkoPMaogoUQjGULDhTmgmP+UfbRg5llLU+sVeMxYppP/vskT F4Cg== X-Gm-Message-State: APf1xPBDvVxHxb73mX6NhEjhed4+fBM0KSVxha6aBH8pP6Gjwn55YgJW OCFoCpW76jFjzCnHgWWnLLrSQNuxD34= X-Google-Smtp-Source: AG47ELu8Zk98TGY6PT6hZ2Rqrv2JdWWQ78T6qEPF3M3TF9xarA2SvQmQBFc+jcxb/x+AiTbOwUoVrQ== X-Received: by 10.80.209.216 with SMTP id i24mr37335617edg.213.1520614536759; Fri, 09 Mar 2018 08:55:36 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e40sm960335ede.15.2018.03.09.08.55.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 08:55:36 -0800 (PST) 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: Fri, 9 Mar 2018 16:55:24 +0000 Message-Id: <1520614531-2164-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> References: <1520614531-2164-1-git-send-email-bryan.odonoghue@linaro.org> Cc: Harinarayan Bhatta Subject: [U-Boot] [PATCH v5 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.