Kconfig 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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 adds a job ring operation interface, 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_RINGSIZE
  13. int "Job Ring size"
  14. depends on CRYPTO_DEV_FSL_CAAM
  15. range 2 9
  16. default "9"
  17. help
  18. Select size of Job Rings as a power of 2, within the
  19. range 2-9 (ring size 4-512).
  20. Examples:
  21. 2 => 4
  22. 3 => 8
  23. 4 => 16
  24. 5 => 32
  25. 6 => 64
  26. 7 => 128
  27. 8 => 256
  28. 9 => 512
  29. config CRYPTO_DEV_FSL_CAAM_INTC
  30. bool "Job Ring interrupt coalescing"
  31. depends on CRYPTO_DEV_FSL_CAAM
  32. default n
  33. help
  34. Enable the Job Ring's interrupt coalescing feature.
  35. Note: the driver already provides adequate
  36. interrupt coalescing in software.
  37. config CRYPTO_DEV_FSL_CAAM_INTC_COUNT_THLD
  38. int "Job Ring interrupt coalescing count threshold"
  39. depends on CRYPTO_DEV_FSL_CAAM_INTC
  40. range 1 255
  41. default 255
  42. help
  43. Select number of descriptor completions to queue before
  44. raising an interrupt, in the range 1-255. Note that a selection
  45. of 1 functionally defeats the coalescing feature, and a selection
  46. equal or greater than the job ring size will force timeouts.
  47. config CRYPTO_DEV_FSL_CAAM_INTC_TIME_THLD
  48. int "Job Ring interrupt coalescing timer threshold"
  49. depends on CRYPTO_DEV_FSL_CAAM_INTC
  50. range 1 65535
  51. default 2048
  52. help
  53. Select number of bus clocks/64 to timeout in the case that one or
  54. more descriptor completions are queued without reaching the count
  55. threshold. Range is 1-65535.
  56. config CRYPTO_DEV_FSL_CAAM_CRYPTO_API
  57. tristate "Register algorithm implementations with the Crypto API"
  58. depends on CRYPTO_DEV_FSL_CAAM
  59. default y
  60. select CRYPTO_ALGAPI
  61. select CRYPTO_AUTHENC
  62. help
  63. Selecting this will offload crypto for users of the
  64. scatterlist crypto API (such as the linux native IPSec
  65. stack) to the SEC4 via job ring.
  66. To compile this as a module, choose M here: the module
  67. will be called caamalg.
  68. config CRYPTO_DEV_FSL_CAAM_AHASH_API
  69. tristate "Register hash algorithm implementations with Crypto API"
  70. depends on CRYPTO_DEV_FSL_CAAM
  71. default y
  72. select CRYPTO_AHASH
  73. help
  74. Selecting this will offload ahash for users of the
  75. scatterlist crypto API to the SEC4 via job ring.
  76. To compile this as a module, choose M here: the module
  77. will be called caamhash.
  78. config CRYPTO_DEV_FSL_CAAM_RNG_API
  79. tristate "Register caam device for hwrng API"
  80. depends on CRYPTO_DEV_FSL_CAAM
  81. default y
  82. select CRYPTO_RNG
  83. select HW_RANDOM
  84. help
  85. Selecting this will register the SEC4 hardware rng to
  86. the hw_random API for suppying the kernel entropy pool.
  87. To compile this as a module, choose M here: the module
  88. will be called caamrng.