Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # SPDX-License-Identifier: GPL-2.0
  2. config CRYPTO_DEV_FSL_CAAM_COMMON
  3. tristate
  4. config CRYPTO_DEV_FSL_CAAM
  5. tristate "Freescale CAAM-Multicore platform driver backend"
  6. depends on FSL_SOC || ARCH_MXC || ARCH_LAYERSCAPE
  7. select SOC_BUS
  8. select CRYPTO_DEV_FSL_CAAM_COMMON
  9. help
  10. Enables the driver module for Freescale's Cryptographic Accelerator
  11. and Assurance Module (CAAM), also known as the SEC version 4 (SEC4).
  12. This module creates job ring devices, and configures h/w
  13. to operate as a DPAA component automatically, depending
  14. on h/w feature availability.
  15. To compile this driver as a module, choose M here: the module
  16. will be called caam.
  17. if CRYPTO_DEV_FSL_CAAM
  18. config CRYPTO_DEV_FSL_CAAM_DEBUG
  19. bool "Enable debug output in CAAM driver"
  20. help
  21. Selecting this will enable printing of various debug
  22. information in the CAAM driver.
  23. config CRYPTO_DEV_FSL_CAAM_JR
  24. tristate "Freescale CAAM Job Ring driver backend"
  25. default y
  26. help
  27. Enables the driver module for Job Rings which are part of
  28. Freescale's Cryptographic Accelerator
  29. and Assurance Module (CAAM). This module adds a job ring operation
  30. interface.
  31. To compile this driver as a module, choose M here: the module
  32. will be called caam_jr.
  33. if CRYPTO_DEV_FSL_CAAM_JR
  34. config CRYPTO_DEV_FSL_CAAM_RINGSIZE
  35. int "Job Ring size"
  36. range 2 9
  37. default "9"
  38. help
  39. Select size of Job Rings as a power of 2, within the
  40. range 2-9 (ring size 4-512).
  41. Examples:
  42. 2 => 4
  43. 3 => 8
  44. 4 => 16
  45. 5 => 32
  46. 6 => 64
  47. 7 => 128
  48. 8 => 256
  49. 9 => 512
  50. config CRYPTO_DEV_FSL_CAAM_INTC
  51. bool "Job Ring interrupt coalescing"
  52. help
  53. Enable the Job Ring's interrupt coalescing feature.
  54. Note: the driver already provides adequate
  55. interrupt coalescing in software.
  56. config CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD
  57. int "Job Ring interrupt coalescing count threshold"
  58. depends on CRYPTO_DEV_FSL_CAAM_INTC
  59. range 1 255
  60. default 255
  61. help
  62. Select number of descriptor completions to queue before
  63. raising an interrupt, in the range 1-255. Note that a selection
  64. of 1 functionally defeats the coalescing feature, and a selection
  65. equal or greater than the job ring size will force timeouts.
  66. config CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD
  67. int "Job Ring interrupt coalescing timer threshold"
  68. depends on CRYPTO_DEV_FSL_CAAM_INTC
  69. range 1 65535
  70. default 2048
  71. help
  72. Select number of bus clocks/64 to timeout in the case that one or
  73. more descriptor completions are queued without reaching the count
  74. threshold. Range is 1-65535.
  75. config CRYPTO_DEV_FSL_CAAM_CRYPTO_API
  76. tristate "Register algorithm implementations with the Crypto API"
  77. default y
  78. select CRYPTO_AEAD
  79. select CRYPTO_AUTHENC
  80. select CRYPTO_BLKCIPHER
  81. help
  82. Selecting this will offload crypto for users of the
  83. scatterlist crypto API (such as the linux native IPSec
  84. stack) to the SEC4 via job ring.
  85. To compile this as a module, choose M here: the module
  86. will be called caamalg.
  87. config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI
  88. tristate "Queue Interface as Crypto API backend"
  89. depends on FSL_DPAA && NET
  90. default y
  91. select CRYPTO_AUTHENC
  92. select CRYPTO_BLKCIPHER
  93. help
  94. Selecting this will use CAAM Queue Interface (QI) for sending
  95. & receiving crypto jobs to/from CAAM. This gives better performance
  96. than job ring interface when the number of cores are more than the
  97. number of job rings assigned to the kernel. The number of portals
  98. assigned to the kernel should also be more than the number of
  99. job rings.
  100. To compile this as a module, choose M here: the module
  101. will be called caamalg_qi.
  102. config CRYPTO_DEV_FSL_CAAM_AHASH_API
  103. tristate "Register hash algorithm implementations with Crypto API"
  104. default y
  105. select CRYPTO_HASH
  106. help
  107. Selecting this will offload ahash for users of the
  108. scatterlist crypto API to the SEC4 via job ring.
  109. To compile this as a module, choose M here: the module
  110. will be called caamhash.
  111. config CRYPTO_DEV_FSL_CAAM_PKC_API
  112. tristate "Register public key cryptography implementations with Crypto API"
  113. default y
  114. select CRYPTO_RSA
  115. help
  116. Selecting this will allow SEC Public key support for RSA.
  117. Supported cryptographic primitives: encryption, decryption,
  118. signature and verification.
  119. To compile this as a module, choose M here: the module
  120. will be called caam_pkc.
  121. config CRYPTO_DEV_FSL_CAAM_RNG_API
  122. tristate "Register caam device for hwrng API"
  123. default y
  124. select CRYPTO_RNG
  125. select HW_RANDOM
  126. help
  127. Selecting this will register the SEC4 hardware rng to
  128. the hw_random API for suppying the kernel entropy pool.
  129. To compile this as a module, choose M here: the module
  130. will be called caamrng.
  131. endif # CRYPTO_DEV_FSL_CAAM_JR
  132. endif # CRYPTO_DEV_FSL_CAAM
  133. config CRYPTO_DEV_FSL_DPAA2_CAAM
  134. tristate "QorIQ DPAA2 CAAM (DPSECI) driver"
  135. depends on FSL_MC_DPIO
  136. depends on NETDEVICES
  137. select CRYPTO_DEV_FSL_CAAM_COMMON
  138. select CRYPTO_BLKCIPHER
  139. select CRYPTO_AUTHENC
  140. select CRYPTO_AEAD
  141. select CRYPTO_HASH
  142. help
  143. CAAM driver for QorIQ Data Path Acceleration Architecture 2.
  144. It handles DPSECI DPAA2 objects that sit on the Management Complex
  145. (MC) fsl-mc bus.
  146. To compile this as a module, choose M here: the module
  147. will be called dpaa2_caam.
  148. config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC
  149. def_tristate (CRYPTO_DEV_FSL_CAAM_CRYPTO_API || \
  150. CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI || \
  151. CRYPTO_DEV_FSL_DPAA2_CAAM)
  152. config CRYPTO_DEV_FSL_CAAM_AHASH_API_DESC
  153. def_tristate (CRYPTO_DEV_FSL_CAAM_AHASH_API || \
  154. CRYPTO_DEV_FSL_DPAA2_CAAM)