From patchwork Wed Aug 25 13:56:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Suvorov X-Patchwork-Id: 1520799 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=foundries.io header.i=@foundries.io header.a=rsa-sha256 header.s=google header.b=hxKqP8BM; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gvnbb0YYPz9sT6 for ; Wed, 25 Aug 2021 23:57:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4695E82952; Wed, 25 Aug 2021 15:57:09 +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="hxKqP8BM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 41C3782C90; Wed, 25 Aug 2021 15:57:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450: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 0E6C380202 for ; Wed, 25 Aug 2021 15:57:03 +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-lj1-x22b.google.com with SMTP id w4so42301822ljh.13 for ; Wed, 25 Aug 2021 06:57:03 -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=+DF6+esRBgudHD/UuKVwKQVT7diBSelrU3K9PRCVrPc=; b=hxKqP8BMh1htg/JSMUzTocKNfFP/JeGjO9LTHSCmuhRO6+UUhEokq2szArgSAVOE9Q QZTJWzeoc02zUjjk2bpaDZLFqR8jo/J6frcN+MK3VL9iiGYTejle1IaztwWvFuwN8IVb pdi8eMpVL8ExKB+BbZrmerKN7NhsB9X+szpTfjY1D12Si3ZoYWvp2B/OUnVz6/2Y7aA6 MKB9CGP0W4nnj6ai5ey1XflDRGlXRI1J2iMwoP/NK0lx6CuTvSDsMoGXbnk7U+SlOKfH Qx444byzC+8lIcGmQO8Bs/3vg0tlYpAdlrqVrWu883bwL4eXKBDRjTLBp4BsEWNKJfRi aSKg== 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=+DF6+esRBgudHD/UuKVwKQVT7diBSelrU3K9PRCVrPc=; b=EsjDp1rq/k+GapMBrgWrzG9wC2CKmE6FNYFx5k701yRx0VkzwbvMk7ktYQ/63P8R0e s1IJOdRRnv6szjXch02g3KVWDBreJkEHkg88bBJ87QR0qXEdx6KsB9oBCZ6ybNdR9+Sc rGlJXEaot67B/joqGE60qZ/CGP5NG6l0y/KZm6BmfrVe/WCcWiIEcIY00RORwUs0lExn Sokxvtrp7scMF4qv3P2vydDNcdbUkPv1Jpr3gqyUNJDn2FDStTB01MogoEg7nrTXd7bm WIiz36D1AlXY02sZZMxiZYS8mSMrGYxHHlFWRS/Lu85STNx4oKt5mxBaaBAiB4DxscSC qpbQ== X-Gm-Message-State: AOAM5316mFj5mcOxZ0GC46Fnn/2d8RokYC4lTDDXx780SCZanjVptkVt I/qq+QcU2eWHAYzQdLrnAa4kVV3ohYyuj0nF X-Google-Smtp-Source: ABdhPJyjIu+786LEO7x5RkuoKUy5Y+xEmE8IGXpqq0/VpL26Y7oWatgndoU6vN1rq3NSdBdmEcQZ7Q== X-Received: by 2002:a05:651c:33b:: with SMTP id b27mr37657644ljp.314.1629899822255; Wed, 25 Aug 2021 06:57:02 -0700 (PDT) Received: from localhost.localdomain ([82.193.109.226]) by smtp.gmail.com with ESMTPSA id f13sm11029lfe.46.2021.08.25.06.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 06:57:01 -0700 (PDT) From: Oleksandr Suvorov To: u-boot@lists.denx.de Cc: Ricardo Salveti , Oleksandr Suvorov , Masahiro Yamada Subject: [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on MX7ULP Date: Wed, 25 Aug 2021 16:56:51 +0300 Message-Id: <20210825135651.77629-1-oleksandr.suvorov@foundries.io> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 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 --- lib/rsa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index a90d67e5a8..55e17596f0 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