aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2017-03-16 16:17:06 -0500
committerTom Rini <trini@konsulko.com>2017-03-20 18:04:42 -0400
commitf4e9ff71356aceab5bd212e528c123353c531a48 (patch)
tree89a5339fb67e6e66206578758a9226d264229a37 /lib
parenta051a99f0d76d767d57b8d7f12f64acd28bd1ce7 (diff)
downloadu-boot-f4e9ff71356aceab5bd212e528c123353c531a48.zip
u-boot-f4e9ff71356aceab5bd212e528c123353c531a48.tar.gz
u-boot-f4e9ff71356aceab5bd212e528c123353c531a48.tar.bz2
Kconfig: Don't use RSA_FREESCALE_EXP on IMX
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/rsa/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig
index 09ec358..fde1ac1 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.