From patchwork Fri Mar 30 14:18:34 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: 132610 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3099422ljb; Fri, 30 Mar 2018 07:21:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx49j/kdpB2IvLEiKlQNUiv58ASY2Z6RszoLOGuOuUc+vGnbJClPXmsWC2hzrpsWZ6IkN6Bht X-Received: by 10.80.133.205 with SMTP id q13mr3110657edh.123.1522419679058; Fri, 30 Mar 2018 07:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522419679; cv=none; d=google.com; s=arc-20160816; b=uEFEDq/SNi8t7jHDXuLRlT2QPhMAgnJOzV2DE1zG8QC6ITAZVPNnVnaceyV8cUeGc+ h3mdla67iAAjR7T9gATYhQRHjrCeAshum/TwOTmcDy0hsJI1HC90TuMIjRteOo0TGRhy yr3+ZvxzVL7Dn8gd6/XPNwp9snL6wMfW/7LLjltWjcI/Cygs4H8hDWnVs1T6Pfos3l+B lWsOiN9447YKLq0eaV9fqaUJ5ZjcRaMUY/kLfjjQ9I/4eaPDSxKQQu0lXcvBvllkwUgz H32rLBj3MS977l9WKLjhqoCsquUzh0vhvfLcAxq5Vz6fQAXFnGVuJgcJr5ZjOJtqCrqd ptTQ== 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=szzQGy9U+B8cN2EvSy2iPEXi3VkecZl+U9JsX2u5DEy/thdXegqnQas3wNt5tuu5wK h6ZX6k/xYYe2oysKrhCgOaSwwUb87ocib4Cv5iJVKM+W1LVfeBmjxFtBpNkuDnh1AAMM fJyw51kr9SpBxnzaB1a/ffNlvRWmhKKblC393y8jzm5af4oDsZiUV4O6erFsN0iwZ3dA /A3F1oBf5/fksx7sjkNo0XH/qtqoWhtvRt0VPxuevAr+G6qrbkw9OLlmGRPA2iX8B6p8 wbFVCqUSQckTtmfZh5OH8OH5FVSRAc8ppiFwbhAWV7FGl3JRubdGxw96yeSsPDAgfY7l U+IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ez1Lpq11; 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 j15si6675246edl.388.2018.03.30.07.21.18; Fri, 30 Mar 2018 07:21:19 -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=Ez1Lpq11; 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 7700FC2223B; Fri, 30 Mar 2018 14:20:05 +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 3A110C2222D; Fri, 30 Mar 2018 14:19:08 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5572EC2223C; Fri, 30 Mar 2018 14:18:59 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id 80851C2223C for ; Fri, 30 Mar 2018 14:18:55 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id x82so16984562wmg.1 for ; Fri, 30 Mar 2018 07:18:55 -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=Ez1Lpq11RnFIEdlNm9CnDnZlEsgF0fyWnQod9UQG2MUwcQ2LTRjzRCl5Zevuc4dW3Y m6f1r7xxcCxXQ78nico1eSGe8yTZ84WBF/jl3Lkbvzbh8713+AuxBmC9yFL87Ue7yTwl gynUzNMWbVThIrdb27oT09qsWknMTHrJyc7Lo= 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=Ut8b2JLIIvMF4K6jewMAR3LHM2YyFW2TyZwctfvC8OSTbOLXOeZqssZFg47XYmek3e SSXjtpznquXrbZFUCfrS2kyUM9gJTbZQTjJA0ujbJ9grrVhAcrq9XVlfqd81Tm/aIlsI Rt7AKhb4COco4x2i4q7hZS438LJX6HO3R6c+ICaYQiNcdsznXgfqvqVBRbC7dnEHZNuh hKyT1PwtlMlPm1qcKmoAjDv//0XlIpmDWWsips42HHk76AdKFgBFS2IL+v4n81B2Ihcl t/Ki2xzE5mWC/EN4BTD6JwSC0vFajAoU0PgC/wJruRq7BpCbDEFI4Rlxn32e0C8f3RKl m28w== X-Gm-Message-State: AElRT7Hp0rx/u5LWYupWO8LQTdLGcTf0jkvDpw24w4niuaFFhoEq0ZDV CjO1o9R4cKIy1OMt/GnFjU5Av+5fiPQ= X-Received: by 10.80.129.4 with SMTP id 4mr3056488edc.167.1522419534989; Fri, 30 Mar 2018 07:18:54 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d22sm5831758eda.31.2018.03.30.07.18.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 30 Mar 2018 07:18:54 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Fri, 30 Mar 2018 15:18:34 +0100 Message-Id: <1522419526-29494-7-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522419526-29494-1-git-send-email-bryan.odonoghue@linaro.org> Cc: rui.silva@linaro.org, paul.liu@linaro.org Subject: [U-Boot] [PATCH 06/18] 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; }