From patchwork Fri Apr 13 15:31:10 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: 897996 X-Patchwork-Delegate: sbabic@denx.de 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="bulD5IQL"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40N2662G9hz9s16 for ; Sat, 14 Apr 2018 01:40:14 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id F2FB7C21DF8; Fri, 13 Apr 2018 15:33: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_DNSWL_BLOCKED, 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 2512CC21E2B; Fri, 13 Apr 2018 15:32:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 01ECCC21E08; Fri, 13 Apr 2018 15:31:35 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by lists.denx.de (Postfix) with ESMTPS id CE79FC21D8E for ; Fri, 13 Apr 2018 15:31:30 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id f7so2252390wrh.6 for ; Fri, 13 Apr 2018 08:31:30 -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=QYUQjDXk16GnMGixelcOEuFlaSZ/V4B2B/jP3GH8tgI=; b=bulD5IQLQYi6wMXCyx54DxGeWNEltk5+e/LVf8/i3Wo/qzSJRGwPAJALRZKs0QV5Ai VqFVSqKd2yXWN9JnXZMcXvYvnfbShqkjrZnrQGfdz3Wo6FHkR1HCU+QvTkw5M8Ys0hI3 nv4EYn1em+vhyPVTUg+wgnvrVgmJgzPaIPpUE= 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=QYUQjDXk16GnMGixelcOEuFlaSZ/V4B2B/jP3GH8tgI=; b=dh8JolfFomawc9FbLQM4/qDYmBVJgSrYTXoredLFw2BYn0O8egluM5kwv47xYrW844 aBwD7OBse1YgWJ2Eazt2dE4XHpn/flaOoHOO0/x22l5NNPCezRwoEXo7Ev+HfvoIPi/C +n9zeF7Cr8qJFUs8WKw5GeDs/JKRE+hiDJtRI1Xo6aFNsIoudLlQwOwFdrBWPIZ4r9lK C5ykAeBD4KS9lzrdKTqJ9c2qrB2SmiPahS6FjRydoFoDF0K3NVR4UnpFRYUmZVzAT79h Be+rvdeCBT9bWx7R8P8Rb+PnQuh04m7Tpw1M4P3PlSz9Y5jjI2zUgrW9yG/RA/Gb2aoA 2dtQ== X-Gm-Message-State: ALQs6tDN1IwCRGWGd5Ysz42XlP87ePWRtNudsJzdetaplClc941miSJg qWDd6j1+a2x5syQRZlIIH25yZYmMa8Y= X-Google-Smtp-Source: AIpwx4/27JG0du65wJQVfzjlc2U47L6R9gzQumkC8xQ5gpGIGpFUVJS1U1ZosxOxQAi964xgz9kuMA== X-Received: by 10.80.230.19 with SMTP id y19mr20361506edm.160.1523633490325; Fri, 13 Apr 2018 08:31:30 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:29 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Fri, 13 Apr 2018 16:31:10 +0100 Message-Id: <1523633481-20914-7-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> References: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH v3 06/17] warp7: Print out the OPTEE DRAM region 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" Right now a region of 0x300000 bytes is allocated at the end of DRAM for the purposes of loading an OPTEE firmware inside of it. This patch adds the printout of the relevant address ranges. Signed-off-by: Bryan O'Donoghue --- board/warp7/warp7.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 56f0cdd..da52b18 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -181,7 +181,17 @@ int checkboard(void) else mode = "non-secure"; +#ifdef CONFIG_OPTEE_TZDRAM_SIZE + unsigned long optee_start, optee_end; + + optee_end = PHYS_SDRAM + PHYS_SDRAM_SIZE; + optee_start = optee_end - CONFIG_OPTEE_TZDRAM_SIZE; + + printf("Board: WARP7 in %s mode OPTEE DRAM 0x%08lx-0x%08lx\n", + mode, optee_start, optee_end); +#else printf("Board: WARP7 in %s mode\n", mode); +#endif return 0; }