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=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 5C0AEC432BE for ; Sat, 28 Aug 2021 07:41:36 +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 576D4610CC for ; Sat, 28 Aug 2021 07:41:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 576D4610CC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=foundries.io 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 48EC983259; Sat, 28 Aug 2021 09:41:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io 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=foundries.io header.i=@foundries.io header.b="SwparcZp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BA9FC832E8; Sat, 28 Aug 2021 09:41:30 +0200 (CEST) Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 96FC482F32 for ; Sat, 28 Aug 2021 09:41:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=foundries.io Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=oleksandr.suvorov@foundries.io Received: by mail-lf1-x135.google.com with SMTP id y34so19469655lfa.8 for ; Sat, 28 Aug 2021 00:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8mmmOiPgGxYENLIdcSaVy6/DNYlnMHEWZm/TDToxg4Y=; b=SwparcZpGXjFpZFDGmPOIoZRC7AHTCp4y8KEuEd29I1PjLmXzIcYJ950kC6PIDo7ls 8LZFroSWL3PFISgDZ1I+fdnecpKPTqYusvrch44esjNWz5TEpvFTrsmPE+/MvXrpJ81u QGsVhXIArE51Y8p06usLeCx+5D8rWSn23pHQyn3/w/h74K9wcgroJrxxzPKn48ICGeE8 JwHbTPegxX0zFXIBJ4M+LDOox15Lrf9BbBjvO6mIvydBFliny0nFvtND5OjEosKFleqn +2lZsr3fgJwBTzZDNRh1TF+gAKT5dNqf6lELIakznMscOk5vhs1pSsGCF9oEjekqdTc0 9abw== 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:mime-version :content-transfer-encoding; bh=8mmmOiPgGxYENLIdcSaVy6/DNYlnMHEWZm/TDToxg4Y=; b=st9Ih54As9VtsKdXKVvLREA6noJ1nWn+dgZNkOuxZm5Fxn8muVgEClqzjMflUV9IiK UVPQYR8raRAOJxdUK49kkgoiw+PjyvPJt87wBcq9HNpsMkrSuQDIRouVfeHv3pjuNc3H H9HP1wb+LtWmsGfrVJjMM0f1kvIvpnBNBkMipn792qc08TJmYj29JaKdem/THjX+ppxe j39umloEKeOSb28R82eUm+NvjQNYpMTy8oKckFovhmMSulFS2/R3+PynGVNIoTG0lO81 tw/PJlCq4zl6S7X2u1hZqV6C5fwj05IGbxghnoPL1LQlPcZJMcPifIWm52FCO/smzlY9 QOjg== X-Gm-Message-State: AOAM5314oqoMeA4l9zPhpz2Ra3KxeFlA+E4eiKW+vEbNBdPIJF3E9DMp sGuA1SpZhooSPnYsBFVm5WBud9L8irVOs1xg X-Google-Smtp-Source: ABdhPJwofWgx4+1YDGJPbLrlvAa4Jrf8WehFtCs6mOa7YY/dYkGIUwAxzKft8HrCIoYKJJ0He50vUg== X-Received: by 2002:a05:6512:3f1a:: with SMTP id y26mr9700001lfa.263.1630136485709; Sat, 28 Aug 2021 00:41:25 -0700 (PDT) Received: from cryobook.bearlog ([82.193.109.226]) by smtp.gmail.com with ESMTPSA id w18sm880595lfa.50.2021.08.28.00.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Aug 2021 00:41:25 -0700 (PDT) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Ricardo Salveti , Oleksandr Suvorov , Masahiro Yamada Subject: [PATCH v2] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP Date: Sat, 28 Aug 2021 10:41:22 +0300 Message-Id: <20210828104104.v2.1.5cce590c0bf@changeid> X-Mailer: git-send-email 2.31.1 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 From: Ricardo Salveti The CAAM on IMX7ULP doesn't support public key hardware acceleration (PKHA), as in other NXP parts. Disable RSA_FREESCALE_EXP for IMX7ULP too. Fixed: f4e9ff7135 ("Kconfig: Don't use RSA_FREESCALE_EXP on IMX") Signed-off-by: Ricardo Salveti Signed-off-by: Oleksandr Suvorov --- Changes in v2: - add a dependency rule for RSA_FREESCALE_EXP lib/rsa/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index a90d67e5a8..634c9e5fa9 100644 --- a/lib/rsa/Kconfig +++ b/lib/rsa/Kconfig @@ -1,6 +1,6 @@ config RSA bool "Use RSA Library" - select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 + select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX7ULP && !ARCH_MX6 && !ARCH_MX5 select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP help RSA support. This enables the RSA algorithm used for FIT image @@ -56,7 +56,7 @@ config RSA_SOFTWARE_EXP config RSA_FREESCALE_EXP bool "Enable RSA Modular Exponentiation with FSL crypto accelerator" - depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 + depends on DM && FSL_CAAM && !ARCH_MX7 && !ARCH_MX7ULP && !ARCH_MX6 && !ARCH_MX5 help Enables driver for RSA modular exponentiation using Freescale cryptographic accelerator - CAAM. -- 2.31.1