blob: 91a51cc5fe77494022865a404f5770bc2efa26b4 [file] [log] [blame]
Ruchika Gupta34276472015-01-23 16:01:55 +05301config FSL_CAAM
2 bool "Freescale Crypto Driver Support"
Tom Rini089df182017-05-15 12:17:49 -04003 select SHA_HW_ACCEL
Alexandru Gagniuc92055e12021-09-02 19:54:21 -05004 # hw_sha1() under drivers/crypto, and needed with SHA_HW_ACCEL
Gaurav Jain4556cf82022-03-24 11:50:25 +05305 select MISC if DM
Alexandru Gagniuc92055e12021-09-02 19:54:21 -05006 imply SPL_CRYPTO if (ARM && SPL)
Simon Glass551c3932017-05-17 03:25:25 -06007 imply CMD_HASH
Ruchika Gupta34276472015-01-23 16:01:55 +05308 help
9 Enables the Freescale's Cryptographic Accelerator and Assurance
10 Module (CAAM), also known as the SEC version 4 (SEC4). The driver uses
11 Job Ring as interface to communicate with CAAM.
York Sun2c2e2c92016-12-28 08:43:30 -080012
Tom Rinic6eec012022-07-31 21:08:26 -040013config SYS_FSL_MAX_NUM_OF_SEC
14 int "Number of job rings in the CAAM"
15 depends on FSL_CAAM
16 default 1
17
Ye Li2ff17d22021-03-25 17:30:36 +080018config CAAM_64BIT
19 bool
Gaurav Jaincb5d0412022-03-24 11:50:33 +053020 default y if PHYS_64BIT && !ARCH_IMX8M && !ARCH_IMX8
Ye Li2ff17d22021-03-25 17:30:36 +080021 help
22 Select Crypto driver for 64 bits CAAM version
23
York Sun2c2e2c92016-12-28 08:43:30 -080024config SYS_FSL_HAS_SEC
25 bool
26 help
27 Enable Freescale Secure Boot and Trusted Architecture
28
29config SYS_FSL_SEC_COMPAT_2
30 bool
31 help
32 Secure boot and trust architecture compatible version 2
33
34config SYS_FSL_SEC_COMPAT_4
35 bool
36 help
37 Secure boot and trust architecture compatible version 4
38
39config SYS_FSL_SEC_COMPAT_5
40 bool
41 help
42 Secure boot and trust architecture compatible version 5
43
44config SYS_FSL_SEC_COMPAT_6
45 bool
46 help
47 Secure boot and trust architecture compatible version 6
48
York Sun90b80382016-12-28 08:43:31 -080049config SYS_FSL_SEC_BE
50 bool "Big-endian access to Freescale Secure Boot"
51
York Sun2c2e2c92016-12-28 08:43:30 -080052config SYS_FSL_SEC_COMPAT
53 int "Freescale Secure Boot compatibility"
54 depends on SYS_FSL_HAS_SEC
55 default 2 if SYS_FSL_SEC_COMPAT_2
56 default 4 if SYS_FSL_SEC_COMPAT_4
57 default 5 if SYS_FSL_SEC_COMPAT_5
58 default 6 if SYS_FSL_SEC_COMPAT_6
York Sun90b80382016-12-28 08:43:31 -080059
60config SYS_FSL_SEC_LE
61 bool "Little-endian access to Freescale Secure Boot"
Michael Walleea95f212020-06-27 22:58:53 +020062
63if FSL_CAAM
64
65config FSL_CAAM_RNG
66 bool "Enable Random Number Generator support"
67 depends on DM_RNG
68 default y
69 help
70 Enable support for the hardware based random number generator
71 module of the CAAM. The random data is fetched from the DRGB
72 using the prediction resistance flag which means the DRGB is
73 reseeded from the TRNG every time random data is generated.
74
75endif
Kshitiz Varshney0d795c32022-12-22 09:50:27 +010076
77config FSL_DCP_RNG
78 bool "Enable Random Number Generator support"
79 depends on DM_RNG
80 default n
81 help
82 Enable support for the hardware based random number generator
83 module of the DCP. It uses the True Random Number Generator (TRNG)
84 and a Pseudo-Random Number Generator (PRNG) to achieve a true
85 randomness and cryptographic strength.