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: 134176 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2527094lji; Tue, 24 Apr 2018 10:53:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/dB93vnIdTmUlHPqxPJe7svbKRxBJhHwBnCU7scpdJXZqONZ3XjKChcuMh310+UpPAkmoV X-Received: by 10.80.170.135 with SMTP id q7mr34445640edc.124.1524592387776; Tue, 24 Apr 2018 10:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524592387; cv=none; d=google.com; s=arc-20160816; b=btZ3r2mcASk15f41sALsnft0g5SmSdtX+zSS9TqwhG3y34k1NMnq2zsbBQmJhG60p5 X02Ho5UjekzcRHRV0yGUuZo8f15Ne18MFqy309lWTFkobmHvPiTCnNQjdYycfcb0dtg/ QsZCkVldhyZ0Cav2GrwDh7ZnqANfL+nvOfy/gusC6CSdLaQPVgYbeALkm0O0Xrw3Eymf MH1sKKhgnJToY7oT7CwFNXamrGtwsDFoLAhBBfc1v4ihkbsUTb2ODWLOvflFXRYpBUEp /9YPTOGYxB9Vl+SvYexx/iQacG3cL1lL8n2ZZrspPS76M45QbJ+6xKd9LegRZb7Rds8t NdZw== 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:references:in-reply-to:message-id:date :to:from:dkim-signature:arc-authentication-results; bh=Boot6ZqICZsggiJjwpPHMOUmrFk0Kn4/Pt2iNQA1jaw=; b=NgHyvPg9UjE/XawyYE76/gkFCrbnUjKnQj25IlB3/AZcOmVwZNtc+6O4lO+7M5Odks 1HvDMGBHDbZFvA42ujnu9FAXCameyFZegHKfVZ2Ov6d0SyzKuv0XWhhsFEXyRDVr65wz QQPfUS0HJgAgc2cKlZVlgjd3J+/MQdOnr3uTDhlEUkNHUoE3fx4SXHd/rjwKWabdUSbL 6o0rVWiLiTpPjCPYyH9Qvebz33LJelSMjD3y4l49EkcPI110GMy2pbOcza0uinCHH7G+ UIgXBqvhqj8oIcrNNbRTFrt0e3SzXuVlUqhe3j+ek8VhRXQfoP5q4QwMg3CAP2mEx3SG 0EBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KAT+xQzY; 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 j5si209460edq.304.2018.04.24.10.53.07; Tue, 24 Apr 2018 10:53:07 -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=KAT+xQzY; 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 45B74C21EB9; Tue, 24 Apr 2018 17:52:24 +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-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; }