blob: 1f5dfb94bb81bdec3945e545470649a0a9330651 [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
Simon Glass551c3932017-05-17 03:25:25 -06004 imply CMD_HASH
Ruchika Gupta34276472015-01-23 16:01:55 +05305 help
6 Enables the Freescale's Cryptographic Accelerator and Assurance
7 Module (CAAM), also known as the SEC version 4 (SEC4). The driver uses
8 Job Ring as interface to communicate with CAAM.
York Sun2c2e2c92016-12-28 08:43:30 -08009
Ye Li2ff17d22021-03-25 17:30:36 +080010config CAAM_64BIT
11 bool
12 default y if PHYS_64BIT && !ARCH_IMX8M
13 help
14 Select Crypto driver for 64 bits CAAM version
15
York Sun2c2e2c92016-12-28 08:43:30 -080016config SYS_FSL_HAS_SEC
17 bool
18 help
19 Enable Freescale Secure Boot and Trusted Architecture
20
21config SYS_FSL_SEC_COMPAT_2
22 bool
23 help
24 Secure boot and trust architecture compatible version 2
25
26config SYS_FSL_SEC_COMPAT_4
27 bool
28 help
29 Secure boot and trust architecture compatible version 4
30
31config SYS_FSL_SEC_COMPAT_5
32 bool
33 help
34 Secure boot and trust architecture compatible version 5
35
36config SYS_FSL_SEC_COMPAT_6
37 bool
38 help
39 Secure boot and trust architecture compatible version 6
40
York Sun90b80382016-12-28 08:43:31 -080041config SYS_FSL_SEC_BE
42 bool "Big-endian access to Freescale Secure Boot"
43
York Sun2c2e2c92016-12-28 08:43:30 -080044config SYS_FSL_SEC_COMPAT
45 int "Freescale Secure Boot compatibility"
46 depends on SYS_FSL_HAS_SEC
47 default 2 if SYS_FSL_SEC_COMPAT_2
48 default 4 if SYS_FSL_SEC_COMPAT_4
49 default 5 if SYS_FSL_SEC_COMPAT_5
50 default 6 if SYS_FSL_SEC_COMPAT_6
York Sun90b80382016-12-28 08:43:31 -080051
52config SYS_FSL_SEC_LE
53 bool "Little-endian access to Freescale Secure Boot"
Michael Walleea95f212020-06-27 22:58:53 +020054
55if FSL_CAAM
56
57config FSL_CAAM_RNG
58 bool "Enable Random Number Generator support"
59 depends on DM_RNG
60 default y
61 help
62 Enable support for the hardware based random number generator
63 module of the CAAM. The random data is fetched from the DRGB
64 using the prediction resistance flag which means the DRGB is
65 reseeded from the TRNG every time random data is generated.
66
67endif