blob: 94ff5401119e1a02e47e106bc8985d7f48eb12c3 [file] [log] [blame]
Ruchika Gupta29c1a6b2015-01-23 16:01:55 +05301config FSL_CAAM
2 bool "Freescale Crypto Driver Support"
Tom Rini5bdd9192017-05-15 12:17:49 -04003 select SHA_HW_ACCEL
Alexandru Gagniuc650b7862021-09-02 19:54:21 -05004 # hw_sha1() under drivers/crypto, and needed with SHA_HW_ACCEL
5 imply SPL_CRYPTO if (ARM && SPL)
Simon Glass027608e2017-05-17 03:25:25 -06006 imply CMD_HASH
Ruchika Gupta29c1a6b2015-01-23 16:01:55 +05307 help
8 Enables the Freescale's Cryptographic Accelerator and Assurance
9 Module (CAAM), also known as the SEC version 4 (SEC4). The driver uses
10 Job Ring as interface to communicate with CAAM.
York Sun92c36e22016-12-28 08:43:30 -080011
Ye Li3c3e9a12021-03-25 17:30:36 +080012config CAAM_64BIT
13 bool
14 default y if PHYS_64BIT && !ARCH_IMX8M
15 help
16 Select Crypto driver for 64 bits CAAM version
17
York Sun92c36e22016-12-28 08:43:30 -080018config SYS_FSL_HAS_SEC
19 bool
20 help
21 Enable Freescale Secure Boot and Trusted Architecture
22
23config SYS_FSL_SEC_COMPAT_2
24 bool
25 help
26 Secure boot and trust architecture compatible version 2
27
28config SYS_FSL_SEC_COMPAT_4
29 bool
30 help
31 Secure boot and trust architecture compatible version 4
32
33config SYS_FSL_SEC_COMPAT_5
34 bool
35 help
36 Secure boot and trust architecture compatible version 5
37
38config SYS_FSL_SEC_COMPAT_6
39 bool
40 help
41 Secure boot and trust architecture compatible version 6
42
York Sunfa4199422016-12-28 08:43:31 -080043config SYS_FSL_SEC_BE
44 bool "Big-endian access to Freescale Secure Boot"
45
York Sun92c36e22016-12-28 08:43:30 -080046config SYS_FSL_SEC_COMPAT
47 int "Freescale Secure Boot compatibility"
48 depends on SYS_FSL_HAS_SEC
49 default 2 if SYS_FSL_SEC_COMPAT_2
50 default 4 if SYS_FSL_SEC_COMPAT_4
51 default 5 if SYS_FSL_SEC_COMPAT_5
52 default 6 if SYS_FSL_SEC_COMPAT_6
York Sunfa4199422016-12-28 08:43:31 -080053
54config SYS_FSL_SEC_LE
55 bool "Little-endian access to Freescale Secure Boot"
Michael Walleb258eb22020-06-27 22:58:53 +020056
57if FSL_CAAM
58
59config FSL_CAAM_RNG
60 bool "Enable Random Number Generator support"
61 depends on DM_RNG
62 default y
63 help
64 Enable support for the hardware based random number generator
65 module of the CAAM. The random data is fetched from the DRGB
66 using the prediction resistance flag which means the DRGB is
67 reseeded from the TRNG every time random data is generated.
68
69endif