Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. config CRYPTO_DEV_FSL_CAAM
  2. tristate "Freescale CAAM-Multicore driver backend"
  3. depends on FSL_SOC || ARCH_MXC || ARCH_LAYERSCAPE
  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_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_CRYPTO_API_QI
  80. tristate "Queue Interface as Crypto API backend"
  81. depends on CRYPTO_DEV_FSL_CAAM_JR && FSL_DPAA && NET
  82. default y
  83. select CRYPTO_AUTHENC
  84. select CRYPTO_BLKCIPHER
  85. help
  86. Selecting this will use CAAM Queue Interface (QI) for sending
  87. & receiving crypto jobs to/from CAAM. This gives better performance
  88. than job ring interface when the number of cores are more than the
  89. number of job rings assigned to the kernel. The number of portals
  90. assigned to the kernel should also be more than the number of
  91. job rings.
  92. To compile this as a module, choose M here: the module
  93. will be called caamalg_qi.
  94. config CRYPTO_DEV_FSL_CAAM_AHASH_API
  95. tristate "Register hash algorithm implementations with Crypto API"
  96. depends on CRYPTO_DEV_FSL_CAAM_JR
  97. default y
  98. select CRYPTO_HASH
  99. help
  100. Selecting this will offload ahash for users of the
  101. scatterlist crypto API to the SEC4 via job ring.
  102. To compile this as a module, choose M here: the module
  103. will be called caamhash.
  104. config CRYPTO_DEV_FSL_CAAM_PKC_API
  105. tristate "Register public key cryptography implementations with Crypto API"
  106. depends on CRYPTO_DEV_FSL_CAAM_JR
  107. default y
  108. select CRYPTO_RSA
  109. help
  110. Selecting this will allow SEC Public key support for RSA.
  111. Supported cryptographic primitives: encryption, decryption,
  112. signature and verification.
  113. To compile this as a module, choose M here: the module
  114. will be called caam_pkc.
  115. config CRYPTO_DEV_FSL_CAAM_RNG_API
  116. tristate "Register caam device for hwrng API"
  117. depends on CRYPTO_DEV_FSL_CAAM_JR
  118. default y
  119. select CRYPTO_RNG
  120. select HW_RANDOM
  121. help
  122. Selecting this will register the SEC4 hardware rng to
  123. the hw_random API for suppying the kernel entropy pool.
  124. To compile this as a module, choose M here: the module
  125. will be called caamrng.
  126. config CRYPTO_DEV_FSL_CAAM_IMX
  127. def_bool SOC_IMX6 || SOC_IMX7D
  128. depends on CRYPTO_DEV_FSL_CAAM
  129. config CRYPTO_DEV_FSL_CAAM_DEBUG
  130. bool "Enable debug output in CAAM driver"
  131. depends on CRYPTO_DEV_FSL_CAAM
  132. help
  133. Selecting this will enable printing of various debug
  134. information in the CAAM driver.
  135. config CRYPTO_DEV_FSL_CAAM_CRYPTO_API_DESC
  136. def_tristate (CRYPTO_DEV_FSL_CAAM_CRYPTO_API || \
  137. CRYPTO_DEV_FSL_CAAM_CRYPTO_API_QI)