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: 893353 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="Ez1Lpq11"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40CP195bRpz9sXB for ; Sat, 31 Mar 2018 01:21:01 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 380AAC221D5; Fri, 30 Mar 2018 14:20:06 +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-Google-Smtp-Source: AIpwx48z2eOYMRkD1ui5rjZeayImWuhqY3Zc9Fg/9rpW2mY9afLJG+TLKjisn0MsUXs2ayuK+j0vmQ== 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; }