Skip to content

Commit

Permalink
Kconfig: Don't use RSA_FREESCALE_EXP on IMX
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
  • Loading branch information
gmccollister authored and trini committed Mar 20, 2017
1 parent a051a99 commit f4e9ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rsa/Kconfig
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f4e9ff7

Please sign in to comment.