From mboxrd@z Thu Jan 1 00:00:00 1970 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.8 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 0C3FAC433EF for ; Tue, 7 Sep 2021 17:08:13 +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 5A40B60187 for ; Tue, 7 Sep 2021 17:08:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5A40B60187 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 BE021832D7; Tue, 7 Sep 2021 19:07:39 +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="Z1otglRw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 466A082C6D; Tue, 7 Sep 2021 19:07:30 +0200 (CEST) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (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 CA86282BB4 for ; Tue, 7 Sep 2021 19:07:17 +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-x22b.google.com with SMTP id w144so13584553oie.13 for ; Tue, 07 Sep 2021 10:07:17 -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=g6IwIYN07kNb+U02SB0lTOCZvpYkntuxWsuBWG2DOaA=; b=Z1otglRwdstRcwJeH35A3vwUVW6n1G+S18eKcf356dWO/a8ioW7gb52gNWpGxcWYrC zA7jndnXxbpBZb2C0Aa2BEMyyAB2LeQQ6Gey7HeHKckLmiWEb/IVf5PD8wpUqvMx+mAh oUSiDlzgVbSTByfg+iOcDvhj5lyPm8B+ciNNdNcrq2Ykhn8KEeTXCbvSJClQharY3CjW 254B2Lzhkp8CzJKLuPE2ifZgyIBHyjhjRE19oV6DwhvNu4nd3MWfT3MrTbJvUg1wCa97 24hcmAba3ywI4lZYkMB+ZqXm8ns7hBbaqa/cpgpzS8hPPoS9tgRbPf3i3uHHa4QiWEFE AoRw== 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=g6IwIYN07kNb+U02SB0lTOCZvpYkntuxWsuBWG2DOaA=; b=euDyimkNPCNcrpr0Nwbv2H9m3oi9AcaiKfpil25lipSoHQGk6uLY7B43K4paC7cF4/ 2+cF66kgWXiMFX/GWWBgNRD1B+0TQ4HQcZvyY2VHihKgnLhD7gsNg3y/6NbzT1GmTZeN GqndcJUGHGRg9YbCFNEVh5TH/LRTKvuzlXdaXT+p9yTqZOjC2DfWLEyTzMhFpTxydaNH AeKEjtifXZMk+MIrrsc/4peE5IeQ8ZVe0F9OMLPjIw/nc/1ox4snf7IjM8Z1g+nqoTaO KuicQSwlpeogamOGHURgDXWLAFFyMjQOnlctobiC5o53VFrL+eHRk2NVpecxPYl0/0bn inLQ== X-Gm-Message-State: AOAM5303z6dE1trsVScMXgk7tj/DWszJRv5ksqnfQPUvpZg5j8r8B3n5 I86fByvocHHyV4ZRCvGkmD+gr9tR1wE= X-Google-Smtp-Source: ABdhPJxjcbW+zaGkhcwrwMfKTwk3A20Ac1wHnF+D6NNhl907YmDbvW2igvDmITSGpgOx+qFHLZk92A== X-Received: by 2002:a05:6808:10c8:: with SMTP id s8mr3718612ois.175.1631034436163; Tue, 07 Sep 2021 10:07:16 -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 z1sm2340898ooj.25.2021.09.07.10.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 10:07:15 -0700 (PDT) From: Alexandru Gagniuc To: u-boot@lists.denx.de Cc: Alexandru Gagniuc , patrick.delaunay@foss.st.com, etienne.carriere@linaro.org, sbabic@denx.de, festevam@gmail.com Subject: [PATCH 4/4] arm: imx: mx7: Move CONFIG_OPTEE_TZDRAM_SIZE from lib/optee Date: Tue, 7 Sep 2021 12:07:09 -0500 Message-Id: <20210907170709.2684890-5-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210907170709.2684890-1-mr.nuke.me@gmail.com> References: <20210907170709.2684890-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 config is only used by three boards with this SOC. Most other platforms derive this information from devicetree, and are unlikely to ever need this config. Moreover, it is confusing when Kconfig asks for this value under "Support OPTEE images", but does not do anything with the value. Move it to imx7 for those boards who still make use of it. Signed-off-by: Alexandru Gagniuc --- arch/arm/mach-imx/mx7/Kconfig | 8 ++++++++ lib/optee/Kconfig | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-imx/mx7/Kconfig b/arch/arm/mach-imx/mx7/Kconfig index adedc01164..26cb10f6a8 100644 --- a/arch/arm/mach-imx/mx7/Kconfig +++ b/arch/arm/mach-imx/mx7/Kconfig @@ -23,6 +23,14 @@ config SPL_TEXT_BASE depends on SPL default 0x00912000 +config OPTEE_TZDRAM_SIZE + hex "Amount of Trust-Zone RAM for the OPTEE image" + default 0x0000000 + depends on OPTEE + help + The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE + runtime. + choice prompt "MX7 board select" optional diff --git a/lib/optee/Kconfig b/lib/optee/Kconfig index 26677b7548..9d11b5f37d 100644 --- a/lib/optee/Kconfig +++ b/lib/optee/Kconfig @@ -7,14 +7,6 @@ config OPTEE OPTEE specific checks before booting an OPTEE image created with mkimage. -config OPTEE_TZDRAM_SIZE - hex "Amount of Trust-Zone RAM for the OPTEE image" - default 0x0000000 - depends on OPTEE - help - The size of pre-allocated Trust Zone DRAM to allocate for the OPTEE - runtime. - config BOOTM_OPTEE bool "Support OPTEE bootm command" select BOOTM_LINUX -- 2.31.1