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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,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 77322C433EF for ; Thu, 9 Sep 2021 14:56:17 +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 9458C6108B for ; Thu, 9 Sep 2021 14:56:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9458C6108B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 20723834CD; Thu, 9 Sep 2021 16:56:04 +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="ntEEw9uF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B7E6A834CC; Thu, 9 Sep 2021 16:55:53 +0200 (CEST) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (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 5E5E1834D2 for ; Thu, 9 Sep 2021 16:55:47 +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-x235.google.com with SMTP id w19so2794095oik.10 for ; Thu, 09 Sep 2021 07:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qxif+yOtaPPwCaTReKIk2k7HnPl5MDfeNwPYdRxUOLk=; b=ntEEw9uFRWkDTPR/lqHAF5PdEAlbSBr9tE7iQ3KEkyY+OZ1N/sUZWWYdK5gs9cQSz5 Hy6hpzHRgNFPmp37657meUxjdc6zcP1hGrZDCImpZvNTy55YLnLR6SJmuLyKNzMqabNq FK279YXaZv00SXOvRES+O8SVmu30OssBS/0rLbmYwUwZn9tqFBNppGcuNYKRBrFV/93J 49c3nR+JOcGc9VeGew5iDDYfKH3MFbrJ4OLLf1uUqYsgmUrf96jJ4FmVWLcWGNxgrXZl GFApkx7ml3Bw9Dep03Pz+fQDzptriSHXVrPXuHG/mmIoTBxRr29LAzf4chxVfhRXlYUb wCbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qxif+yOtaPPwCaTReKIk2k7HnPl5MDfeNwPYdRxUOLk=; b=fZFh+OW+ZHOfAEUbAX8iB4gqQ3cI7vzqSmGbe0THHFnim4EmmOkjUJLxTTIbUSWV0y AmaVOpSiVBosZ+dpRK4bu5XM/SB08mUBaq4OcHMEXmzkEkUf1lro+WLyeg1DA2b8SJ4e VqbiJbFHjlU9bLRMtBq/4Ytc44mQRHJN7z3GzxJ9LHlppD71Fmvd6d4FXLgzf0JVPumC Sey863tKbe9T8+cXylmdWzXkRHw1SZ5TK7ko9JTkeS+TJW9GQZrj5o8GBxbLRilAwgEN QvWnU6Q+l07FDPn9Z3fur04RLLY4XJ6bbogRPdnRYYS1MQ1XOIqo/et95f5tZcMpQ0Aq F2qw== X-Gm-Message-State: AOAM5326AW0LD6W9xtxBMFEM3OcnRc8Nw8qtkXB6jhfSeKSpGT69cVvS ky4jSQLzTsezYmkJOI5bnItZl4ewZoc= X-Google-Smtp-Source: ABdhPJxttaDAx96X6vnFV6uClc1Psi6tOUv9mOCjZhoh9Beb5cobqJhbt7NgcCVickrwcJaAUPFjDQ== X-Received: by 2002:aca:df07:: with SMTP id w7mr135566oig.110.1631199345463; Thu, 09 Sep 2021 07:55:45 -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 l21sm447898oop.22.2021.09.09.07.55.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 07:55:44 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de, patrick.delaunay@foss.st.com Cc: patrice.chotard@foss.st.com, uboot-stm32@st-md-mailman.stormreply.com, Alexandru Gagniuc , marex@denx.de, etienne.carriere@linaro.org Subject: [PATCH 2/3] arm: Kconfig: Introduce a TFABOOT_FIP_CONTAINER option Date: Thu, 9 Sep 2021 09:55:35 -0500 Message-Id: <20210909145536.2979951-3-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210909145536.2979951-1-mr.nuke.me@gmail.com> References: <20210909145536.2979951-1-mr.nuke.me@gmail.com> 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 This option is intended to tell u-boot platform code that this u-boot build is expected to be used in a FIP container, as part of a TF-A boot flow. It is introduced because STM32MP1 platform code needs special considerations on a FIP boot, such as a different partition layout, and decisions about who should patch the FDT optee nodes. This Kconfig can be justified as a natural extension of TFABOOT. Signed-off-by: Alexandru Gagniuc --- arch/arm/Kconfig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 2d59562665..0bfdc2adc4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1907,6 +1907,21 @@ config TFABOOT Enabling this option will make a U-Boot binary that is relying on other firmware layers to provide secure functionality. +config TFABOOT_FIP_CONTAINER + bool "Support for booting from TF-A inside a FIP container" + depends on TFABOOT + help + TF-A has its own container format, named FIP (not to be confused with + FIT). The assumptions u-boot makes about the platform in a non-FIP + boot are not always true with FIP. + These differences could in theory be resolved with dynamic devicetree + patching. However TF-A either can't patch devicetrees, or is + unwilling to do so. Even then, passing such devicetree to u-boot + might require custom mechanisms. + Enabling this option will tell u-boot platform code that it is okay + to assume U-Boot will be started from a FIP container, even if such + assumptions would break things in a more normal setting. + config TI_SECURE_DEVICE bool "HS Device Type Support" depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3 -- 2.31.1