Ruchika Gupta | 29c1a6b | 2015-01-23 16:01:55 +0530 | [diff] [blame] | 1 | config FSL_CAAM |
| 2 | bool "Freescale Crypto Driver Support" |
Tom Rini | 5bdd919 | 2017-05-15 12:17:49 -0400 | [diff] [blame] | 3 | select SHA_HW_ACCEL |
Simon Glass | 027608e | 2017-05-17 03:25:25 -0600 | [diff] [blame] | 4 | imply CMD_HASH |
Ruchika Gupta | 29c1a6b | 2015-01-23 16:01:55 +0530 | [diff] [blame] | 5 | 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 Sun | 92c36e2 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 9 | |
Ye Li | 3c3e9a1 | 2021-03-25 17:30:36 +0800 | [diff] [blame^] | 10 | config 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 Sun | 92c36e2 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 16 | config SYS_FSL_HAS_SEC |
| 17 | bool |
| 18 | help |
| 19 | Enable Freescale Secure Boot and Trusted Architecture |
| 20 | |
| 21 | config SYS_FSL_SEC_COMPAT_2 |
| 22 | bool |
| 23 | help |
| 24 | Secure boot and trust architecture compatible version 2 |
| 25 | |
| 26 | config SYS_FSL_SEC_COMPAT_4 |
| 27 | bool |
| 28 | help |
| 29 | Secure boot and trust architecture compatible version 4 |
| 30 | |
| 31 | config SYS_FSL_SEC_COMPAT_5 |
| 32 | bool |
| 33 | help |
| 34 | Secure boot and trust architecture compatible version 5 |
| 35 | |
| 36 | config SYS_FSL_SEC_COMPAT_6 |
| 37 | bool |
| 38 | help |
| 39 | Secure boot and trust architecture compatible version 6 |
| 40 | |
York Sun | fa419942 | 2016-12-28 08:43:31 -0800 | [diff] [blame] | 41 | config SYS_FSL_SEC_BE |
| 42 | bool "Big-endian access to Freescale Secure Boot" |
| 43 | |
York Sun | 92c36e2 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 44 | config 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 Sun | fa419942 | 2016-12-28 08:43:31 -0800 | [diff] [blame] | 51 | |
| 52 | config SYS_FSL_SEC_LE |
| 53 | bool "Little-endian access to Freescale Secure Boot" |
Michael Walle | b258eb2 | 2020-06-27 22:58:53 +0200 | [diff] [blame] | 54 | |
| 55 | if FSL_CAAM |
| 56 | |
| 57 | config 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 | |
| 67 | endif |