From patchwork Tue Apr 24 17:46:36 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: 903735 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="KAT+xQzY"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40VrYC0vRVz9s0v for ; Wed, 25 Apr 2018 03:53:51 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id BE11EC21F48; Tue, 24 Apr 2018 17:52:25 +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 D7841C21F92; Tue, 24 Apr 2018 17:47:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B6F3CC21F5B; Tue, 24 Apr 2018 17:46:59 +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 6D3FEC21ECF for ; Tue, 24 Apr 2018 17:46:59 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id t67so2685184wmt.0 for ; Tue, 24 Apr 2018 10:46:59 -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=8BzIYzpRfFo5NwGhVUm3+UEP9zi6NED7bdgH7ykgg+g=; b=KAT+xQzYnjY5J8PNnHQ04tah66IGiIVSwIZRf0ImZblm04fOFUg8QXwQJj8VdIrlk5 bINVG7tE5T2iHv6pUr3QqbMJJgPBW0r9ymUfDykfKGc072Jpm3imNvB/ZuhpVSAW+/5Y +HOW/hpENdHFWlje4obqCfadRS3XgtaqUfs/4= 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=8BzIYzpRfFo5NwGhVUm3+UEP9zi6NED7bdgH7ykgg+g=; b=TA/u29eb8VSl/XKfe46L3qDb/GpvTJ25/iVNLv9KJ0L0qR8BkwBdc7h+eEGMgHWmNR Sk+GUR6Rid/PGb53hwTJ+VyoHTHkgyM07aek84u+75Hrppy9I+i1f7z/yrgAtgQqsco7 AWdxOyGFiO7AwP0lbCNP76JR8po9eA/721U7yQGfu1QmY23ghkvkEG8aIR/wBugBTs1w x3PNY7oTpyKkImQJ6MfSVusGyfS5o47J7VlIjQiDSR5NBIiXWV0E9bTGxoMVOQpO8Kkb QycvKrcw8iBQHYJv9HOJI4cljeXC6sT7FwRlG2kDzsEdKJwGgr9A2fMkDD2QPeCVr06Z +qLA== X-Gm-Message-State: ALQs6tAEGBfKscPJHJLJjpQuZlK5quhsJ6t3e89YwKBWAVQaFAmeF93N NHQIHHWxGO4/JHeEziWL7Arnb0tSKxo= X-Google-Smtp-Source: AB8JxZrUQmVHDoMWKprKmF1Pg5StR2IOJRm5kW5POgY9nM/eyMRQTZK9pooZYML/mXGIvI9NnsEukQ== X-Received: by 10.80.181.131 with SMTP id a3mr1146456ede.207.1524592018898; Tue, 24 Apr 2018 10:46:58 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id e6sm6443087eds.20.2018.04.24.10.46.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:46:58 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, sbabic@denx.de, fabio.estevam@nxp.com, breno.lima@nxp.com Date: Tue, 24 Apr 2018 18:46:36 +0100 Message-Id: <20180424174647.11840-8-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424174647.11840-1-bryan.odonoghue@linaro.org> References: <20180424174647.11840-1-bryan.odonoghue@linaro.org> Subject: [U-Boot] [PATCH v4 07/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 Tested-by: Breno Lima Reviewed-by: Fabio Estevam --- board/warp7/warp7.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 56f0cdd175..da52b183bd 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; }