From patchwork Mon Apr 2 22:42:05 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: 132682 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3101632ljb; Mon, 2 Apr 2018 15:48:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48uoi2MiB2YSTO53yA3Y5/S2h7Ui4q7xa76D7rFwVUKZPBxEUGvkwEqGXos1GtD+AcCguPM X-Received: by 10.80.231.5 with SMTP id a5mr14179279edn.109.1522709293471; Mon, 02 Apr 2018 15:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522709293; cv=none; d=google.com; s=arc-20160816; b=D6mDGiPjg2l59zoyIF4MxiRCN8uhGNZ+zJOl8P2YWvVi9xmNoMnok9kdwywyWRBjuX B0Zg8GMAd186122zQv9qOa2/NI/YGDw8YC4ihbU39uzAhykDW2c99v6f/px9g2bevVgs 1SOjh66NAXL6jw8luNTa7Glep+O/fxhwG0b8wZIbSeACqWiMw+/T2wrmLmI39k+eamqN F88mWPLMyUOHdl1vo9cB+/QsDRMp1K62zKuZ21JeeU7uPibKrUM++SJNXL2sfdtY0us3 sK2U0Qul7o6hZ3vYzXL18qDjt6NWJjokMOjNwYlM817/5dZZ+5j9XjgnFIcRdxG8HXBU /7yA== 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=BZSKAYeYyDjUdxuf4tL7QPLEXeabTwEIopMghpq0+ZgzUOAJyJ6v7xqsLn7LV3VEq1 iZWtieTdkhzAurE9JX9b570ixeg/kULxE1MyYWWEOup9cEVNa845HyKtYiU5gtHctv0q 1WWC0OYINiHwnf572fzi1F1hpRc/p5PIVr2laYyYfPI3Wso5t/BBBBsPuSfKU/9JQ79k ZqXmdeFRYMXZam98LyEoOkYabtv0/YD08nKo+UWv16p5fjk0nxpLySQpYRX3KNM7NUoo fNpVLKiYhPKm9usrSmaM60uV6ZfXnvfZa3v3eF0vx08K0l95XGbzVRJ1xexrmzbISrem 1B/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=X5rayfKC; 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 10si1297727edu.413.2018.04.02.15.48.13; Mon, 02 Apr 2018 15:48:13 -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=X5rayfKC; 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 106C8C21CB1; Mon, 2 Apr 2018 22:45:00 +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 C135CC21F0C; Mon, 2 Apr 2018 22:42:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 99E1AC21EDE; Mon, 2 Apr 2018 22:42:30 +0000 (UTC) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by lists.denx.de (Postfix) with ESMTPS id 2878DC21E07 for ; Mon, 2 Apr 2018 22:42:26 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id x82so30477278wmg.1 for ; Mon, 02 Apr 2018 15:42:26 -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=X5rayfKC3u6pZuM543zgPfpPbaLiUrYpQMQFqAxJgWnhLOt7KOKiEO4Sg/RZp8LUQ3 8T80oHo/Aph+XvXgUBWFc488F0/OnbkQstte4NTNrnssFrC6PB/JD47z3VAEP6/SCjLR OAk9yoFDh+Qrmn6/xunsNMmtUwMVDegXocm90= 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=cpLVDkYGU94jl5pmkTeKmc/pF6bFQAwO8+yOzfyzgGjoKuE9KlXOOpzdIjm0Sk5Zsw YIcjMrW+ynPi3Q+5HWV/cJsSBlbIK75PC4fT/wDDX5fEme7u71Z+TXfxr0/kXd9znlvf 34P8ZhvlFYn94eOxDlsSTnFdhk+IA/Z5cH3mLz7S75ct9raJiDLLivI9KLUZz2AiJ4Bz lM8IExdoH6P0mZghSEmKjAalPuZI1ik7zmG3oYPrbXWVDqPL8NbELRKO7hARzjew+ffg osRJqyS/B6xXlvCyPZmADZofoPOVypL/xc1QK0JX1xyZai7DIk9geZmlkEC6k6qlNnIZ VQuA== X-Gm-Message-State: AElRT7FM8v7BEjGqVhAqa0yGW4p5pXULYId+w2Wu+NKkfPFj75pJjMP7 GluiecWSjouB/whNNpYgs/FWtZMSCY4= X-Received: by 10.80.144.119 with SMTP id z52mr14051641edz.79.1522708945150; Mon, 02 Apr 2018 15:42:25 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id s8sm842086edk.76.2018.04.02.15.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 02 Apr 2018 15:42:24 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Mon, 2 Apr 2018 23:42:05 +0100 Message-Id: <1522708936-7603-7-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522708936-7603-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522708936-7603-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 v2 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; }