From patchwork Wed Sep 5 10:56:07 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: 145986 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4780228ljw; Wed, 5 Sep 2018 03:58:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY0ykTHkVAXY5y6+mv0pbOMHCVrpCEFwggGlZbbAlinp4ttA574VI6H6WZ+C3EV1UJyp0Si X-Received: by 2002:a50:f297:: with SMTP id f23-v6mr42337666edm.40.1536145133960; Wed, 05 Sep 2018 03:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536145133; cv=none; d=google.com; s=arc-20160816; b=vauT3EXSlxn+dGKVOZnkggp2cCx0KWTbSJZZBfuovWAL9xLzlVI+AClO3dDiHSaRcy Sa1MEFM7PtsH+SwUa3itqecxjj+cauCuK4XYB/8zbDhKYpgvkXIlrtQJVTM5jJEjnjYX 4+KK2pcPxdp0UdpduAkNrDWoqLvFZQ1cIljjBSXYgqhl+dXGTk/wQQL6V+A0l9IY74BZ JB8Pzr5ihpIqVCHAMVa+cSL4cM472WsFPDu8CnU+PJFyalZAmS0puvnY7ma9YDajRIuF +dC1pkG7uT1xN6u10KOJTrhyFQgGoriCduwFxMxFHZg2NsJGahdaID32BnrbFCGJTwEr JIdg== 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; bh=5wZG85mjU+V3hDYBARDdqc8MIMZndIaulZMCubW/ZMo=; b=JXKNr4dl3ddUHsKEMELIMyIk/C5heYHP2X/Wks5+ztN1YFKw+ElCRY33EQnI+x+Sv1 9sWXlIUl8CEldw/YoIDcGPy+z75I2DFcigmELKKedvsdGodFnTir76GZ1OvWeHWaVW1P ldEc7yJuVscFcsxb+j+Ez5IrZP7NJMB/sbSmWKnZiBzXNSgP6Mfs+gsChmh18WKfKx7C 57NBdpdtdiqdnWmttZBucKJC/Rt/eocg0WVpFaeYlUjrrdomcvY+BXScFoEpBt2a8WZV Nbi6OBY8cpZOw6QUAAzfYjwHmHrJFB2L5Z5iGMfiTz61zACZRzuCG98TMPgeH0GGVTxl 2FJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lrz2RUk4; 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 z14-v6si1151217edj.223.2018.09.05.03.58.53; Wed, 05 Sep 2018 03:58:53 -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=Lrz2RUk4; 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 85157C21DA1; Wed, 5 Sep 2018 10:57:10 +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 8636DC21E0B; Wed, 5 Sep 2018 10:56:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BA044C21C29; Wed, 5 Sep 2018 10:56:18 +0000 (UTC) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by lists.denx.de (Postfix) with ESMTPS id 5E296C21D74 for ; Wed, 5 Sep 2018 10:56:14 +0000 (UTC) Received: by mail-ed1-f50.google.com with SMTP id h4-v6so5701694edi.6 for ; Wed, 05 Sep 2018 03:56:14 -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=kYPAt5U7oZtUBmO6MDK38Kg0Ege0TAghEAfNfPjpRxo=; b=Lrz2RUk4NRIUtxrLGNyMIsc7Mtge4pmWf4jroUVpNMMt5H7Ejis5KZbQVIQivDqCE5 QyvVF+m1FoyVe4N44aTpE4/S4D9ykvNVs+1K4T3+6jrHdBnmerhZ/dJmEw1QAxHyX60z wPJc3u9bHrI5KuVZlwigQXDj0xXhVazqHdslg= 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=kYPAt5U7oZtUBmO6MDK38Kg0Ege0TAghEAfNfPjpRxo=; b=bP+8sw+ZCOi49aTHbpqHUYxNW9ertIBkyDzSSJBB8TzeGuuqx7+L7snPfTfUeyu8vf 4ItTCKOMgL7YTsHJUBm6yHPRdRMsKukdPa/v9uPV1I+iOYbplDvFx5yVdHvsQbHhmTiN 1Msi81FrMw7MvG7qDn/gCnrNp6LP85Yo2S2fukR0ITUIOAR+p4nyNc5NjX6Zkawyi7+5 udzTdZDBF4KJsD3MAK9YnFq0CLhQXd6QX3FydmJxXp9NXABV9zUzBJU3mrqhwcGr19mh wmBBJGn+T9a7XDwXBBgqMBfJzMXV+DqnKj84RkuAgJZgADhB4bEJMpY2LaabosDD+xVE nwFg== X-Gm-Message-State: APzg51CdvPrGOsriU3RJMVh3D9XqtJAAMVcY6GClyz8tK6lNCjQEYmlK SuTh7XKjOOdDkTnRcHl2sIvYLFcDvIU= X-Received: by 2002:a50:8ea1:: with SMTP id w30-v6mr41451859edw.197.1536144973827; Wed, 05 Sep 2018 03:56:13 -0700 (PDT) Received: from event-horizon.net ([80.111.179.123]) by smtp.gmail.com with ESMTPSA id h34-v6sm1052235eda.58.2018.09.05.03.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 03:56:13 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de, fabio.estevam@nxp.com Date: Wed, 5 Sep 2018 11:56:07 +0100 Message-Id: <20180905105608.453-4-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180905105608.453-1-bryan.odonoghue@linaro.org> References: <20180905105608.453-1-bryan.odonoghue@linaro.org> Cc: Rui Miguel Silva Subject: [U-Boot] [PATCH 3/4] warp7: include: configs: set skip low level init 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" From: Rui Miguel Silva If we have defined the OPTEE ram size and not OPTEE means that we are in the case where OPTEE is loaded already (maybe by ARM Trusted Firmware) and that most of the low level initialization is already done and that we may/should skip it doing them here. Signed-off-by: Rui Miguel Silva Signed-off-by: Bryan O'Donoghue Cc: Fabio Estevam Cc: u-boot@lists.denx.de --- include/configs/warp7.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/configs/warp7.h b/include/configs/warp7.h index 1b656a5aaf..a391dfb5c1 100644 --- a/include/configs/warp7.h +++ b/include/configs/warp7.h @@ -13,6 +13,17 @@ #define PHYS_SDRAM_SIZE SZ_512M +/* + * If we have defined the OPTEE ram size and not OPTEE it means that we were + * launched by OPTEE, because of that we shall skip all the low level + * initialization since it was already done by ATF or OPTEE + */ +#ifdef CONFIG_OPTEE_TZDRAM_SIZE +#ifndef CONFIG_OPTEE +#define CONFIG_SKIP_LOWLEVEL_INIT +#endif +#endif + #define CONFIG_MXC_UART_BASE UART1_IPS_BASE_ADDR /* Size of malloc() pool */