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: 966314 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="Lrz2RUk4"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42510B5ZTCz9s3Z for ; Wed, 5 Sep 2018 20:58:34 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 45DC2C21DF8; Wed, 5 Sep 2018 10:57:11 +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-Google-Smtp-Source: ANB0Vda39WMPtk9I4JufL5nVzrmV9pfRsEM7dsfrU3tlE6qOONTIT71Mm2R6/FgQS+cxl66BQ71e+w== 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 */