Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66A02C636CA for ; Thu, 15 Jul 2021 19:19:40 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5119613DC for ; Thu, 15 Jul 2021 19:19:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5119613DC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D916282C3A; Thu, 15 Jul 2021 21:19:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kvVlZPiu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 62F8282C07; Thu, 15 Jul 2021 21:19:34 +0200 (CEST) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 53AF480FB4 for ; Thu, 15 Jul 2021 21:19:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mr.nuke.me@gmail.com Received: by mail-oi1-x230.google.com with SMTP id t25so7893278oiw.13 for ; Thu, 15 Jul 2021 12:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VlXF2NTY3CdwvX55SiV5kuor3092fhmhkreO05czoRo=; b=kvVlZPiu4kWnXR4YhUyLOniJ+3dtpv1JQyM04E0Tn8SxcJJBPim80zjzlmQjGHNLFM shiEfzdv/StHrFCfV4wEwwTpR2xWhx42Waj2Q4kYAWyFGLT8JTZBxEXnuhE68EWGVRmu TkWAcxCIh7ohpHqd/IjPbkMaWbKCVDIg+w+E4pzdIzDQdLKPQsyfJ4hKt0qcuLAqFqoe xqos86LqrqVxGbawIO6HIjJMh5YAC1Ml8mejuWkHie8mvZTovFW0vyRNEyXCgFf40w0V ZWqjK76X/RdPD60L2BA5neualqNdudJFoPONh5fRocKx0FTwbPX8wz8TtZ+ioDadbWSb d21w== 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:mime-version:content-transfer-encoding; bh=VlXF2NTY3CdwvX55SiV5kuor3092fhmhkreO05czoRo=; b=eaSsiTXLSHjNrpH/tlgri3lXr4RuvW1r+fzXUf0JCv63IqOoTYoy7FA9lzLpMLE7aB lOM1IA4qncnW7ZCWhtMJeU9Qkn9XaXsL2H7/sw64VOkkqtQ7EUJ4BVuzBL4zONtMXVxv fkJUKsSxaeJNsmmdJZWKlIMkV1EmFV+yE6Dom384lUCd0AhOaUyHHHjAekMVebghSv/u ZN+WM3KkA444g3pCgK0FRK0ue0Je48WdEmvsc6oFUnNZFYnmWNw199i9TbdWxXvaYX6S bLOayGeOsOHEbJCxn9unRCUe3+B4hZfIWIN5YTqiLhddITkIlSJpObnwO9koH/PHCHFB PSCA== X-Gm-Message-State: AOAM531vAjtq7BEZuDQ5yC+p+y0nW/eAMdVybP4SK+2C6jeYklUF+ISj ouSg3F7NWB+CRlcs24afQzM0105W8hU= X-Google-Smtp-Source: ABdhPJzAs1Y1t7ivm88eyDOGrEr46z+wBjVT0W0eXYMan8yfJPr92QDnzl1VUxPfYoLzL0Ol9wQUbA== X-Received: by 2002:aca:d4cf:: with SMTP id l198mr9036369oig.14.1626376769423; Thu, 15 Jul 2021 12:19:29 -0700 (PDT) Received: from nuclearis3.lan (c-98-195-139-126.hsd1.tx.comcast.net. [98.195.139.126]) by smtp.gmail.com with ESMTPSA id 4sm1264377ooc.42.2021.07.15.12.19.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 12:19:28 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, patrick.delaunay@foss.st.com Cc: Alexandru Gagniuc Subject: [PATCH v5 0/5] stm32mp: Enable OP-TEE and TZC support in SPL Date: Thu, 15 Jul 2021 14:19:22 -0500 Message-Id: <20210715191927.337676-1-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean v4 branch was reported to have some issues with SPL becoming too big on some platforms (e.g. imx6dl_mamoj) This is fixed by dropping the call to genimg_get_os_name(). Alexandru Gagniuc (5): spl: mmc: Support OP-TEE payloads in Falcon mode spl: Introduce spl_board_prepare_for_optee() hook arm: stm32mp: Implement support for TZC 400 controller stm32mp1: spl: Configure TrustZone controller for OP-TEE ARM: dts: stm32mp: Add OP-TEE reserved memory to SPL dtb arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 3 + arch/arm/mach-stm32mp/Makefile | 1 + arch/arm/mach-stm32mp/include/mach/tzc.h | 33 ++++++ arch/arm/mach-stm32mp/spl.c | 92 +++++++++++++++ arch/arm/mach-stm32mp/tzc400.c | 136 +++++++++++++++++++++++ common/spl/spl.c | 5 + common/spl/spl_mmc.c | 4 +- include/spl.h | 14 +++ 8 files changed, 286 insertions(+), 2 deletions(-) create mode 100644 arch/arm/mach-stm32mp/include/mach/tzc.h create mode 100644 arch/arm/mach-stm32mp/tzc400.c -- 2.31.1