]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Kconfig: Don't use RSA_FREESCALE_EXP on IMX
authorGeorge McCollister <george.mccollister@gmail.com>
Thu, 16 Mar 2017 21:17:06 +0000 (16:17 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 20 Mar 2017 22:04:42 +0000 (18:04 -0400)
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 <george.mccollister@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
lib/rsa/Kconfig

index 09ec3582423bc0fc30c37531ade495e06f65fa01..fde1ac108d0f2703bc77ed4b8b47a55bd324291b 100644 (file)
@@ -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.