Kconfig 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. config CRYPTO_DEV_FSL_CAAM
  2. tristate "Freescale CAAM-Multicore driver backend"
  3. depends on FSL_SOC
  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. default n
  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 && CRYPTO_DEV_FSL_CAAM_JR
  70. default y
  71. select CRYPTO_ALGAPI
  72. select CRYPTO_AUTHENC
  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_DEBUG
  101. bool "Enable debug output in CAAM driver"
  102. depends on CRYPTO_DEV_FSL_CAAM
  103. default n
  104. help
  105. Selecting this will enable printing of various debug
  106. information in the CAAM driver.