Message ID | 1523633481-20914-6-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp856503ljb; Fri, 13 Apr 2018 08:42:28 -0700 (PDT) X-Google-Smtp-Source: AIpwx48S/aXBKogKx57/Rl58YzjeCwbLPeMngOQr2eztc6nn1dlnj2948Wl5Yaw5kw8/vbtNxr3s X-Received: by 10.80.240.211 with SMTP id a19mr20624158edm.77.1523634148342; Fri, 13 Apr 2018 08:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523634148; cv=none; d=google.com; s=arc-20160816; b=Ko6ST5NbwuHS2BqLsDFRvCU3FjdBBBmQl2sbWecTe/GAUhfCCsy1kBL8t4UJM4DW+p Sv8cdY1A4EMG4wi7/TkzX+8h9GuTmM/syNl+2JSaJcUalniTBluBQO80wTv0tMly45Dj OzSmILv6ofJyE0V02NWugS9AR1p4eGDaQKiAyuat821eapnVbP0rsiUiwgvQ6qgraA5M hbvdsI07RRwy5WvodV2Pv/SstKJZauVxefeCqHrh7MRakKsazrfputKE+SKMXUA22chE kNUR8HvhFDULvQizn/OYQmQPaC/vUWY6H0ExUJgUdANzSfv3Axp7V6ZawsCNVMT76Nui s7Ig== 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=rBkpxiGD8KPp6kxNYRZxaaUl6cGgyfdl5DfMU+fQSYM=; b=KESdLNaOhIQ3DBFtf52gbFfM84/TDlNYH3BTK7KlzzlUeXbd00neViyycra5n/ZZNn vH6Xymz6K1Fds/jl01AcIe9MtPyKoKy/3TsiJicmVSN3BCNT4nPLnEunM8P2cvAJw9RR dFlGYBBAJvkx0Lh0YVSQP845PxdRLE0ZBigBUiNDJaVYiRMIGu9snQPveOwCpajXub+v PxEZWchTLJIMRcPPOEoQdg4mHCepr6u02UBetH5LgZbvvIxVt4b1vY/ltT7i92stUy+r 65DylB2SP1b8xPab/tfmbHCQQOOY3g79Mo642ioGs6nN9G0g3P1T9nSAKkc3edthxLnC 2LAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ho8Ej9lN; 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: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id c2si3149458ede.447.2018.04.13.08.42.28; Fri, 13 Apr 2018 08:42:28 -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=ho8Ej9lN; 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 E024FC21DA6; Fri, 13 Apr 2018 15:33:21 +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, 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 C0CC7C21E2F; Fri, 13 Apr 2018 15:31:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CB96FC21E2B; Fri, 13 Apr 2018 15:31:34 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.denx.de (Postfix) with ESMTPS id AD052C21DD9 for <u-boot@lists.denx.de>; Fri, 13 Apr 2018 15:31:29 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id d19so9176874wre.1 for <u-boot@lists.denx.de>; Fri, 13 Apr 2018 08:31:29 -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=ZyVbqfzifusuZrywaBiF1R7LagXEDVoA5r4yyEJ3MCo=; b=ho8Ej9lNdIv5EbZbNsNTzyIe0ic/ObRCBUdJBJFfzKB1xUo6zej84Mv/nQTlUKQq7+ g7UZ+rbHyrxbnlgMp4iUvob2kFEWsi6XradPhI68yo8iqJ5OAHA3nA/uHXlwzKDMm+Fe x7eB2SF3FG2zUP0qyb/5H8dXyD6ODRa5Dt9YQ= 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=ZyVbqfzifusuZrywaBiF1R7LagXEDVoA5r4yyEJ3MCo=; b=BtWY35MqZz86Cs2v+CPglwVahLH19o356zH2VS4KlRosXddiQ5T6n4r1Fx55nCCF43 S1loA5hXcCM8gTZIfoXpR7S7SoYDFEOfJ8yMcxyqtDspeLFjTb+NPUAbUMBMetJMAcxT KovqjJccdbu2GVq9syfBFsCZy+s71cBBGtu39NkRoVrS5r2AmBtgPtVKUFwGsW3O0919 QkJF2lBmj3Y7VdXkMAMTjxVsl+eV5u4kh7CUBXlE60MuC6gf9CK4ZOSkV7HKfItNL2Jk oUlkjqE3KLYh4K9nfD6HpM+GH31R3b9TAPAWl3sBnGzBww9yggVVEdXsjSZLG6YBdB/a ZdNQ== X-Gm-Message-State: ALQs6tDjE4akIGNvqcPwDDew7kTUwpqRKTMn5TY/R1ZM1A1Sn1ycbO3j Lusr/sOsF5yDWT8z0V+HUyC4CYNN0OA= X-Received: by 10.80.169.117 with SMTP id m50mr20704813edc.242.1523633489200; Fri, 13 Apr 2018 08:31:29 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id x35sm3516008edx.86.2018.04.13.08.31.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Apr 2018 08:31:28 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: u-boot@lists.denx.de, fabio.estevam@nxp.com, sbabic@denx.de Date: Fri, 13 Apr 2018 16:31:09 +0100 Message-Id: <1523633481-20914-6-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523633481-20914-1-git-send-email-bryan.odonoghue@linaro.org> References: <1523633481-20914-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 v3 05/17] warp7: Allocate specific region of memory to OPTEE X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
warp7: Enable automated OPTEE/HAB boot flow
|
expand
|
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c index 0d3d324..56f0cdd 100644 --- a/board/warp7/warp7.c +++ b/board/warp7/warp7.c @@ -58,6 +58,11 @@ int dram_init(void) { gd->ram_size = PHYS_SDRAM_SIZE; + /* Subtract the defined OPTEE runtime firmware length */ +#ifdef CONFIG_OPTEE_TZDRAM_SIZE + gd->ram_size -= CONFIG_OPTEE_TZDRAM_SIZE; +#endif + return 0; }
Subtracts CONFIG_OPTEE_TZDRAM_SIZE from the available DRAM size. On WaRP7 we simply define the OPTEE region as from the maximum DRAM address minus CONFIG_OPTEE_TZDRAM_SIZE bytes. Note the OPTEE boot process will itself subtract the DRAM region it lives in from the memory map passed to Linux. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> --- board/warp7/warp7.c | 5 +++++ 1 file changed, 5 insertions(+)