From patchwork Thu Mar 16 21:17:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: George McCollister X-Patchwork-Id: 739996 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vkhC66GXdz9s0Z for ; Fri, 17 Mar 2017 08:17:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PNrH91cR"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 673FEC21C59; Thu, 16 Mar 2017 21:17:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 6FB26C21C2B; Thu, 16 Mar 2017 21:17:46 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9787CC21C2B; Thu, 16 Mar 2017 21:17:44 +0000 (UTC) Received: from mail-it0-f66.google.com (mail-it0-f66.google.com [209.85.214.66]) by lists.denx.de (Postfix) with ESMTPS id 0C138C21C27 for ; Thu, 16 Mar 2017 21:17:44 +0000 (UTC) Received: by mail-it0-f66.google.com with SMTP id u69so540390ita.3 for ; Thu, 16 Mar 2017 14:17:43 -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; bh=sVCK9hP532X38ENZUW3CesiGnAmq1N8qxEsh/zSICe4=; b=PNrH91cRfG+gdrZAVy7mNWqC3Cle4PXebBLGktU399K2HBuG2kn4YJZuie6kzGl/mo y5xx7XqGMHTbLBlPqPtd8CzSU1+jmtL/+EXdW/+RgYIwNSHJ9bbZd3HiwZ4Nv1repeYR xAUBYB0a8mlImjfwG0As2VNva6sRcMZVL59zi+lIwbdDVr97KM0xntnF5gvLWaswZgTv iDTntOImQAQrd909gFtlQAU1tTSewotwNe3uS/JaPTHGEO8UccChAqw9v0PbycreV6Uc 3iHFu2j0ahdcOHfZzr/KFMpT2D4RU1Euw0s7y8wXjEu26uouY++eydz6kntdv89FUFur JB5A== 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; bh=sVCK9hP532X38ENZUW3CesiGnAmq1N8qxEsh/zSICe4=; b=pK5lJPe+9JelboVf18jsAzSO9HFTLfkZ3FQhv/8nAK5mxkj7/W3JbmApfH+KkA2NlR Q36f3O4lOVgM6Icp5mVznO+VRtYDK2flrCSqmRwKsMFArNlSYm2An8Hp9ELGnhRKiLLr NmsryMNdYCDShjomLR1NOdkSgz8gMHdv/vQLhpOepQ5CuBX776VKzG+zcRGHZ1P+rDxD lJ8wxVDmCV3iKoeFgVLuWSTy0XMFjWKXk8vDHbi5w/KyqfmnWyCVxKzkZoFR9X8VPILM 2vCdeaXIHvw6y40Vd+KH8zJl7Rz/tdtemmJgWg5rq7F3fURpbg5Q8nHYCE85Lp+ZiGcy UM8g== X-Gm-Message-State: AFeK/H26Oeueq5UbSatTMggHO71QpR4ikjNtTFV6tWi52C+ZeJtfnTkEMdFqljSTluwlnw== X-Received: by 10.107.186.67 with SMTP id k64mr13934707iof.28.1489699062676; Thu, 16 Mar 2017 14:17:42 -0700 (PDT) Received: from localhost.localdomain (216-21-169-52.slc.googlefiber.net. [216.21.169.52]) by smtp.gmail.com with ESMTPSA id g204sm112698ita.31.2017.03.16.14.17.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Mar 2017 14:17:42 -0700 (PDT) From: George McCollister To: u-boot@lists.denx.de Date: Thu, 16 Mar 2017 16:17:06 -0500 Message-Id: <20170316211706.20207-1-george.mccollister@gmail.com> X-Mailer: git-send-email 2.11.0 Cc: trini@konsulko.com, dannenberg@ti.com Subject: [U-Boot] [PATCH] Kconfig: Don't use RSA_FREESCALE_EXP on IMX X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The CAAM in IMX parts doesn't support public key hardware acceleration (PKHA), so don't use RSA_FREESCALE_EXP. If you try to use it on IMX (assuming you have the clocks enabled first) you will get back an "Invalid KEY Command" error since PKHA isn't a valid key destination for these parts. Signed-off-by: George McCollister Reviewed-by: Tom Rini --- lib/rsa/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index 09ec358242..fde1ac108d 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 + select RSA_FREESCALE_EXP if FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 select RSA_SOFTWARE_EXP if !RSA_FREESCALE_EXP help RSA support. This enables the RSA algorithm used for FIT image @@ -29,7 +29,7 @@ config RSA_SOFTWARE_EXP config RSA_FREESCALE_EXP bool "Enable RSA Modular Exponentiation with FSL crypto accelerator" - depends on DM && RSA && FSL_CAAM + depends on DM && RSA && FSL_CAAM && !ARCH_MX7 && !ARCH_MX6 && !ARCH_MX5 help Enables driver for RSA modular exponentiation using Freescale cryptographic accelerator - CAAM.