Kconfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 && 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_PKC_API
  90. tristate "Register public key cryptography implementations with Crypto API"
  91. depends on CRYPTO_DEV_FSL_CAAM && CRYPTO_DEV_FSL_CAAM_JR
  92. default y
  93. select CRYPTO_RSA
  94. help
  95. Selecting this will allow SEC Public key support for RSA.
  96. Supported cryptographic primitives: encryption, decryption,
  97. signature and verification.
  98. To compile this as a module, choose M here: the module
  99. will be called caam_pkc.
  100. config CRYPTO_DEV_FSL_CAAM_RNG_API
  101. tristate "Register caam device for hwrng API"
  102. depends on CRYPTO_DEV_FSL_CAAM && CRYPTO_DEV_FSL_CAAM_JR
  103. default y
  104. select CRYPTO_RNG
  105. select HW_RANDOM
  106. help
  107. Selecting this will register the SEC4 hardware rng to
  108. the hw_random API for suppying the kernel entropy pool.
  109. To compile this as a module, choose M here: the module
  110. will be called caamrng.
  111. config CRYPTO_DEV_FSL_CAAM_IMX
  112. def_bool SOC_IMX6 || SOC_IMX7D
  113. depends on CRYPTO_DEV_FSL_CAAM
  114. config CRYPTO_DEV_FSL_CAAM_DEBUG
  115. bool "Enable debug output in CAAM driver"
  116. depends on CRYPTO_DEV_FSL_CAAM
  117. help
  118. Selecting this will enable printing of various debug
  119. information in the CAAM driver.