From patchwork Fri Jan 19 19:43:20 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: 863784 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; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="W4fDe3A3"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zNWbZ0gqQz9s7F for ; Sat, 20 Jan 2018 06:48:42 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id BA648C21FAB; Fri, 19 Jan 2018 19:45:56 +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 882C1C21FA6; Fri, 19 Jan 2018 19:44:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A34F2C21F49; Fri, 19 Jan 2018 19:43:39 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id 0C0B7C21F6B for ; Fri, 19 Jan 2018 19:43:34 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id 143so5468840wma.5 for ; Fri, 19 Jan 2018 11:43:34 -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=W4fDe3A3B1ReWzD+Qu/ewiiY8cWykbbnZdyFKqZEX4jEEZ4I0omrK9yTQyC4t1UGts zjZ83DuwGFNKGthiQ0/T+g9Yxdi1V3LWANkZ2CqjW4P5PCvu15cshUxg4B72kubAqWDw 47gAQP/kUcqlfXQUOi0E/zshUo5+6h6aAUQGA= 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=IzkoNncXLT0ywVD+LgZRcdGzqthYXogl0yLuE3r/UqICUgqlIvTiaoJsX+gXKEXJ8k /umF2Q4J3Ba0sgeA70wVVnzxXd/a9wBImxu0SRLSGwJ4kToQnW6+HZa/Of4ksXJAUw1h nMrZiC7HZue7FXByrnmrifNDgRYbaGf1kW6dTuH8/kJBt4chmWI/sZeHABvfMMMcaMLz dlBxcpz+bT9DldfD1fNVxVWO6xF+hJL2IhXg9ymmCMIY0iWOF2+UIgdHib6mceUzfeH2 /GRdpDlyBi3I6y9O3alPryKAxbeaGt3AJt6akjTL2g14NMD59uG29QqXHHNwP0pxHWJo +TIA== X-Gm-Message-State: AKwxytc+oNV+Vyr2dd8c9UvJlffn9sEuoHqKPS2y2B58/QIdvx2qBx5d 1/TlnOfB1enfAJAS99rSVjtUjisReE8= X-Google-Smtp-Source: AH8x227rLdITczugrHPm7rWWu0oA1BmrVbWcM5D6ieCtlXGKAOFpzLGrYPsvczwQ5HfvQeHBeK17Kw== X-Received: by 10.80.152.19 with SMTP id g19mr37720edb.33.1516391013434; Fri, 19 Jan 2018 11:43:33 -0800 (PST) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id p6sm5936051edh.68.2018.01.19.11.43.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Jan 2018 11:43:32 -0800 (PST) From: Bryan O'Donoghue To: u-boot@lists.denx.de, trini@konsulko.com Date: Fri, 19 Jan 2018 19:43:20 +0000 Message-Id: <1516391006-22483-4-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516391006-22483-1-git-send-email-bryan.odonoghue@linaro.org> References: <1516391006-22483-1-git-send-email-bryan.odonoghue@linaro.org> Cc: harinarayan@ti.com Subject: [U-Boot] [PATCH v2 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 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 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.