Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. config CRYPTO_DEV_FSL_CAAM
  2. tristate "Freescale CAAM-Multicore driver backend"
  3. depends on FSL_SOC || ARCH_MXC
  4. help
  5. Enables the driver module for Freescale's Cryptographic Accelerator
  6. and Assurance Module (CAAM), also known as the SEC version 4 (SEC4).
  7. This module creates job ring devices, and configures h/w
  8. to operate as a DPAA component automatically, depending
  9. on h/w feature availability.
  10. To compile this driver as a module, choose M here: the module
  11. will be called caam.
  12. config CRYPTO_DEV_FSL_CAAM_JR
  13. tristate "Freescale CAAM Job Ring driver backend"
  14. depends on CRYPTO_DEV_FSL_CAAM
  15. default y
  16. help
  17. Enables the driver module for Job Rings which are part of
  18. Freescale's Cryptographic Accelerator
  19. and Assurance Module (CAAM). This module adds a job ring operation
  20. interface.
  21. To compile this driver as a module, choose M here: the module
  22. will be called caam_jr.
  23. config CRYPTO_DEV_FSL_CAAM_RINGSIZE
  24. int "Job Ring size"
  25. depends on CRYPTO_DEV_FSL_CAAM_JR
  26. range 2 9
  27. default "9"
  28. help
  29. Select size of Job Rings as a power of 2, within the
  30. range 2-9 (ring size 4-512).
  31. Examples:
  32. 2 => 4
  33. 3 => 8
  34. 4 => 16
  35. 5 => 32
  36. 6 => 64
  37. 7 => 128
  38. 8 => 256
  39. 9 => 512
  40. config CRYPTO_DEV_FSL_CAAM_INTC
  41. bool "Job Ring interrupt coalescing"
  42. depends on CRYPTO_DEV_FSL_CAAM_JR
  43. help
  44. Enable the Job Ring's interrupt coalescing feature.
  45. Note: the driver already provides adequate
  46. interrupt coalescing in software.
  47. config CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD
  48. int "Job Ring interrupt coalescing count threshold"
  49. depends on CRYPTO_DEV_FSL_CAAM_INTC
  50. range 1 255
  51. default 255
  52. help
  53. Select number of descriptor completions to queue before
  54. raising an interrupt, in the range 1-255. Note that a selection
  55. of 1 functionally defeats the coalescing feature, and a selection
  56. equal or greater than the job ring size will force timeouts.
  57. config CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD
  58. int "Job Ring interrupt coalescing timer threshold"
  59. depends on CRYPTO_DEV_FSL_CAAM_INTC
  60. range 1 65535
  61. default 2048
  62. help
  63. Select number of bus clocks/64 to timeout in the case that one or
  64. more descriptor completions are queued without reaching the count
  65. threshold. Range is 1-65535.
  66. config CRYPTO_DEV_FSL_CAAM_CRYPTO_API
  67. tristate "Register algorithm implementations with the Crypto API"
  68. depends on CRYPTO_DEV_FSL_CAAM && CRYPTO_DEV_FSL_CAAM_JR
  69. default y
  70. select CRYPTO_AEAD
  71. select CRYPTO_AUTHENC
  72. select CRYPTO_BLKCIPHER
  73. help
  74. Selecting this will offload crypto for users of the
  75. scatterlist crypto API (such as the linux native IPSec
  76. stack) to the SEC4 via job ring.
  77. To compile this as a module, choose M here: the module
  78. will be called caamalg.
  79. config CRYPTO_DEV_FSL_CAAM_AHASH_API
  80. tristate "Register hash algorithm implementations with Crypto API"
  81. depends on CRYPTO_DEV_FSL_CAAM && CRYPTO_DEV_FSL_CAAM_JR
  82. default y
  83. select CRYPTO_HASH
  84. help
  85. Selecting this will offload ahash for users of the
  86. scatterlist crypto API to the SEC4 via job ring.
  87. To compile this as a module, choose M here: the module
  88. will be called caamhash.
  89. config CRYPTO_DEV_FSL_CAAM_RNG_API
  90. tristate "Register caam device for hwrng API"
  91. depends on CRYPTO_DEV_FSL_CAAM && CRYPTO_DEV_FSL_CAAM_JR
  92. default y
  93. select CRYPTO_RNG
  94. select HW_RANDOM
  95. help
  96. Selecting this will register the SEC4 hardware rng to
  97. the hw_random API for suppying the kernel entropy pool.
  98. To compile this as a module, choose M here: the module
  99. will be called caamrng.
  100. config CRYPTO_DEV_FSL_CAAM_IMX
  101. def_bool SOC_IMX6 || SOC_IMX7D
  102. depends on CRYPTO_DEV_FSL_CAAM
  103. config CRYPTO_DEV_FSL_CAAM_LE
  104. def_bool CRYPTO_DEV_FSL_CAAM_IMX || SOC_LS1021A
  105. depends on CRYPTO_DEV_FSL_CAAM
  106. config CRYPTO_DEV_FSL_CAAM_DEBUG
  107. bool "Enable debug output in CAAM driver"
  108. depends on CRYPTO_DEV_FSL_CAAM
  109. help
  110. Selecting this will enable printing of various debug
  111. information in the CAAM driver.