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: 133401 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp856537ljb; Fri, 13 Apr 2018 08:42:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48B3dhD+I4QDgvIz6tAkPEJR6+/5Mt5bnWmH02j6PVaRFVRXQ8rDvaPDgnCTOYQKwAOszjg X-Received: by 10.80.167.101 with SMTP id h92mr4019703edc.218.1523634151106; Fri, 13 Apr 2018 08:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523634151; cv=none; d=google.com; s=arc-20160816; b=RiXEerGuNfTtZOWnHgwYoQsiBOAGtJiHUwSIevYKsZqXghwhuk/mMBenoCHZmDpABK dgVN47QXGO8/CZ966PS5AWwO3OJ13nCzwX1amNM/vZ4l7CWKyL8W3en6nNFJmXBlxCHc xqB0sytvBEze6Ntw2RxsQYDdqr2AttICxMBXfe95Y39sB92f95/SPiU4YLr+QFZYuOL/ 49ejAk2uy+5IJwBh7Pt+mzx10LPsxCvTOZqSDl7Fa7dES520hiUNl6dGoefyj7vStjJq DA/en1AUoH5jPVFrn1cEDj2PHMDm8uAss0efs1iD7+iGAASzO7uB90YmykICI46MJ4A3 2rIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=RRfmoo63du375tRpAsTIK6bsdpqn75A04iMTbsICoh8=; b=V9EkqVbmZ3grbPWneTx2nZKAgXZWpSUAvfLTQnatptco+hGGnfHMD7d7U6MmNS1sZa PVsGN8bzETENyZ7HvfuvP9jagvcgtIjQ15nzEyx/tiGMBYUReUgTzV0mhUqjIjM8EfH2 FhjLymvd4ppQuT2ovADlhM6viYmPb9h208G2kAnKaYjsX50Ey+iJ+SGp4BeLC9YIvClm imv/q1VrRYNonvwKwsZFSGiGeS6BwjhkwHUHCg9ThBVMs8o28uIj2SFMDqJZRp/G3Ew2 6+X67byfqbJid0m914GxCfSX8nDeHv8LxxvvuRsGlAlKG5JaK9b3qpUD4ScxhlpyNMD7 X9EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bulD5IQL; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r2si5184111edk.294.2018.04.13.08.42.30; Fri, 13 Apr 2018 08:42:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bulD5IQL; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id A2356C21D8E; Fri, 13 Apr 2018 15:33:55 +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-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; }