Ruchika Gupta | 3427647 | 2015-01-23 16:01:55 +0530 | [diff] [blame] | 1 | config FSL_CAAM |
| 2 | bool "Freescale Crypto Driver Support" |
Tom Rini | 089df18 | 2017-05-15 12:17:49 -0400 | [diff] [blame] | 3 | select SHA_HW_ACCEL |
Alexandru Gagniuc | 92055e1 | 2021-09-02 19:54:21 -0500 | [diff] [blame] | 4 | # hw_sha1() under drivers/crypto, and needed with SHA_HW_ACCEL |
Gaurav Jain | 4556cf8 | 2022-03-24 11:50:25 +0530 | [diff] [blame] | 5 | select MISC if DM |
Alexandru Gagniuc | 92055e1 | 2021-09-02 19:54:21 -0500 | [diff] [blame] | 6 | imply SPL_CRYPTO if (ARM && SPL) |
Simon Glass | 551c393 | 2017-05-17 03:25:25 -0600 | [diff] [blame] | 7 | imply CMD_HASH |
Ruchika Gupta | 3427647 | 2015-01-23 16:01:55 +0530 | [diff] [blame] | 8 | 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 Sun | 2c2e2c9 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 12 | |
Ye Li | 2ff17d2 | 2021-03-25 17:30:36 +0800 | [diff] [blame] | 13 | config CAAM_64BIT |
| 14 | bool |
Gaurav Jain | cb5d041 | 2022-03-24 11:50:33 +0530 | [diff] [blame^] | 15 | default y if PHYS_64BIT && !ARCH_IMX8M && !ARCH_IMX8 |
Ye Li | 2ff17d2 | 2021-03-25 17:30:36 +0800 | [diff] [blame] | 16 | help |
| 17 | Select Crypto driver for 64 bits CAAM version |
| 18 | |
York Sun | 2c2e2c9 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 19 | config SYS_FSL_HAS_SEC |
| 20 | bool |
| 21 | help |
| 22 | Enable Freescale Secure Boot and Trusted Architecture |
| 23 | |
| 24 | config SYS_FSL_SEC_COMPAT_2 |
| 25 | bool |
| 26 | help |
| 27 | Secure boot and trust architecture compatible version 2 |
| 28 | |
| 29 | config SYS_FSL_SEC_COMPAT_4 |
| 30 | bool |
| 31 | help |
| 32 | Secure boot and trust architecture compatible version 4 |
| 33 | |
| 34 | config SYS_FSL_SEC_COMPAT_5 |
| 35 | bool |
| 36 | help |
| 37 | Secure boot and trust architecture compatible version 5 |
| 38 | |
| 39 | config SYS_FSL_SEC_COMPAT_6 |
| 40 | bool |
| 41 | help |
| 42 | Secure boot and trust architecture compatible version 6 |
| 43 | |
York Sun | 90b8038 | 2016-12-28 08:43:31 -0800 | [diff] [blame] | 44 | config SYS_FSL_SEC_BE |
| 45 | bool "Big-endian access to Freescale Secure Boot" |
| 46 | |
York Sun | 2c2e2c9 | 2016-12-28 08:43:30 -0800 | [diff] [blame] | 47 | config SYS_FSL_SEC_COMPAT |
| 48 | int "Freescale Secure Boot compatibility" |
| 49 | depends on SYS_FSL_HAS_SEC |
| 50 | default 2 if SYS_FSL_SEC_COMPAT_2 |
| 51 | default 4 if SYS_FSL_SEC_COMPAT_4 |
| 52 | default 5 if SYS_FSL_SEC_COMPAT_5 |
| 53 | default 6 if SYS_FSL_SEC_COMPAT_6 |
York Sun | 90b8038 | 2016-12-28 08:43:31 -0800 | [diff] [blame] | 54 | |
| 55 | config SYS_FSL_SEC_LE |
| 56 | bool "Little-endian access to Freescale Secure Boot" |
Michael Walle | ea95f21 | 2020-06-27 22:58:53 +0200 | [diff] [blame] | 57 | |
| 58 | if FSL_CAAM |
| 59 | |
| 60 | config FSL_CAAM_RNG |
| 61 | bool "Enable Random Number Generator support" |
| 62 | depends on DM_RNG |
| 63 | default y |
| 64 | help |
| 65 | Enable support for the hardware based random number generator |
| 66 | module of the CAAM. The random data is fetched from the DRGB |
| 67 | using the prediction resistance flag which means the DRGB is |
| 68 | reseeded from the TRNG every time random data is generated. |
| 69 | |
| 70 | endif |