Kconfig 4.8 KB

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